Not Able To Send Emails From FreePBX

Hello,

I need to setup email notifications manually (I don’t want to pay for the System Admin Pro) but, I’ m not able to get things to works correctly.

I’d try what I found here: Setup Postfix Manually - PBX Platforms - Documentation without any success.

http://postfix.state-of-mind.de/patrick.koetter/smtpauth/smtp_auth_mailservers.html seem to be not good anymore.

When doing searches on the internet, nothing seem relevant to my case.

Is someone can help me please?

My FreePBX instance is at it’s latest version.

Thank-you,

Guillaume

Hello,

I apologies for the delays.

What seem to be wrong is: after having following these instructions Setup Postfix Manually - PBX Platforms - Documentation

When doing: echo "Subject: hello" | sendmail [email protected] The mailbox is not getting the email. I don’t even know if the message left the FreePBX system. The mail queue on the mail server is staying empty.

Can I post my main.cf file here and also all the other relevant configuration files?

Thank-you

Guillaume

Hello,

I still need help with that issue.

Thank-you!

Guillaume

You’d need to post your configuration and associated logs. You probably need to specify only a relayhost, some smtp_sasl opts and depending how strict your releayhost is, a suitable generic file.

Hello,

I deeply apologies for the long delay.

Those is my configuration files:

master.cf
main.cf
sasl_passwd

I’d hide passwords and other sensitive information.

What do you mean by the generic file? The one for /etc/postfix/ directory?

generic

And also where to find smtp_sasl ?

The relay host, if it reference the mail server, it is hosted locally on another VM.

If you need more info, please feel free to ask. :grinning:

With regards,

Guillaume

Can you please share the mail logs?

Yes, I meant the generic file for generic remapping of addresses.

@PitzKey

Hello,

Logs from our mail server? If this is correct, is there a way to hide sensitive information from the log before sending them out? Or could I post only lines that I think relevant?

@jgttgns

Okay all right. This is what I previously posted. Hopping I send out the correct thing :wink:

Thank-you to both of you for the help.

It’s sometimes difficult to say what is relevant. sed is your friend.

/var/log/maillog

Hello,

I will need to reboot FreePBX before being able to get the logs, I will do it at night.

Thank-you

Guillaume

You’re one of mine.

Please follow up this video. FreePBX 14 - Email Notifications Configuration (SMTP via Postfix) - YouTube

I did it and it works good. (if you’re using Gmail remember to use the 2FA and the app password)

PLEASE PLEASE PLEASE if it works for you mark this as the solution it can help others

1 Like

Hello,

Yes it works fine now! Thank-you very much!

Guillaume

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.