From: "Igor Zubkov" <igor.zubkov@gmail.com> To: "ALT Linux sysadmin discuss" <sysadmins@lists.altlinux.org> Subject: [Sysadmins] SASL авторизация в postfix Date: Mon, 20 Oct 2008 12:35:47 +0300 Message-ID: <fa54e4a90810200235p2532e4bbi5c14d46dc2338570@mail.gmail.com> (raw) Hi! Система на базе centos 5 + обновления. Встала задача включить SASL авторизацию в postfix. И так, сейчас там настроено вот так: 1) postfix берёт всех пользователей из mysql базы 2) dovecot тоже берёт всех пользователей из mysql базы Вот в эту связку охота добавить SASL. Через cyrus-sasl: 1) поставить pam_mysql 2) настроить pam_mysql что бы он брал пользователей и всё остальное из mysql базы 3) поставить cyrus-sasl, cyrus-sasl-plain и cyrus-sasl-md5. 4) настроить cyrus-sasl что бы он брал пользователей через pam (который через pam_mysql берёт пользователей) + для того что бы виртульные пользователи правильно авторизировались не забываем про -r в опциях для saslauthd. 5) мелочь в виде chkconfig --level 345 saslauthd on 6) service saslauthd start 7) проверяем работает ли saslauthd -- testsaslauthd -u user@domain.com -p password -s smtp Таким образом, сам saslauthd настроен и работает. Теперь надо настроить postfix что бы он авторизировал пользователей через saslauthd. Правильно ли я считаю что включение следующих параметров должно хватить? 1) smtpd_sasl_auth_enable = yes – включаем 2) smtpd_sasl_local_domain = «пусто» -- вроде должно быть пусто, так как у нас более одно домена для почты. 3) broken_sasl_auth_clients = yes – для кривых клиентов в которых SASL реализован не правильно (Outgluck?). 4) smtpd_sasl_type = cyrus 5) smtpd_sasl_security_options = noanonymous, noplaintext 6) добавить в smtpd_recipient_restrictions дополнительное условие – permit_sasl_authenticated. Я ничего не забыл? Не напутал? P.S.: $ rpm -q postfix postfix-2.3.3-2.el5.centos.mysql_pgsql $ -- icesik
next reply other threads:[~2008-10-20 9:35 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-10-20 9:35 Igor Zubkov [this message] 2008-10-20 9:51 ` Eugene Ostapets 2008-10-20 10:15 ` Igor Zubkov 2008-10-20 11:08 ` Ivan Fedorov 2008-10-20 11:48 ` Igor Zubkov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=fa54e4a90810200235p2532e4bbi5c14d46dc2338570@mail.gmail.com \ --to=igor.zubkov@gmail.com \ --cc=sysadmins@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux sysadmins discussion This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \ sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com public-inbox-index sysadmins Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sysadmins AGPL code for this site: git clone https://public-inbox.org/public-inbox.git