* [Sysadmins] SASL авторизация в postfix
@ 2008-10-20 9:35 Igor Zubkov
2008-10-20 9:51 ` Eugene Ostapets
2008-10-20 11:08 ` Ivan Fedorov
0 siblings, 2 replies; 5+ messages in thread
From: Igor Zubkov @ 2008-10-20 9:35 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Sysadmins] SASL авторизация в postfix
2008-10-20 9:35 [Sysadmins] SASL авторизация в postfix Igor Zubkov
@ 2008-10-20 9:51 ` Eugene Ostapets
2008-10-20 10:15 ` Igor Zubkov
2008-10-20 11:08 ` Ivan Fedorov
1 sibling, 1 reply; 5+ messages in thread
From: Eugene Ostapets @ 2008-10-20 9:51 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
2008/10/20 Igor Zubkov <igor.zubkov gmail.com>:
> Hi!
>
> 5) smtpd_sasl_security_options = noanonymous, noplaintext
> 6) добавить в smtpd_recipient_restrictions дополнительное условие –
> permit_sasl_authenticated.
>
> Я ничего не забыл? Не напутал?
Хм... Я что-то пропустил и при pam-авторизации нам доступно еще
что-то, кроме plaintext? Если нужно реально авторизовать по
cram-md5/digest-md5 я бы смотрел в сторону прямого обращения sasl в
базу mysql, но не знаю как с этим в centos "из коробки"...
--
С уважением,
Евгений Остапец
uin: 23747217
jid: eugene_ostapets@jabber.ru
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Sysadmins] SASL авторизация в postfix
2008-10-20 9:35 [Sysadmins] SASL авторизация в postfix Igor Zubkov
2008-10-20 9:51 ` Eugene Ostapets
@ 2008-10-20 11:08 ` Ivan Fedorov
2008-10-20 11:48 ` Igor Zubkov
1 sibling, 1 reply; 5+ messages in thread
From: Ivan Fedorov @ 2008-10-20 11:08 UTC (permalink / raw)
To: sysadmins
[-- Attachment #1: Type: text/plain, Size: 780 bytes --]
"Igor Zubkov" <igor.zubkov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
writes:
> Hi!
>
> Система на базе centos 5 + обновления. Встала задача включить SASL
> авторизацию в postfix. И так, сейчас там настроено вот так:
> 1) postfix берёт всех пользователей из mysql базы
> 2) dovecot тоже берёт всех пользователей из mysql базы
>
> Вот в эту связку охота добавить SASL. Через cyrus-sasl:
А почему бы не попробовать добавить SASL через dovecot?
Если мне не изменяет мой склероз оно уже давно поддерживается...
[-- Attachment #2: Type: application/pgp-signature, Size: 196 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Sysadmins] SASL авторизация в postfix
2008-10-20 11:08 ` Ivan Fedorov
@ 2008-10-20 11:48 ` Igor Zubkov
0 siblings, 0 replies; 5+ messages in thread
From: Igor Zubkov @ 2008-10-20 11:48 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
20 октября 2008 г. 14:08 пользователь Ivan Fedorov написал:
>> Система на базе centos 5 + обновления. Встала задача включить SASL
>> авторизацию в postfix. И так, сейчас там настроено вот так:
>> 1) postfix берёт всех пользователей из mysql базы
>> 2) dovecot тоже берёт всех пользователей из mysql базы
>>
>> Вот в эту связку охота добавить SASL. Через cyrus-sasl:
> А почему бы не попробовать добавить SASL через dovecot?
> Если мне не изменяет мой склероз оно уже давно поддерживается...
Точно! Спасибо за напоминание что в postfix есть поддержка SASL через
dovecot. На стенде я уже так и настроил, вечером буду уже на живом
сервере настраивать.
--
icesik
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-10-20 11:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-20 9:35 [Sysadmins] SASL авторизация в postfix Igor Zubkov
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
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