sugar
(Aldo Zavala)
March 21, 2025, 7:12pm
1
Good afternoon everyone:
I had to setup my own domain because APP Passwords are not working for gmail, outlook, etc:
My voicemal notification works like a charm with the new SMTP settings:
I dont see any special settings on the Missed Call notification section, so I assume it must work with the general sys admin email settings, however this is not working, I am not sure if there is more settings, or what log files can I check to troubleshoot this..
Here is the version information:
PBX Version: 16.0.40.8
PBX Distro: 12.7.8-2306-1.sng7
Asterisk Version: 20.5.2
Thanks all!
1 Like
Have you looked under Reports → System Logfiles ? Looks something like this:
Also, general assistance on getting logs/debugs:
1 Like
slobera
(Sergio Lobera)
April 4, 2025, 12:31am
3
I recommend you to run tail -f /var/log/maillog
while you reproduce it to see if postfix tries to send the email.
2 Likes
sugar
(Aldo Zavala)
April 22, 2025, 3:16pm
4
will check that when I arrive home, thanks
sugar
(Aldo Zavala)
April 22, 2025, 3:16pm
5
awesome, I will look into it thanks!
sugar
(Aldo Zavala)
April 22, 2025, 3:19pm
6
I did setup my own domain, my own email, and then setup a SMTP relay that allows “legacy” clients to use this proxy to connect to the smtp servers with modern authentication.
Voice mail works like a charm after that but not Missed Call notification… apart from system log files and maillog, where is the config file for this missed cal notification emails?
tanks!
sugar
(Aldo Zavala)
April 23, 2025, 6:42am
7
I finally fixed it:
here the full config for successful voicemail and missed call notifications using a custom domain and custom smtp server/gateway:
verification commands:
postmap -q [email protected] hash:/etc/postfix/sender_relay
postmap -q '[smtp.provider.com]:587' hash:/etc/postfix/sasl_passwd
Set permissions:
sudo chmod 600 /etc/postfix/sasl_passwd*
Rebuild maps:
sudo postmap /etc/postfix/sasl_passwd
sudo postmap /etc/postfix/sender_relay
Restart Postfix:
sudo systemctl restart postfix
Configuration files:
/etc/postfix/sasl_passwd
# Generated by FreePBX Sysadmin.
# Do not attempt to change this file
smtp.provider.com:587 [email protected] :**********
/etc/postfix/sender_relay
[email protected] smtp.provider.com:587
/etc/postfix/sender_canonical
/^$/ [email protected]
/etc/postfix/main.cf
# Set email rewrite
sender_canonical_maps = regexp:/etc/postfix/sender_canonical
# Set the sender address and login credentials
smtp_sender_dependent_authentication = yes
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_use_tls = yes
smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
relayhost = smtp.provider.com:587
myhostname = Your.Hostname
mydomain = example.com
myorigin = example.com
/etc/mail.rc
set smtp=smtps://smtp.provider.com:587
set smtp-use-starttls
set smtp-auth=login
set [email protected]
set smtp-auth-password=********
#set ssl-verify=ignore
set nss-config-dir=/etc/pki/nssdb/
FreePBX Email Settings:
Voicemail Admin > Settings > Email Config
Server Email: [email protected]
Mail Command: /usr/sbin/sendmail -t
Advanced Settings > User Management Module
Email "From:" Address: [email protected]
System Admin > Email Setup
SMTP Server: Use External SMTP Server
My Hostname: Your.Hostname
My Origin: example.com
My Domain: example.com
Provider: Other
SMTP Server: smtp.provider.com:587
Use Auth: Use Authentication
Use TLS: Use TLS
SASL Security Options: Disable Security
Username: [email protected]
Password: **********
thanks all!!!
1 Like
Did you change this file manually ?
sugar
(Aldo Zavala)
April 23, 2025, 5:21pm
9
no, I only make sure it contains the right information