Hallo
ich kämpfe schon mehrere Stunden und komme einfach nicht drauf. ich habe einen smarthost konfiguriert, um über gmail meine emails zu versenden. leider erhalte ich immer die folgende Fehlermeldung von gmail
Apr 25 12:09:10 esel postfix/smtp[16893]: 22B6A172E: to=<user@example.com>, relay=gmail-smtp.l.google.com[72.14.221.109], delay=0, status=bounced (host gmail-smtp.l.google.com[72.14.221.109] said: 530 5.7.0 Must issue a STARTTLS command first. 12sm15
meine main.cf sieht folgender massen aus
alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix home_mailbox = Maildir/ inet_interfaces = all inet_protocols = all mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = mydestination = localhost myhostname = example.com mynetworks = 127.0.0.0/8 myorigin = /etc/mailname recipient_delimiter = + relayhost = smtp.gmail.com:587 sender_canonical_maps = hash:/etc/postfix/sender_canonical_smarthost smtp_sasl_password_maps = hash:/etc/postfix/sasl_password_smarthost smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) smtpd_enforce_tls = yes smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache smtpd_use_tls = yes
installiert habe ich postfix und die folgenden Pakete
ii libsasl2 2.1.19.dfsg1-0.1ubuntu2 Authentication abstraction library ii libsasl2-dev 2.1.19.dfsg1-0.1ubuntu2 Development files for authentication abstrac ii libsasl2-modules 2.1.19.dfsg1-0.1ubuntu2 Pluggable Authentication Modules for SASL ii sasl2-bin 2.1.19.dfsg1-0.1ubuntu2 Programs for manipulating the SASL users dat
in: /etc/postfix/sasl_password_smarthost steht
smtp.gmail.com user@gmail.com:password
die datei habe ich mit postmap /etc/postfix/sasl_password_smarthost zu einer postfix-db gemacht
Ich habe keine Idee mehr?
Bearbeitet von xabbuh:
Bitte benutze für Auszüge aus Konfigurations- und Logdateien die code-Tags des Forum. Danke! ☺