Good Afternoon Colleagues
I hope you are doing good and safe . I am trying to configure email postfix so i can send email notifications from FreePBX but i am not successful so far. i am using my Gmail account. Below is the details of my system:
Free PBX Version: 15.0.17.48
PBX Distro: 12.7.8-2104-1.sng7
Asterisk Version: 16.17.0
Let me share with you the steps i did so far:
Below is the configuration at /etc/postfix/main.cf
I tried both secure settings & non-secure settings but nothing work . When using non-secure settings , I disable this line “#smtp_use_tls = yes”. I changed also settings in “sasl_passwd” file accordingly.
@PitzKey I issue the command “postmap hash:/etc/postfix/sasl_passwd”
Below is the logs after using the secure & non-secure settings
Mar 6 04:19:03 freepbx postfix/smtp[15869]: 1C3AA603CEFF3: to=<[email protected]>, relay=mail.siscomgroup.ca[162.241.219.155]:25, delay=75973, delays=75966/0.01/6.9/0.08, dsn=4.5.2, status=deferred (host mail.siscomgroup.ca[162.241.219.155] said: 452 4.5.2 Could not resolve sender domain. (in reply to MAIL FROM command))
Good Afternoon Colleagues
I would like to share with you that things has worked as expected . I disabled TLS because when using TLS , Our main server using port 465 not 587 . Thanks @PitzKey & @adell4444 for your support and have a nice day ahead.
Below is the the final configuration for main.cf that worked with my email server (Similar to GoDaddy) .