[Postfixbuch-users] Mit postfix unter Raspbian relayen

T. Ermlich pelegrine at gmx.net
Mo Dez 2 07:10:30 CET 2013


Guten Morgen liebe Liste,

am Wochenende habe ich bei einem Freund einen Raspberry samt postfix
installiert.
Eigentlich klappt damit so ziemlich alles wie es soll, nur relayen mag
er nicht.

Auf einem PC unter gleicher Debian-Version (Wheezy samt allen updates)
funktioniert die Konfiguration, unter dem Raspberry nicht.
Die Fehlermeldung unter dem Raspberry lautet:
(host smtp.1und1.de[212.227.15.167] said: 421 invalid sender domain
'raspberrypi.fritz.box' (misconfigured dns?)
http://postmaster.1and1.com/error-messages/#invalidsenderdomain (in
reply to MAIL FROM command))

Die invalid sender domain-Fehlermeldung ändert sich nur bei einer
Änderung des Eintrags in /etc/hosts.

/etc/postfix/main.cf & master.cf sind identisch!
Ebenso /etc/postfix/sasl_passwd
Auch ist der Aufbau von /etc/mailname identisch.
Nur der Aufbau der /etc/hosts unterscheidet sich ... beim Raspberry
steht dort:
127.0.0.1       localhost
127.0.1.1       raspberrypi.fritz.box raspberrypi
während bei dem PC steht:
127.0.0.1       localhost
127.0.1.1       linux.%DOMAIN.dt  linux

root at linux:/etc/postfix# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = linux.%DOMAIN.dt, localhost.%DOMAIN.dt, \
linux.%DOMAIN.de, localhost
myhostname = linux.%DOMAIN.de
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost = [smtp.1und1.de]
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
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:${data_directory}/smtpd_scache
smtpd_use_tls = yes

[Erklärung:
%DOMAIN.de == bei 1und1.de angemietete domain
%DOMAIN.dt == Name des lokalen Netzwerks]

/etc/postfix/sasl_passwd lautet jeweils:
smtp.1und1.de MAILBOX@%DOMAIN.de:PASSWORT
(Anschließend ein sudo postmap /etc/postfix/sasl_passwd ausgeführt ;))

postfix-Version auf dem Raspberry:
torsten at raspberrypi /etc/postfix $ sudo apt-cache show postfix
Package: postfix
Version: 2.9.6-2
...

postfix-Version auf PC:
torsten at raspberrypi /etc/postfix $ apt-cache show postfix
Package: postfix
Version: 2.9.6-2
...

Wie gesagt, die Konfig läuft auf einem PC, nicht aber auf dem Raspberry.

Was mache ich falsch? Steh grad irgendwie mächtig auf dem Schlauch .. :(

Danke & Gruß
Torsten



Mehr Informationen über die Mailingliste Postfixbuch-users