ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Andrey Brindeew <abr@altlinux.ru>
To: ALT Linux community <community@altlinux.ru>
Subject: [Comm] Postfix+SASL+TLS - troubles
Date: Mon, 28 Jun 2004 17:34:24 +0400
Message-ID: <20040628133424.GA1656@abr.tool.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 2071 bytes --]

Hi!

Пытаюсь настроить Postfix+TLS+SASL. Задача - принимать почту только на
себя или от авторизованных пользователей и при этом не светить пароль.

Всё настроил, но отправить почту не удаётся, kmail сообщает "Связь с
узлом server.ru потеряна", а в файле /var/log/mail/warnings видим
следующее:

postfix/master[15018]: warning: process /usr/lib/postfix/smtpd pid 15076 killed by signal 11
postfix/master[15018]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling

Все проделывалось в среде ALC2.3 + contrib, postfix использовался вот
отсюда (пересобирался):
ftp://ftp.altlinux.ru/pub/people/taf/postfix-2.0.20-alt1.1.src.rpm

конфиги приведены ниже:

Релевантная часть из /etc/postfix/main.cf: (кроме выставления hostname
все остальное не изменялось)
=====
smtpd_use_tls = yes
smtpd_tls_auth_only = yes
smtpd_tls_key_file = /etc/postfix/newreq.pem
smtpd_tls_cert_file = /etc/postfix/newcert.pem
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
=====

# ls -l /etc/sasl2/sasldb2
lrwxrwxrwx    1 root     root           36 Jun 28 16:03
/etc/sasl2/sasldb2 -> /var/spool/postfix/etc/sasl2/sasldb2

# cat /usr/lib/sasl2/smtpd.conf
pwcheck_method: auxprop
mech_list: LOGIN PLAIN
log_level: 3

# sasldblistusers2
user1@domain1.ru: cmusaslsecretOTP
test@test: cmusaslsecretOTP
user1@domain1.ru: userPassword
user2@domain2.ru: userPassword
user2@domain2.ru: cmusaslsecretOTP

Настройки SMTP в kmail:
Отправка: SMTP
server: server.ru
Порт: 25
[x] сервер требует пароль
учётное имя: user1@domain1.ru
пароль:      <правильный пароль>
[x] сохранить пароль SMTP в файле настроек
Шифрование:         [x] TLS
Способ авторизации: [x] PLAIN

-- 
WBR, Andrey Brindeew.
"No one person can understand Perl culture completely"
(C) Larry Wall.

[-- Attachment #2: Type: application/pgp-signature, Size: 245 bytes --]

             reply	other threads:[~2004-06-28 13:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-28 13:34 Andrey Brindeew [this message]
2004-06-28 15:29 ` Andrey Brindeew
2004-06-28 16:20 ` Alexei Takaseev
2004-06-28 16:22 ` Alexei Takaseev
2004-06-28 18:25   ` Andrey Brindeew
2004-06-29  3:44   ` Mike Lykov
2004-06-29 15:46     ` Alexei Takaseev

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=20040628133424.GA1656@abr.tool.ru \
    --to=abr@altlinux.ru \
    --cc=community@altlinux.ru \
    /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 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