[Postfixbuch-users] Relay access denied trotz erfolgreicher Anmeldung

Jens Wolf jens at khaolakforum.de
So Jul 13 12:22:28 CEST 2008


Hallo Liste,

Diese Zeile :

postfix/smtpd[17482]: < p54940D59.dip0.t-ipconnect.de[84.148.13.89]:
AUTH PLAIN xxxxxxxxxxx

postfix/smtpd[17482]: xsasl_cyrus_server_first: sasl_method PLAIN,
init_response xxxxxxxx

postfix/smtpd[17482]: xsasl_cyrus_server_first: decoded initial response
postfix/smtpd[17482]: > p54940D59.dip0.t-ipconnect.de[84.148.13.89]: 235
2.0.0 Authentication successful

Sagt mir doch eigentlich, dass ich mich erfolgreich bei Postfix
authentifiziert habe, oder ?

Trotzdem sagt mir Postfix:

Relay access denied; 
from=<jens at khaolak-forum.de> to=<jens at khaolakforum.de> proto=ESMTP

Gebe ich ein falschen PW ein, sagt Postfix natürlich:

warning: SASL authentication failure: Password verification failed

So wie es sein sollte. 
An lokale Adressen lässt er mich natürlich senden.


/etc/postfix/sasl/smtpd.conf

saslauthd_path: /var/run/saslauthd/mux
pwcheck_method: saslauthd
mech_list: PLAIN LOGIN
log_level: 3

Der Daemon läuft:
/usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -n
5
/usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -n
5
/usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -n
5
/usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -n
5
/usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/var/run/saslauthd -n
5




postconf -n

alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = /etc/postfix/local-host-names
myhostname = khaolak-forum.de
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination
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
virtual_alias_maps = hash:/etc/postfix/virtusertable

Das Zertifikat ist natürlich Mist und nur zum testen.

master.cf

smtp      inet  n       -       -       -       -       smtpd 
#submission inet n       -       -       -       -       smtpd
#  -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps     inet  n       -       -       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       -       -       -       smtp

relay     unix  -       -       -       -       -       smtp
        -o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache


maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}


uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
($recipient)


ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender
$recipient
scalemail-backend unix  -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
${nexthop} ${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}



Postfix nimmt Mails an, ich kann sie auch über courier abrufen nur
senden lassen will mich Postfix nicht.






Mehr Informationen über die Mailingliste Postfixbuch-users