> imho ez eleg keves info, probald meg reszletesebben leirni, mit
> is csinaltal: melyik fileban mit allitottal, stb...
>
> sok valaszt ne varj addig, mig nem adsz tobb infot.
No nézzük akkor a fájlokat:
//------------------------------------------------------------------
/etc/postfix/main.conf:
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restriction = permit_mynetworks,
permit_sasl_authenticated,
reject_maps_rbl, reject_unauth_destination,
check_relay_domains
smtpd_sender_restriction = reject_unknown_sender_domain
smtpd_client_restrictions = reject_unknown_client
/etc/postfix/sasl/smtpd.conf:
pwcheck_method: saslauthd
mech_list: plain login
allow_plaintext: true
auxprop_plugin: mysql
sql_hostnames: 127.0.0.1
sql_user: mail_admin
sql_passwd: mail_admin_password
sql_database: mail
sql_select: select password from users where email = .%u.
log_level: 5
/etc/pam.d/smtp:
auth required /lib/security/pam_mysql.so user=mail_admin
passwd=mail_admin_password db=mail table=users usercolumn=email
passwdcolumn=clear crypt=0 debug
/etc/default/saslauthd:
MECHANISMS="pam"
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd"
//------------------------------------------------------------------
A problémám hogy nem is nagyon tudom követni, hogy mi a baj. A mail.log
ennyit loggol:
Jan 22 14:54:22 iris postfix/smtpd[1568]: connect from
dsl51B60392.pool.t-online.hu[81.182.3.146]
Jan 22 14:54:22 iris postfix/smtpd[1568]: warning:
dsl51B60392.pool.t-online.hu[81.182.3.146]: SASL LOGIN authentication
failed:
authentication failure
Jan 22 14:54:22 iris postfix/smtpd[1568]: lost connection after AUTH from
dsl51B60392.pool.t-online.hu[81.182.3.146]
Jan 22 14:54:22 iris postfix/smtpd[1568]: disconnect from
dsl51B60392.pool.t-online.hu[81.182.3.146]
Az aut.log -ban ez áll
Jan 22 14:54:23 iris saslauthd[21132]: do_auth : auth failure:
[user=tom] [service=smtp] [realm=valami.hu] [mech=pam] [r
eason=PAM auth error]
a mysqlben pedig egyetlen sor:
SELECT clear FROM users WHERE email = 'tom'
Azt hiszem, máshoz nem nyúltam. Köszi a segítséget.
_________________________________________________
linux lista - [email protected]
http://mlf2.linux.rulez.org/mailman/listinfo/linux