[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Probleme mit Postfix, SASL Authentifizierung und MySQL



Morgen Liste, 

ich hab ein fettes Problem mit Postfix und dem Mailversand. Das Empfangen von 
EMails funktioniert super nur leider bekomme ich nicht eine Mail raus. Die 
SASL Authentifizierung und die MySQL Geschichte will dabei absolut nicht 
laufen.  Ich bekomme grundsaetzlich folgende Fehlermeldung (getestet mit 
telnet auf Port 25:

---- Fehlermeldung START -----
May 22 01:40:17 localhost postfix/smtpd[20740]: connect from 
www[83.137.103.58]
May 22 01:40:26 localhost postfix/smtpd[20740]: warning: SASL authentication 
failure: Password verification failed
May 22 01:40:26 localhost postfix/smtpd[20740]: warning: www[83.137.103.58]: 
SASL PLAIN authentication failed
---- Fehlermeldung ENDE ---- 

Ich habe das schon mit der Authentifizierung ueber die Shadow getestet und 
dort lief es wenigstens lokal. 

Folgende Sachen habe ich Konfiguriert:
1) saslauthd wurde mit Option -a PAM gestartet
1a) saslauthd -v beinhaltet PAM
2) postconf -m sagt mir das MySQL drin ist
3) die libs fuer sasl und sql in /usr/lib/sasl2/ sind auch da
4) /etc/postfix/sasl/smtp.conf
------Start ---------
pwcheck_method: auxprop
auxprop_plugin: sql
mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5
log_level: 3

sql_engine: mysql
sql_hostnames: localhost
sql_database: email
sql_user: user
sql_passwd: password
sql_select: SELECT %p FROM mailusers WHERE username = '%u' AND userrealm = 
'%r' AND auth = '1
sql_usessl: nod.conf 
------Ende--------

5) /etc/postfix/main.cf
----Start----
# Local Pathname Konfiguration
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix

# Owner and Process
mail_owner = postfix
default_privs = nobody

# Internethost and Domains
myhostname = mail.juerling.de
mydomain = juerling.de

# Sending Mail
myorigin = $mydomain

# Receiving Mail
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

# Trust and Relay Control
mynetworks_style = host
mynetworks = 127.0.0.0/8
relayhost = $mydomain

# Alias Database
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases

# Adress Extensions
recipient_delimiter = +

# Delivery to Mailbox
home_mailbox = /var/spool/pop/juerling.de/
mail_spool_directory = /var/spool/pop/juerling.de
mailbox_command = procmail -a "$EXTENSION"

# SMTP AUTH Server
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = mail.juerling.de
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous

smtpd_recipient_restrictions = permit_sasl_authenticated, 
reject_unauth_destination
----Ende----

Wenn ich mir die Logfiles anschaue....so bekomme ich in der syslog die obige 
und die mysql.log bleibt unangetastet...also da taucht noch nicht mal der 
Versuch auf. 

Ich sitz jetzt hier seid 4 Tagen und naechten und hab kein Plan mehr was ich 
machen soll. Die keine Ahnung vieviel Foren, HTML Seiten und Handbuecher 
haben mich irgendwie auch nicht weitergebracht. Wo zum verrecken mache ich 
den Fehler :( *heul* 

Ich wuerde mich echt freuen wenn mir da mal einer helfen koente. 

lg
Mario

-- 
________________________________________________
/ar|<  --- Yippy, Yippy, have a nice Day ---



Reply to: