Hi,
Trying my best to setup email-notifications, and found this great guide which seems to have worked well for others. I have had no luck though.
When issuing
Which indicates that mail will be stored in /etc/mail/pve - and sure enough, there they end up. Why eludes me... It says destination is the correct address, why redirected?
My /etc/postfix/main.cf looks like this;
Trying my best to setup email-notifications, and found this great guide which seems to have worked well for others. I have had no luck though.
When issuing
Code:
sudo echo "Test mail from postfix" | mail -v -s "Test Postfix" <my_email>
Mail Delivery Status Report will be mailed to <pve>
My /etc/postfix/main.cf looks like this;
Code:
cat /etc/postfix/main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
myhostname=<my hostname>
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mynetworks = 127.0.0.0/8
inet_interfaces = loopback-only
inet_protocols = ipv4
recipient_delimiter = +
compatibility_level = 2
# Google mail configuration
#-------------------------------------------
relayhost = [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
smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_tls_session_cache
smtp_tls_session_cache_timeout = 3600s
smtp_tls_wrappermode = yes
smtp_tls_security_level = encrypt
Last edited: