From: Eugene Prokopiev <prokopiev@stc.donpac.ru> To: ALT Linux Community <community@lists.altlinux.org> Subject: Re: [Comm] Postfix + SMTP-AUTH + SASL + MySQL Date: Sun, 30 Oct 2005 21:27:42 +0300 Message-ID: <4365109E.70206@stc.donpac.ru> (raw) In-Reply-To: <20051031002800.49ededfa.alexei@taf.ru> > postfix-2.2.x относить к стандартным в ALM24 сомнительно. а я не постфикс, а способ поиска конфигов отношу к стандартным :) > saslauthd не умеет работать с SQL. Для этого существует > libsasl2-plugin-sql libsasl2-plugin-sql у меня установлен > Конфиги от реально работающей системы ALM24: > postfix-2.0.20-alt1.3 > postfix-pgsql-2.0.20-alt1.3 > postfix-pcre-2.0.20-alt1.3 > libsasl2-2.1.19-alt1 > libsasl2-plugin-sql-2.1.19-alt1 > > username | password | domain_name | active > ----------+------------+-------------+-------- > user1 | XXXXXXXXXX | mydomain.ru | 1 > > /etc/postfix/sasl/smtpd.conf: > auxprop_plugin: sql > > sql_engine: pgsql > sql_user: mail > sql_passwd: secret > sql_hostnames: localhost > sql_database: mail > > sql_statement: select password from mailusers where username = '%u' and > domain_name = '%r' and active = 1 > > > Вот, собственно, и вся настройка. Создал практически идентичную конфигурацию, разве что вместо pgsql у меня mysql. При попытке отослать письмо из Thunderbird имею: /var/log/auth/messages: Oct 30 21:08:36 myserver postfix/smtpd[29932]: sql plugin Parse the username john Oct 30 21:08:36 myserver postfix/smtpd[29932]: sql plugin try and connect to a host Oct 30 21:08:36 myserver postfix/smtpd[29932]: sql plugin trying to open db 'dbmail' on host 'localhost' Oct 30 21:08:36 myserver postfix/smtpd[29932]: sql plugin could not connect to host localhost Oct 30 21:08:36 myserver postfix/smtpd[29932]: sql plugin couldn't connect to any host /var/log/mail/all: Oct 30 21:08:32 myserver postfix/smtpd[29932]: warning: SASL authentication failure: OTP: auxprop backend can't store properties Oct 30 21:08:32 myserver postfix/smtpd[29932]: connect from localhost.localdomain[127.0.0.1] Oct 30 21:08:32 myserver postfix/smtpd[29932]: warning: SASL authentication failure: no secret in database Oct 30 21:08:32 myserver postfix/smtpd[29932]: warning: localhost.localdomain[127.0.0.1]: SASL CRAM-MD5 authentication failed Oct 30 21:08:32 myserver postfix/smtpd[29932]: warning: SASL authentication failure: no secret in database Oct 30 21:08:32 myserver postfix/smtpd[29932]: warning: localhost.localdomain[127.0.0.1]: SASL NTLM authentication failed Oct 30 21:08:32 myserver postfix/smtpd[29932]: warning: SASL authentication failure: Password verification failed Oct 30 21:08:32 myserver postfix/smtpd[29932]: warning: localhost.localdomain[127.0.0.1]: SASL PLAIN authentication failed Oct 30 21:08:32 myserver postfix/smtpd[29932]: warning: localhost.localdomain[127.0.0.1]: SASL LOGIN authentication failed Oct 30 21:08:36 myserver postfix/smtpd[29932]: warning: SASL authentication failure: no secret in database Oct 30 21:08:36 myserver postfix/smtpd[29932]: warning: localhost.localdomain[127.0.0.1]: SASL CRAM-MD5 authentication failed Oct 30 21:08:36 myserver postfix/smtpd[29932]: warning: SASL authentication failure: no secret in database Oct 30 21:08:36 myserver postfix/smtpd[29932]: warning: localhost.localdomain[127.0.0.1]: SASL NTLM authentication failed Oct 30 21:08:36 myserver postfix/smtpd[29932]: warning: SASL authentication failure: Password verification failed Oct 30 21:08:36 myserver postfix/smtpd[29932]: warning: localhost.localdomain[127.0.0.1]: SASL PLAIN authentication failed Oct 30 21:08:36 myserver postfix/smtpd[29932]: warning: localhost.localdomain[127.0.0.1]: SASL LOGIN authentication failed При этом причин для "could not connect to host localhost" или "couldn't connect to any host" вроде бы нет: $ mysql -u dbmail dbmail -h localhost -p Enter password: mysql> show tables; +---------------------------+ | Tables_in_dbmail | +---------------------------+ | dbmail_acl | | dbmail_aliases | | dbmail_auto_notifications | | dbmail_auto_replies | | dbmail_filters | | dbmail_mailboxes | | dbmail_messageblks | | dbmail_messages | | dbmail_pbsp | | dbmail_physmessage | | dbmail_subscription | | dbmail_users | +---------------------------+ 12 rows in set (0.00 sec) mysql> И еще: 1. Как ограничить список способов авторизации? NTLM мне точно не нужен. 2. Как авторизоваться телнетом? Чем генерить логин/пароль? 3. Зачем в принципе нужен saslauthd? Если Postfix в состоянии без него обходиться, то кто не в состоянии и почему? -- С уважением, Прокопьев Евгений
next prev parent reply other threads:[~2005-10-30 18:27 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-10-30 16:01 Eugene Prokopiev 2005-10-30 16:28 ` Alexei Takaseev 2005-10-30 18:27 ` Eugene Prokopiev [this message] 2005-10-30 18:43 ` Eugene Prokopiev 2005-10-30 19:13 ` Eugene Prokopiev 2005-10-31 6:02 ` Laaz Vadim 2005-10-31 7:36 ` Alexey I. Froloff 2005-10-31 12:58 ` Alexei Takaseev 2005-10-31 14:09 ` [Comm] " Michael Shigorin 2005-10-31 18:36 ` Pavel Usischev 2005-11-01 6:30 ` [Comm] " Dmitry Lebkov
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=4365109E.70206@stc.donpac.ru \ --to=prokopiev@stc.donpac.ru \ --cc=community@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 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