Hallo allerseits,
ich weiss, dieses Thema wurde bestimmt schon gefühlte 10000mal gefragt ...aber ich habe jetzt sooo viele Foren und Howto Seiten durchgelesen und kriege mein Problem trotzdem nicht in den Griff...: Die sasl authentifizierung klappt einfach nicht!!
Ich soll einen MTA (Postfix) aufsetzen (mit Amavis, Greylisting und IMAP (Cyrus) Zugang. Als System benutze ich SLES 11SP2.
die Komponaeten habe ich alle mit yast installiert (ausser Greylisting)
hier ein Auszug aus meiner main.cf:
	
	
	
		
meine master.cf:
	
	
	
		
ich habe mit
	
		
 und 
	
	
	
		
 diverse User angelgt:
	
	
	
		
und alles scheint ok zu sein....
ein
	
		
 bringt folgendes: 
	
	
	
		
sooo....
wenn ich jetzt mit Thunderbird versuche ein Konto zu erstellen fängt das schon seltsam an indem Thunderbird eine Kerberus Authentifizierung erkennt...
...schade den Screenshot krieg ich hier leider nicht rein...
aber egal..
das dazugehörige Log sieht so aus: /var/log/mail
	
	
	
		
Da ich Thunderbird nicht davon überzeugen kann das ich kein Kerberus verwende muss ich hier abbrechen... also nehm ich kein IMAP sondern POP und erkenne dann "Passwort normal".
Das Log sieht dann so aus:
	
	
	
		
will ich das Konto dann aber anlegen passiert folgendes:
	
	
	
		
habe sicherheitshalber noch mal mit
	
		
 das passwort neu generiert....selbes Ergebnis 
...ich weiss nun wirklich nicht mehr weiter... kann mir irgendjemand helfen?
braucht ihr noch mehr Infos?
Vielen Dank schonmal im vorraus!!
Grüße
			
			ich weiss, dieses Thema wurde bestimmt schon gefühlte 10000mal gefragt ...aber ich habe jetzt sooo viele Foren und Howto Seiten durchgelesen und kriege mein Problem trotzdem nicht in den Griff...: Die sasl authentifizierung klappt einfach nicht!!
Ich soll einen MTA (Postfix) aufsetzen (mit Amavis, Greylisting und IMAP (Cyrus) Zugang. Als System benutze ich SLES 11SP2.
die Komponaeten habe ich alle mit yast installiert (ausser Greylisting)
hier ein Auszug aus meiner main.cf:
		Code:
	
	inet_protocols = ipv4
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
myhostname = testmx.hh.dietrich.lan
delay_warning_time = 1h
message_strip_characters = \0
program_directory = /usr/lib/postfix
inet_interfaces = all
masquerade_domains =
mydestination = $myhostname,localhost.$mydomain,$mydomain
defer_transports =
mynetworks_style = subnet
disable_dns_lookups = no
relayhost = mx.freenet.de
mailbox_command =
mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
strict_8bitmime = yes
disable_mime_output_conversion = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination,check_policy_service inet:127.0.0.1:60000
smtp_sasl_auth_enable = yes
smtpd_sasl_auth_enable = yes
smtpd_use_tls = no
smtp_use_tls = no
smtp_enforce_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000
smtp_sasl_security_options =
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_session_cache_timeout = 3600s
smtp_tls_session_cache_database = btree:/var/lib/postfix/smtpd_tls_session_cache
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yesmeine master.cf:
		Code:
	
	#
# Postfix master process configuration file.  For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       10       smtpd -v  -o content_filter=smtp:[127.0.0.1]:10024
#submission inet n      -       n       -       -       smtpd
#       -o smtpd_etrn_restrictions=reject
#       -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps    inet  n       -       n       -       10       smtpd -o smtpd_tls_wrappermode=yes -o content_filter=smtp:[127.0.0.1]:10024
#  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission   inet    n       -       n       -       -       smtpd
#  -o smtpd_etrn_restrictions=reject
#  -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
#tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       n       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
        -o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
localhost:10025 inet    n       -       n       -       -       smtpd -o content_filter= -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks,no_address_mappings
scache    unix  -       -       n       -       1       scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
cyrus     unix  -       n       n       -       -       pipe
  user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
procmail  unix  -       n       n       -       -       pipe
  flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}
retry     unix  -       -       n       -       -       error
proxywrite unix -       -       n       -       1       proxymap
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
master.cf lines 1-72/72 (END)ich habe mit
		Code:
	
	saslpasswd2
		Code:
	
	cyradm
		Code:
	
	testmx:/etc/postfix # sasldblistusers2
testuser1@testmx.hh.dietrich.lan: userPassword
testuser3@testmx.hh.dietrich.lan: userPassword
testuser5@testmx.hh.dietrich.lan: userPassword
testuser2@testmx: userPassword
cyrus@testmx: userPassword
testuser1@testmx: userPassword
exampleuser@testmx.hh.dietrich.lan: userPassword
testuser2@testmx.hh.dietrich.lan: userPassword
testuser4@testmx.hh.dietrich.lan: userPasswordund alles scheint ok zu sein....
ein
		Code:
	
	netstat -l
		Code:
	
	testmx:/etc/postfix # netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 *:ssh                   *:*                     LISTEN
tcp        0      0 *:smtp                  *:*                     LISTEN
tcp        0      0 localhost:60000         *:*                     LISTEN
tcp        0      0 localhost:10024         *:*                     LISTEN
tcp        0      0 *:5801                  *:*                     LISTEN
tcp        0      0 localhost:10025         *:*                     LISTEN
tcp        0      0 *:5901                  *:*                     LISTEN
tcp        0      0 *:pop3                  *:*                     LISTEN
tcp        0      0 localhost:dyna-access   *:*                     LISTEN
tcp        0      0 *:imap                  *:*                     LISTEN
tcp        0      0 *:sunrpc                *:*                     LISTEN
tcp        0      0 *:cisco-sccp            *:*                     LISTEN
udp        0      0 *:sunrpc                *:*
udp        0      0 *:cryptoadmin           *:*
udp        0      0 *:xdmcp                 *:*sooo....
wenn ich jetzt mit Thunderbird versuche ein Konto zu erstellen fängt das schon seltsam an indem Thunderbird eine Kerberus Authentifizierung erkennt...
...schade den Screenshot krieg ich hier leider nicht rein...
aber egal..
das dazugehörige Log sieht so aus: /var/log/mail
		Code:
	
	Apr 25 14:12:50 testmx postfix/smtpd[3010]: connection established
Apr 25 14:12:50 testmx postfix/smtpd[3010]: master_notify: status 0
Apr 25 14:12:50 testmx postfix/smtpd[3010]: name_mask: resource
Apr 25 14:12:50 testmx postfix/smtpd[3010]: name_mask: software
Apr 25 14:12:50 testmx postfix/smtpd[3010]: xsasl_cyrus_server_create: SASL service=smtp, realm=(null)
Apr 25 14:12:50 testmx postfix/smtpd[3010]: name_mask: noanonymous
Apr 25 14:12:50 testmx postfix/smtpd[3010]: connect from hh018.hh.dietrich.lan[192.168.0.118]
Apr 25 14:12:50 testmx postfix/smtpd[3010]: match_list_match: hh018.hh.dietrich.lan: no match
Apr 25 14:12:50 testmx postfix/smtpd[3010]: match_list_match: 192.168.0.118: no match
Apr 25 14:12:50 testmx postfix/smtpd[3010]: match_list_match: hh018.hh.dietrich.lan: no match
Apr 25 14:12:50 testmx postfix/smtpd[3010]: match_list_match: 192.168.0.118: no match
Apr 25 14:12:50 testmx postfix/smtpd[3010]: match_hostname: hh018.hh.dietrich.lan ~? 127.0.0.0/8
Apr 25 14:12:50 testmx postfix/smtpd[3010]: match_hostaddr: 192.168.0.118 ~? 127.0.0.0/8
Apr 25 14:12:50 testmx postfix/smtpd[3010]: match_hostname: hh018.hh.dietrich.lan ~? 192.168.0.0/24
Apr 25 14:12:50 testmx postfix/smtpd[3010]: match_hostaddr: 192.168.0.118 ~? 192.168.0.0/24
Apr 25 14:12:50 testmx postfix/smtpd[3010]: > hh018.hh.dietrich.lan[192.168.0.118]: 220 testmx.hh.dietrich.lan ESMTP Postfix
Apr 25 14:12:50 testmx postfix/smtpd[3010]: < hh018.hh.dietrich.lan[192.168.0.118]: EHLO we-guess.mozilla.org
Apr 25 14:12:50 testmx postfix/smtpd[3010]: > hh018.hh.dietrich.lan[192.168.0.118]: 250-testmx.hh.dietrich.lan
Apr 25 14:12:50 testmx postfix/smtpd[3010]: > hh018.hh.dietrich.lan[192.168.0.118]: 250-PIPELINING
Apr 25 14:12:50 testmx postfix/smtpd[3010]: > hh018.hh.dietrich.lan[192.168.0.118]: 250-SIZE 10240000
Apr 25 14:12:50 testmx postfix/smtpd[3010]: > hh018.hh.dietrich.lan[192.168.0.118]: 250-VRFY
Apr 25 14:12:50 testmx postfix/smtpd[3010]: > hh018.hh.dietrich.lan[192.168.0.118]: 250-ETRN
Apr 25 14:12:50 testmx postfix/smtpd[3010]: > hh018.hh.dietrich.lan[192.168.0.118]: 250-AUTH DIGEST-MD5 PLAIN LOGIN
Apr 25 14:12:50 testmx postfix/smtpd[3010]: match_list_match: hh018.hh.dietrich.lan: no match
Apr 25 14:12:50 testmx postfix/smtpd[3010]: match_list_match: 192.168.0.118: no match
Apr 25 14:12:50 testmx postfix/smtpd[3010]: > hh018.hh.dietrich.lan[192.168.0.118]: 250-AUTH=DIGEST-MD5 PLAIN LOGIN
Apr 25 14:12:50 testmx postfix/smtpd[3010]: > hh018.hh.dietrich.lan[192.168.0.118]: 250-ENHANCEDSTATUSCODES
Apr 25 14:12:50 testmx postfix/smtpd[3010]: > hh018.hh.dietrich.lan[192.168.0.118]: 250-8BITMIME
Apr 25 14:12:50 testmx postfix/smtpd[3010]: > hh018.hh.dietrich.lan[192.168.0.118]: 250 DSN
Apr 25 14:12:50 testmx postfix/smtpd[3010]: < hh018.hh.dietrich.lan[192.168.0.118]: QUIT
Apr 25 14:12:50 testmx postfix/smtpd[3010]: > hh018.hh.dietrich.lan[192.168.0.118]: 221 2.0.0 Bye
Apr 25 14:12:50 testmx postfix/smtpd[3010]: match_hostname: hh018.hh.dietrich.lan ~? 127.0.0.0/8
Apr 25 14:12:50 testmx postfix/smtpd[3010]: match_hostaddr: 192.168.0.118 ~? 127.0.0.0/8
Apr 25 14:12:50 testmx postfix/smtpd[3010]: match_hostname: hh018.hh.dietrich.lan ~? 192.168.0.0/24
Apr 25 14:12:50 testmx postfix/smtpd[3010]: match_hostaddr: 192.168.0.118 ~? 192.168.0.0/24
Apr 25 14:12:50 testmx postfix/smtpd[3010]: disconnect from hh018.hh.dietrich.lan[192.168.0.118]
Apr 25 14:12:50 testmx postfix/smtpd[3010]: master_notify: status 1
Apr 25 14:12:50 testmx postfix/smtpd[3010]: connection closedDa ich Thunderbird nicht davon überzeugen kann das ich kein Kerberus verwende muss ich hier abbrechen... also nehm ich kein IMAP sondern POP und erkenne dann "Passwort normal".
Das Log sieht dann so aus:
		Code:
	
	Apr 25 14:20:39 testmx postfix/smtpd[3066]: connection established
Apr 25 14:20:39 testmx postfix/smtpd[3066]: master_notify: status 0
Apr 25 14:20:39 testmx postfix/smtpd[3066]: name_mask: resource
Apr 25 14:20:39 testmx postfix/smtpd[3066]: name_mask: software
Apr 25 14:20:39 testmx postfix/smtpd[3066]: xsasl_cyrus_server_create: SASL service=smtp, realm=(null)
Apr 25 14:20:39 testmx postfix/smtpd[3066]: name_mask: noanonymous
Apr 25 14:20:39 testmx postfix/smtpd[3066]: connect from hh018.hh.dietrich.lan[192.168.0.118]
Apr 25 14:20:39 testmx postfix/smtpd[3066]: match_list_match: hh018.hh.dietrich.lan: no match
Apr 25 14:20:39 testmx postfix/smtpd[3066]: match_list_match: 192.168.0.118: no match
Apr 25 14:20:39 testmx postfix/smtpd[3066]: match_list_match: hh018.hh.dietrich.lan: no match
Apr 25 14:20:39 testmx postfix/smtpd[3066]: match_list_match: 192.168.0.118: no match
Apr 25 14:20:39 testmx postfix/smtpd[3066]: match_hostname: hh018.hh.dietrich.lan ~? 127.0.0.0/8
Apr 25 14:20:39 testmx postfix/smtpd[3066]: match_hostaddr: 192.168.0.118 ~? 127.0.0.0/8
Apr 25 14:20:39 testmx postfix/smtpd[3066]: match_hostname: hh018.hh.dietrich.lan ~? 192.168.0.0/24
Apr 25 14:20:39 testmx postfix/smtpd[3066]: match_hostaddr: 192.168.0.118 ~? 192.168.0.0/24
Apr 25 14:20:39 testmx postfix/smtpd[3066]: > hh018.hh.dietrich.lan[192.168.0.118]: 220 testmx.hh.dietrich.lan ESMTP Postfix
Apr 25 14:20:39 testmx postfix/smtpd[3066]: < hh018.hh.dietrich.lan[192.168.0.118]: EHLO we-guess.mozilla.org
Apr 25 14:20:39 testmx postfix/smtpd[3066]: > hh018.hh.dietrich.lan[192.168.0.118]: 250-testmx.hh.dietrich.lan
Apr 25 14:20:39 testmx postfix/smtpd[3066]: > hh018.hh.dietrich.lan[192.168.0.118]: 250-PIPELINING
Apr 25 14:20:39 testmx postfix/smtpd[3066]: > hh018.hh.dietrich.lan[192.168.0.118]: 250-SIZE 10240000
Apr 25 14:20:39 testmx postfix/smtpd[3066]: > hh018.hh.dietrich.lan[192.168.0.118]: 250-VRFY
Apr 25 14:20:39 testmx postfix/smtpd[3066]: > hh018.hh.dietrich.lan[192.168.0.118]: 250-ETRN
Apr 25 14:20:39 testmx postfix/smtpd[3066]: > hh018.hh.dietrich.lan[192.168.0.118]: 250-AUTH DIGEST-MD5 PLAIN LOGIN
Apr 25 14:20:39 testmx postfix/smtpd[3066]: match_list_match: hh018.hh.dietrich.lan: no match
Apr 25 14:20:39 testmx postfix/smtpd[3066]: match_list_match: 192.168.0.118: no match
Apr 25 14:20:39 testmx postfix/smtpd[3066]: > hh018.hh.dietrich.lan[192.168.0.118]: 250-AUTH=DIGEST-MD5 PLAIN LOGIN
Apr 25 14:20:39 testmx postfix/smtpd[3066]: > hh018.hh.dietrich.lan[192.168.0.118]: 250-ENHANCEDSTATUSCODES
Apr 25 14:20:39 testmx postfix/smtpd[3066]: > hh018.hh.dietrich.lan[192.168.0.118]: 250-8BITMIME
Apr 25 14:20:39 testmx postfix/smtpd[3066]: > hh018.hh.dietrich.lan[192.168.0.118]: 250 DSN
Apr 25 14:20:39 testmx postfix/smtpd[3066]: < hh018.hh.dietrich.lan[192.168.0.118]: QUIT
Apr 25 14:20:39 testmx postfix/smtpd[3066]: > hh018.hh.dietrich.lan[192.168.0.118]: 221 2.0.0 Bye
Apr 25 14:20:39 testmx postfix/smtpd[3066]: match_hostname: hh018.hh.dietrich.lan ~? 127.0.0.0/8
Apr 25 14:20:39 testmx postfix/smtpd[3066]: match_hostaddr: 192.168.0.118 ~? 127.0.0.0/8
Apr 25 14:20:39 testmx postfix/smtpd[3066]: match_hostname: hh018.hh.dietrich.lan ~? 192.168.0.0/24
Apr 25 14:20:39 testmx postfix/smtpd[3066]: match_hostaddr: 192.168.0.118 ~? 192.168.0.0/24
Apr 25 14:20:39 testmx postfix/smtpd[3066]: disconnect from hh018.hh.dietrich.lan[192.168.0.118]
Apr 25 14:20:39 testmx postfix/smtpd[3066]: master_notify: status 1
Apr 25 14:20:39 testmx postfix/smtpd[3066]: connection closed
Apr 25 14:20:39 testmx popper[3068]: (v4.0.14) Servicing request from "hh018.hh.dietrich.lan" at 192.168.0.118 [pop_init.c:1239]will ich das Konto dann aber anlegen passiert folgendes:
		Code:
	
	Apr 25 14:24:12 testmx popper[3084]: (v4.0.14) Servicing request from "hh018.hh.dietrich.lan" at 192.168.0.118 [pop_init.c:1239]
Apr 25 14:24:12 testmx postfix/smtpd[3081]: proxymap stream disconnect
Apr 25 14:24:22 testmx popper[3084]: testuser3 at hh018.hh.dietrich.lan (192.168.0.118): -ERR [AUTH] Password supplied for "testuser3" is incorrect. [pop_pass.c:1177]
Apr 25 14:24:22 testmx popper[3086]: (v4.0.14) Servicing request from "hh018.hh.dietrich.lan" at 192.168.0.118 [pop_init.c:1239]
Apr 25 14:24:32 testmx popper[3086]: testuser1@192.168.0.199 at hh018.hh.dietrich.lan (192.168.0.118): -ERR [AUTH] Password supplied for "testuser1@192.168.0.199" is incorrect. [pop_pass.c:1177]habe sicherheitshalber noch mal mit
		Code:
	
	saslpasswd testuser3...ich weiss nun wirklich nicht mehr weiter... kann mir irgendjemand helfen?
braucht ihr noch mehr Infos?
Vielen Dank schonmal im vorraus!!
Grüße
 
					
				 
 
		