Problems Configuring FreePBX for using external SMTP Server

Does anyone know how to change the default FROM address when attempting to use an external SMTP server? Right now it is [email protected]. I want it to be just [email protected]. I’ve tried making changes with Postfix, but I may be doing it in the wrong config file. I have an SMTP server set up on a Windows machine to relay. We are using FreePBX 15.0.16.81.

Log of last attempted email:
Dec 13 10:01:25 phonesystem postfix/pickup[21592]: 91B022937: uid=995 from=<asterisk>
Dec 13 10:01:25 phonesystem postfix/cleanup[24576]: 91B022937: message-id=<[email protected]>
Dec 13 10:01:25 phonesystem postfix/qmgr[16679]: 91B022937: from=<[email protected]>, size=146370, nrcpt=1 (queue active)
Dec 13 10:01:25 phonesystem postfix/smtp[24580]: connect to 10.1.1.180[10.1.1.180]:25: Connection refused

The previous log’s error were because of a service not started on the SMTP server. This is a more accurate log of the problem:

Dec 13 10:21:24 phonesystem postfix/qmgr[16679]: 0D73B10712: from=<[email protected]>, size=187148, nrcpt=1 (queue active)
Dec 13 10:21:24 phonesystem postfix/smtp[26957]: 0D73B10712: to=<[email protected]>, relay=10.1.1.180[10.1.1.180]:25, delay=0.08, delays=0.02/0.01/0.01/0.05, dsn=5.7.1, status=bounced (host 10.1.1.180[10.1.1.180] said: 550 5.7.1 Unable to relay for [email protected] (in reply to RCPT TO command))
Dec 13 10:21:24 phonesystem postfix/cleanup[26953]: 1E43F11039: message-id=<[email protected]>
Dec 13 10:21:24 phonesystem postfix/bounce[26963]: 0D73B10712: sender non-delivery notification: 1E43F11039
Dec 13 10:21:24 phonesystem postfix/qmgr[16679]: 1E43F11039: from=<>, size=2380, nrcpt=1 (queue active)
Dec 13 10:21:24 phonesystem postfix/qmgr[16679]: 0D73B10712: removed
Dec 13 10:21:24 phonesystem postfix/smtp[26957]: 1E43F11039: to=<[email protected]>, relay=10.1.1.180[10.1.1.180]:25, delay=0.05, delays=0/0/0/0.04, dsn=5.7.1, status=bounced (host 10.1.1.180[10.1.1.180] said: 550 5.7.1 Unable to relay for [email protected] (in reply to RCPT TO command))
Dec 13 10:21:24 phonesystem postfix/qmgr[16679]: 1E43F11039: removed

Assuming oyu have updated all the things inside FreePBX, then you drop to postfix config settings.
The file /etc/postfix/generic is handy here.

root [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
asterisk [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]
@pbx.domain.com @domain.com

Add a reference (if needed) to main.cf
image

Run the postmap command to build it.

postmap /etc/postfix/generic

Then restart postfix

systemctl restart postfix

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