Bin am Verzweifeln bei der Nutzung von Postfix. Habe jetzt 3 verschiedene Mail Accounts benutzt
meineAdresse@gmx.net gmx.net
meineAdresse@gmail.com smtp.gmail.com
meine@domain.de w123456.kasserver.com
Bei keiner der Setups. funktioniert es. Nur die Fehlermeldung unterscheiden sich:
z.B.
/etc/postfix/main.cf
/etc/postfix/sender_canonical_maps
/etc/postfix/header_check
/etc/postfix/sasl_passwd
postmap /etc/postfix/sasl_passwd
chown root:root /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db
chmod 0600 /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db
cat /etc/ssl/certs/ssl-cert-snakeoil.pem | tee -a /etc/postfix/cacert.pem
postfix reload
echo "Proxmox SMTP Test" | mail -s "SMTP Test" an@adresse.de -r von@adresse.de
meineAdresse@gmx.net gmx.net
meineAdresse@gmail.com smtp.gmail.com
meine@domain.de w123456.kasserver.com
Bei keiner der Setups. funktioniert es. Nur die Fehlermeldung unterscheiden sich:
z.B.
Code:
Nov 25 00:31:48 PVE1 postfix/error[390220]: B1F6C810BF: to=<meine@domain.de>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=4.7.0, status=deferred (delivery temporarily suspended: host w123456.kasserver.com[xx.xx.xx.xx.247] refused to talk to me: yy.yy.yy
w123456.kasserver.com Error: too many connections from <mylocalIP>)
Code:
Nov 26 12:56:42 PVE1 postfix/smtp[2194504]: D4F1A810C8: to=<meineAdresse@gmx.net>, relay=mail.gmx.net[212.227.17.190]:587, delay=0.17, delays=0/0/0.15/0.01, dsn=5.0.0, status=bounced (host mail.gmx.net[212.227.17.190] said: 530 Authentication required (in reply to MAIL FROM command))
/etc/postfix/main.cf
Code:
relayhost = [smtp.mailserver.de]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes
sender_canonical_classes = envelope_sender, header_sender
sender_canonical_maps = regexp:/etc/postfix/sender_canonical_maps
smtp_header_checks = regexp:/etc/postfix/header_check
/etc/postfix/sender_canonical_maps
Code:
/.+/ von@adresse.de
/etc/postfix/header_check
Code:
/From:.*/ REPLACE From: von@adresse.de
/etc/postfix/sasl_passwd
Code:
[smtp.mailserver.de]:587 benutzer:passwort
postmap /etc/postfix/sasl_passwd
chown root:root /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db
chmod 0600 /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db
cat /etc/ssl/certs/ssl-cert-snakeoil.pem | tee -a /etc/postfix/cacert.pem
postfix reload
echo "Proxmox SMTP Test" | mail -s "SMTP Test" an@adresse.de -r von@adresse.de
Last edited: