Mein Problem: Ein Server daheim soll E-Mails verschicken können. Wenn ich aber direkt mit der Arcor-IP E-Mails versende, werde ich oft blockiert.
Darum musste ich postfix einen SMTP-Server mit Auth+TLS beibringen:
/etc/postfix/main.cf:
relayhost = smtp.googlemail.com
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous
smtp_use_tls = yes
smtp_tls_loglevel = 1
smtp_tls_security_level = encrypt
smtp_tls_mandatory_ciphers = high
smtp_tls_security_level = secure
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
/etc/postfix/smtp_auth:
smtp.googlemail.com username@gmail.com:password
Dann postmap /etc/postfix/smtp_auth und /etc/init.d/postfix stop && /etc/init.d/postfix start
Unter Ubuntu 9.10-server existiert die Datei /etc/ssl/certs/ca-certificates.crt bereits.
0 Responses to “postfix + googlemail”