[Postfixbuch-users] smtp-Auth

pinguin at tuxolino.net pinguin at tuxolino.net
Fr Nov 30 15:35:16 CET 2007


>> Meine /var/log/mail.log:
>> tail /var/log/mail.log
>> Nov 30 14:40:45 localhost postfix/pickup[3159]: DE6FE2B6CB: uid=1000
>> from=<michael>
>> Nov 30 14:40:45 localhost postfix/cleanup[4020]: DE6FE2B6CB:
>> message-id=<20071130134045.GA4012 at tuxolino.net>
>> Nov 30 14:40:46 localhost postfix/qmgr[3160]: DE6FE2B6CB:
>> from=<michael at tuxolino.net>, size=428, nrcpt=1 (queue active)
>> Nov 30 14:40:46 localhost postfix/smtp[4022]: DE6FE2B6CB:
>> to=<mgschmidt at foni.net>, relay=mail.tuxolino.net[89.246.255.36]:25,
>> delay=0.5, delays=0.17/0.17/0.1/0.06, dsn=5.7.1, status=bounced (host
>> mail.tuxolino.net[89.246.255.36] said: 550 5.7.1 <mgschmidt at foni.net>...
>> Relaying denied. Proper authentication required. (in reply to RCPT TO
>> command))
>
> Und wo ist das auth ? wo wird das abgelehnt?
Das ist eine Anzeige die ich bekommen, wenn ich von der GUI mit KMail
versuche Mails zu versenden oder abzuholen.
>
> Mal ein Schuß ins Blaue dein Outlook meldet sich gar nicht erst an  bzw.
> versucht sich
> überhaupt nicht anzumelden (keine Übermittlung von User und PW).
Kann ich weder ausschliessen noch bestaetigen, wie stelle ich das sicher
fest?
>
>> Nov 30 14:40:46 localhost postfix/cleanup[4020]: 572AC2B6CC:
>> message-id=<20071130134046.572AC2B6CC at localhost>
>> Nov 30 14:40:46 localhost postfix/qmgr[3160]: 572AC2B6CC: from=<>,
>> size=2289, nrcpt=1 (queue active)
>> Nov 30 14:40:46 localhost postfix/bounce[4023]: DE6FE2B6CB: sender
>> non-delivery notification: 572AC2B6CC
>> Nov 30 14:40:46 localhost postfix/qmgr[3160]: DE6FE2B6CB: removed
>> Nov 30 14:40:46 localhost postfix/local[4024]: 572AC2B6CC:
>> to=<michael at tuxolino.net>, relay=local, delay=0.09,
>> delays=0.01/0.03/0/0.05, dsn=2.0.0, status=sent (delivered to command:
>> procmail -a "$EXTENSION")
>> Nov 30 14:40:46 localhost postfix/qmgr[3160]: 572AC2B6CC: removed
>>
Meine /etc/postfix/main.cf sieht wie folgt aus:
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no

smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=no
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

smtpd_sasl_auth_enable=yes
smtpd_sasl_security_options=noanonymous
smtpd_tls_auth_only=no
smtpd_sasl_local_domain=test-tux
broken_sasl_auth_clients=yes

myhostname = localhost
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = tuxolino.net, localhost, localhost.localdomain, localhost
relayhost = [mail.tuxolino.net]
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

smtp_sasl_auth_enable=yes
smtp_sasl_password_maps=hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options=noanonymous
smtp_tls_security_level=none

> Nein der fragte dich nach der Ausgabe von postconf -n

Ok, danke, das war aus der Erinnerung erstellt.
Die Ausgabe von postconf -n ergibt:
alias_database = hash:/etc/aliases
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 = tuxolino.net, localhost, localhost.localdomain, localhost
myhostname = localhost
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
recipient_delimiter = +
relayhost = [mail.tuxolino.net]
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = none
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 = test-tux
smtpd_sasl_security_options = noanonymous
smtpd_tls_auth_only = no
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 = no

> Und bitte auch noch die master.cf OHNE KOMENTARE
Entschuldigung! Ja, ohne Kommentare:
smtp      inet  n       -       -       -       -       smtpd
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=
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}

>
> Wenn du kein TLS benutzt dann wirf es erstmal raus die Kiste sollte
> erstmal Ohne TLS
Ich denke, dass ich das mit dem Eintrag 'smtp_tls_security_level=none' in
der /etc/postfix/main.cf gemacht habe, oder verstehe ich das falsch?
> sauber rennen sonst hast du noch mehr Baustellen
Da es nicht laeuft habe ich wohl noch, mir unbekannte Bausellen.
Gruss,
Michael





Mehr Informationen über die Mailingliste Postfixbuch-users