ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] postfix-sasl. Проблема с sasldb
@ 2002-09-19 10:56 send2my
  2002-09-19 12:00 ` Sergey Degtyaryov
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: send2my @ 2002-09-19 10:56 UTC (permalink / raw)
  To: community

Добрый день, уважаемое сообщество!

Поставил из Сизифа postfix, postfix-smtpd-sasl, postfix-sasl (1.1.11).
Все встало, дописал немного main.cf. Поверил, все Ок.

Почитал:
/etc/postfix/README_FILES/SASL_README
/etc/postfix/samples/auth.cf
Включаю авторизацию. Добавляю в main.cf
...
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_relay_domains
...

Пишу в /usr/lib/sasl/smtpd.conf "pwcheck_method: sasldb"
#chown root.postfix /usr/lib/sasl/smtpd.conf
#chmod 640 /usr/lib/sasl/smtpd.conf

Добавляю пользователя
#/usr/sbin/saslpaswd -c user
#/usr/sbin/sasldblistusers
#chown root.postfix /etc/sasldb
#chmod 640 /etc/sasldb
#ln -s /etc/sasldb /var/spool/postfix/sasldb

#/etc/rc.d/init.d/postfix reload
Все ок, но при отправке письма из MUA дает ошибку на
аутентификацию. Такое впечатление, что Postfix не видит
/usr/lib/sasl/smtpd.conf.

Самое обидное, что я это проходил... :-)) Но я тогда сидел RedHat и
postfix собирал из исходников... Где-то не ловлю...

Помогите!!!

Спасибо, что Вы есть. Спасибо разработчикам!!!




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] postfix-sasl. Проблема с sasldb
  2002-09-19 10:56 [Comm] postfix-sasl. Проблема с sasldb send2my
@ 2002-09-19 12:00 ` Sergey Degtyaryov
  2002-09-19 12:03 ` [Comm] " send2my
  2002-09-19 12:17 ` [Comm] " Artem K. Jouravsky
  2 siblings, 0 replies; 4+ messages in thread
From: Sergey Degtyaryov @ 2002-09-19 12:00 UTC (permalink / raw)
  To: community

Доброго дня, send2my.
19 Сентября в 14:56  Вы сказали буквально следующее:

> Добрый день, уважаемое сообщество!
> 
> Поставил из Сизифа postfix, postfix-smtpd-sasl, postfix-sasl
> (1.1.11). Все встало, дописал немного main.cf. Поверил, все Ок.
> 
> Почитал:
> /etc/postfix/README_FILES/SASL_README
> /etc/postfix/samples/auth.cf
> Включаю авторизацию. Добавляю в main.cf
> ...
> smtpd_sasl_auth_enable = yes
> smtpd_recipient_restrictions = permit_mynetworks,
> permit_sasl_authenticated, check_relay_domains...
> 
> Пишу в /usr/lib/sasl/smtpd.conf "pwcheck_method: sasldb"
> #chown root.postfix /usr/lib/sasl/smtpd.conf
> #chmod 640 /usr/lib/sasl/smtpd.conf
> 
> Добавляю пользователя
> #/usr/sbin/saslpaswd -c user
> #/usr/sbin/sasldblistusers
> #chown root.postfix /etc/sasldb
> #chmod 640 /etc/sasldb
> #ln -s /etc/sasldb /var/spool/postfix/sasldb
> 
> #/etc/rc.d/init.d/postfix reload
> Все ок, но при отправке письма из MUA дает ошибку на
> аутентификацию. Такое впечатление, что Postfix не видит
> /usr/lib/sasl/smtpd.conf.

Среди Ваших действий нет изменений в master.cf:

#smtp   inet    n       -       y       -       -       smtpd
smtp    inet    n       -       y       -       -       smtpd-sasl  
    

Не сделали или не не написали?
Еще раньше был баг - saslpasswd добавлял юзера только со второго
раза. Не знаю как сейчас с этим дела.
-- 
Rgds, maga, maga@mail.ru
[maga@localhost]$ /usr/games/fortune
Храпеж среди бела дня.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Comm] Re: [Comm] postfix-sasl. Проблема с sasldb
  2002-09-19 10:56 [Comm] postfix-sasl. Проблема с sasldb send2my
  2002-09-19 12:00 ` Sergey Degtyaryov
@ 2002-09-19 12:03 ` send2my
  2002-09-19 12:17 ` [Comm] " Artem K. Jouravsky
  2 siblings, 0 replies; 4+ messages in thread
From: send2my @ 2002-09-19 12:03 UTC (permalink / raw)
  To: send2my

Добрый день, уважаемое сообщество!

s> Поставил из Сизифа postfix, postfix-smtpd-sasl, postfix-sasl (1.1.11).
s> Все встало, дописал немного main.cf. Поверил, все Ок.
...
s> Добавляю пользователя
s> #/usr/sbin/saslpaswd -c user
s> #/usr/sbin/sasldblistusers
s> #chown root.postfix /etc/sasldb
s> #chmod 640 /etc/sasldb
s> #ln -s /etc/sasldb /var/spool/postfix/sasldb
Очепятка:
s> #ln -s /etc/sasldb /var/spool/postfix/etc/sasldb

Я все понял, когда заглянул в master.cf. CHROOT!!!
#cp /etc/sasldb /var/spool/postfix/etc/.
#chown root.postfix /etc/sasldb
#chmod 640 /etc/sasldb
#/etc/rc.d/init.d/postfix reload

Спасибо.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Comm] Re: postfix-sasl. Проблема с sasldb
  2002-09-19 10:56 [Comm] postfix-sasl. Проблема с sasldb send2my
  2002-09-19 12:00 ` Sergey Degtyaryov
  2002-09-19 12:03 ` [Comm] " send2my
@ 2002-09-19 12:17 ` Artem K. Jouravsky
  2 siblings, 0 replies; 4+ messages in thread
From: Artem K. Jouravsky @ 2002-09-19 12:17 UTC (permalink / raw)
  To: community

On Thu, Sep 19, 2002 at 02:56:21PM +0400, send2my wrote:
> Добрый день, уважаемое сообщество!
> 
> Поставил из Сизифа postfix, postfix-smtpd-sasl, postfix-sasl (1.1.11).
> Все встало, дописал немного main.cf. Поверил, все Ок.
> 
> Почитал:
> /etc/postfix/README_FILES/SASL_README
> /etc/postfix/samples/auth.cf
> Включаю авторизацию. Добавляю в main.cf
> ...
> smtpd_sasl_auth_enable = yes
> smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_relay_domains
> ...
> 
> Пишу в /usr/lib/sasl/smtpd.conf "pwcheck_method: sasldb"
> #chown root.postfix /usr/lib/sasl/smtpd.conf
> #chmod 640 /usr/lib/sasl/smtpd.conf
> 
> Добавляю пользователя
> #/usr/sbin/saslpaswd -c user
> #/usr/sbin/sasldblistusers
> #chown root.postfix /etc/sasldb
> #chmod 640 /etc/sasldb
> #ln -s /etc/sasldb /var/spool/postfix/sasldb
> 
> #/etc/rc.d/init.d/postfix reload
> Все ок, но при отправке письма из MUA дает ошибку на
> аутентификацию. Такое впечатление, что Postfix не видит
> /usr/lib/sasl/smtpd.conf.
> 
> Самое обидное, что я это проходил... :-)) Но я тогда сидел RedHat и
> postfix собирал из исходников... Где-то не ловлю...
1) saslpasswd срабатывает с ошибкой при первом запуске, надо продулибровать
2) telnet host 25
   покажет строки вида 250-AUTH после EHLO host?

-- 
Best wishes,
Artem K. Jouravsky,
iFirst Ltd, System Administrator.
-----------------------
NOBODY EXPECTS THE SPANISH INQUISITION!


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-09-19 12:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-19 10:56 [Comm] postfix-sasl. Проблема с sasldb send2my
2002-09-19 12:00 ` Sergey Degtyaryov
2002-09-19 12:03 ` [Comm] " send2my
2002-09-19 12:17 ` [Comm] " Artem K. Jouravsky

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git