Mail not working?!

Aerialflame7125

New Member
May 9, 2023
14
0
1
For some reason, last night I decided to let proxmox send me emails about what is happening with my proxmox machine, I send test postfix emails after setting it up, and it does not work. I do
Code:
echo "Test mail from postfix" | mail -s "Test Postfix" *my email*
. I check my email and there is nothing there, this morning i also checked, and nothing was there. So I am confused what I did wrong. Here is my main.cf file >
Code:
#google mail config
smtprelayhost = [smtp.gmail.com]:587
smtp_use_tls = yes
smtp_sasl_auth_enable = yes   
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
#mydestination = $myhostname, localhost.$mydomain, localhost
 
Take a look at (or post back here), the last dozen or so lines (whatever looks relevant) from the output of journalctl _SYSTEMD_UNIT=postfix@-.service.

Hopefully, there's a useful error message there indicating the problem.
 
Take a look at (or post back here), the last dozen or so lines (whatever looks relevant) from the output of journalctl _SYSTEMD_UNIT=postfix@-.service.

Hopefully, there's a useful error message there indicating the problem.
BTW, my main.cf is also set up to use GMail, and it is working; it looks like this:
Code:
myhostname=XXXX.XXXX.org

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 127.0.0.0/8
inet_interfaces = loopback-only
recipient_delimiter = +

compatibility_level = 2

relayhost = smtp.gmail.com:587
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_security_options =
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_CAfile = /etc/ssl/certs/Entrust_Root_Certification_Authority.pem
smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_tls_session_cache
smtp_tls_session_cache_timeout = 3600s