Help for Setup Postfix Manually


(Stefgrifongr) #1

Hello,

I tried to add the settings in order to have notification via email. Unfortunately i couldn’t do it.
Can somebody help me?
You can find information below regarding freepbx also the changes that i have made.

information
Current PBX Version:15.0.17.34
Current System Version:12.7.8-2104-1.sng7

I have applied those changes:

nano /etc/postfix/main.cf

relayhost = [mail.domain.com]:465
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_use_tls = yes

smtp_generic_maps = hash:/etc/postfix/generic

nano /etc/postfix/sasl_passwd

[mail.domain.com]:465 webmaster@domain.com:password

/etc/postfix/generic

root webmaster@domain.com
root@localhost webmaster@domain.com
root@localhost.localdomain webmaster@domain.com
root@freepbx webmaster@domain.com
root@freepbx.localdomain webmaster@domain.com
asterisk webmaster@domain.com
asterisk@localhost webmaster@domain.com
asterisk@localhost.localdomain webmaster@domain.com
asterisk@freepbx webmaster@domain.com
asterisk@freepbx.localdomain webmaster@domain.com
vm@asterisk webmaster@domain.com
@freepbx.localdomain @domain.com

I haved run those commands

postmap /etc/postfix/generic
postmap hash:/etc/postfix/sasl_passwd
service postfix restart
chmod 400 /etc/postfix/sasl_passwd
systemctl reload postfix

Thanks a lot,
Stefanos


(Itzik) #2

You did not hash the credentials

postmap hash:/etc/postfix/sasl_passwd

https://wiki.freepbx.org/display/PPS/Setup+Postfix+Manually


(Stefgrifongr) #3

Hello,

Thanks for your help,

I have forgotten to write this command. I have done it and followed the guide that you have sent.


(system) closed #4

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