úterý 7. července 2015

Postfix SASL - SMTP autentizace

Ověřování uživatelů ala Postfix.

sudo apt-get install sasl2-bin

sudo vim /etc/default/saslauthd

START=yes

sudo vim /etc/postfix/main.cf

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes

smtpd_recipient_restrictions =
        permit_sasl_authenticated,
        permit_mynetworks,
        reject_unauth_destination


sudo vim /etc/postfix/sasl/smtpd.conf

pwcheck_method: saslauthd
mech_list: PLAIN LOGIN



rm -r /var/run/saslauthd/
mkdir -p /var/spool/postfix/var/run/saslauthd
ln -s /var/spool/postfix/var/run/saslauthd /var/run
chgrp sasl /var/spool/postfix/var/run/saslauthd
adduser postfix sasl


/etc/init.d/postfix restart
/etc/init.d/saslauthd start


Zdroj
http://www.jimmy.co.at/weblog/?p=52

Žádné komentáře:

Okomentovat