[Postfixbuch-users] (kein Betreff)

Philip Spring wertzug at gmx.ch
Mi Apr 21 21:44:32 CEST 2004


>> -----Original Message-----
>> From: postfixbuch-users-bounces at listi.jpberlin.de 
>> [mailto:postfixbuch-users-bounces at listi.jpberlin.de] On
>> Behalf Of Philip Spring
>> Sent: Wednesday, April 21, 2004 5:30 PM
>>
>> Hallo zusammen,
>>
>> ich hab mir da einen Mailserver mit Postfix und Courier Imap
>> gebastelt. Nun
>> will ich SMTP-Auth über SASL2 einstellen. Ich lass den
>> Authdamon per rimap
>> authentifizieren. Nun habe ich das Problem, dass die
>> Authentifizierung fehl
>> schlägt. Ich will mich mit dem Testaccount test at test.ch Passwort test
>> anmelden. Wenn ich mich per Imap normal einlogge, funktioniert es
>> Problemlos. Im Log habe ich herausgefunden, dass wenn sich SASL2
>> authentifiziren will nicht den user test at test.ch sondern nur
>> test verwendet.
>> Ich habe es mit verschiedenen Mail Clients probiert (Outlook,
>> Outlook Ex.,
>> Mozilla), es ging nicht. Ich habe mal beim authentifizieren (übrigens
>> verwende ich die Methode login) den Ethereal mitlaufen lassen:
>>
>> 220 mail ESMTP
>> EHLO test.ch
>> 250-mail
>> 250-PIPELINING
>> 250-SIZE 10240000
>> 250-ETRN
>> 250-AUTH LOGIN
>> 250 8BITMIME
>> AUTH LOGIN
>> 334 VXNlcm5hbWU6
>> dGVzdEB0ZXN0
>
>Hmm das ist test at test
>copy&paste Fehler oder auch so am Client eingetragen?
>Was macht er wenn du lokal händisch die Authentifikation versuchst?

Passiert das gleiche, user: test

>> 334 UGFzc3dvcmQ6
>> dGVzdA==
>>
>> In /var/log/mail stehen folgende Einträge:
>>
>> Apr 21 17:20:26 mail postfix/smtpd[13700]: connect from
>> unknown[192.168.1.10]
>> Apr 21 17:20:31 mail imapd: Connection, ip=[::ffff:127.0.0.1]
>> Apr 21 17:20:31 mail imapd: LOGIN: DEBUG: ip=[::ffff:127.0.0.1],
>> command=LOGIN
>> Apr 21 17:20:31 mail imapd: LOGIN: DEBUG: ip=[::ffff:127.0.0.1],
>> username=test
>> Apr 21 17:20:31 mail imapd: LOGIN: DEBUG: ip=[::ffff:127.0.0.1],
>> password=test
>> Apr 21 17:20:36 mail imapd: LOGIN FAILED, ip=[::ffff:127.0.0.1]
>> Apr 21 17:20:36 mail postfix/smtpd[13700]: warning:
>> unknown[192.168.1.10]:
>> SASL LOGIN authentication failed
>>
>> Weiss jemand wieso er sich mit test und nicht mit test at test.ch
>> authentifizieren will?
>
>Was sagt ein `postconf -n` ?

postconf -n:

alias_maps = hash:/etc/aliases
body_checks = regexp:/etc/postfix/body_checks
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_privs = nobody
default_recipient_limit = 1000
disable_vrfy_command = yes
header_checks = regexp:/etc/postfix/header_checks
hopcount_limit = 50
inet_interfaces = all
initial_destination_concurrency = 5
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_size_limit = 0
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
message_size_limit = 10240000
mydestination = $myhostname, localhost.$mydomain, $mydomain
mydomain = test.ch
myhostname = mail.test.ch
mynetworks = 127.0.0.0/8
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases
program_directory = /usr/lib/postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relay_domains = mysql:/etc/postfix/relay_domains.mysql
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtpd_banner = $myhostname ESMTP
smtpd_recipient_restrictions =
permit_sasl_authenticated,permit_mynetworks,reject_unknown_hostname,reject_unknown_sender_domain,reject_non_fqdn_sender,reject_unauth_destination,check_sender_access
hash:/etc/postfix/sender_access,reject_rbl_client
relays.ordb.org,reject_rbl_client cbl_abuseat.org,reject_rbl_client
list.dsbl.org,reject_rbl_client opm_blitzed.org,reject_rbl_client
sbl.spamhaus.org,reject_rhsbl_client
blackhole.securitysage.com,reject_rhsbl_sender
blackhole.securitysage.com,permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = hash:/etc/postfix/access
strict_rfc821_envelopes = yes
transport_maps = mysql:/etc/postfix/transport.mysql
unknown_local_recipient_reject_code = 550
virtual_gid_maps = mysql:/etc/postfix/ids.mysql
virtual_mailbox_base = /var/spool/maildirs
virtual_mailbox_maps = mysql:/etc/postfix/mailbox.mysql
virtual_minimum_uid = 5000
virtual_uid_maps = mysql:/etc/postfix/ids.mysql

Hab eigentlich alles so konfiguriert wie es im Buch steht. Ich benutze SuSE
9.0 hab aber Postfix, Courier-Imap und SASL2 selbst kompilliert.

smtpd.conf:

pwcheck_method: saslauthd
saslauthd_path: /var/run/sasl2/mux
mech_list: login

>> 
>> Mit freundlichen Grüssen
>> Phil
>
>marc

-- 
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/dsl




Mehr Informationen über die Mailingliste Postfixbuch-users