Bocsi, hogy ide írom, de nem akartam új témát nyitni és végülis nekem is az a bajom, hogy nem fogad leveleket a Postfix, csak sasl beállítása után és Debian rendszeren.
Amit csináltam eddig:
Feltelpítettem a postfix-tls, openssl, sasl2-bin és a lobsasl2-modules csomagokat.
A main.cf-be ezeket tettem be pluszba:
# --------------sasl-auth---------------
smtpd_sender_restrictions = hash:/etc/postfix/access, permit_sasl_authenticated
smtpd_sender_login_maps = hash:/etc/postfix/sender_login_maps
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envilopes = no
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
smtpd_recipient_restrictions = reject_sender_login_mismatch, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_application_name = smtpd
smtpd_sasl_local_domain = $mydomain
smtpd_use_tls = no
smtp_use_tls = no
Sasl nélkül a levelezés már ment szépen, csak muszály authentikálni, mert otthonról is szeretnénk használni a cég smtp szerverét.
A saslauthd daemon is fut
2439 ? 00:00:00 saslauthd
2440 ? 00:00:00 saslauthd
2441 ? 00:00:00 saslauthd
2442 ? 00:00:00 saslauthd
2443 ? 00:00:00 saslauthd
Akkor mit kell még mondjak ..., ja igen a log:
server2:~# tail -f /var/log/mail.info
[...]
Sep 6 08:33:36 server2 postfix/smtpd[2498]: connect from budacsika[192.168.2.191]
Sep 6 08:33:36 server2 postfix/smtpd[2498]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
Sep 6 08:33:36 server2 postfix/smtpd[2498]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
Sep 6 08:33:36 server2 postfix/smtpd[2498]: warning: budacsika[192.168.2.191]: SASL LOGIN authentication failed
Sep 6 08:33:36 server2 postfix/smtpd[2498]: lost connection after AUTH from budacsika[192.168.2.191]
Sep 6 08:33:36 server2 postfix/smtpd[2498]: disconnect from budacsika[192.168.2.191]
Ehhez ezt fűzöm hozzá:
server2:~# ls -l /etc/sasl*
-rw-r--r-- 1 root sasl 49152 2006-09-05 21:33 /etc/sasldb2
Van ilyen is:
server2:~# cat /etc/default/saslauthd
# This needs to be uncommented before saslauthd will be run automatically
# START=yes
# You must specify the authentication mechanisms you wish to use.
# This defaults to "pam" for PAM support, but may also include
# "shadow" or "sasldb", like this:
# MECHANISMS="pam shadow"
MECHANISMS="pam"
Remélem elég infót adtam, de ha kell valami küldök még, csak légyszi segítsen aki tud, mert már régóta szívok ezzel. Az a poén, hogy többször elkezttem már és mindig itt kadok el.