<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Postfix + sasl ошибка авторизации]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=22219&amp;type=atom" />
	<updated>2012-05-15T22:02:05Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=22219</id>
		<entry>
			<title type="html"><![CDATA[Re: Postfix + sasl ошибка авторизации]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=274927#p274927" />
			<content type="html"><![CDATA[<p>разобрался, заработало, немного перенастроил postfix</p>]]></content>
			<author>
				<name><![CDATA[kom-pik]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16698</uri>
			</author>
			<updated>2012-05-15T22:02:05Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=274927#p274927</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Postfix + sasl ошибка авторизации]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=274902#p274902" />
			<content type="html"><![CDATA[<p>Проблемная учётка находится в /etc/passwd? Тогда сорри, посмотреть не получится, т.к. пароли в shadow хешированы.</p>]]></content>
			<author>
				<name><![CDATA[Macumazan]]></name>
				<uri>https://linuxforum.ru/profile.php?id=952</uri>
			</author>
			<updated>2012-05-15T20:26:16Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=274902#p274902</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Postfix + sasl ошибка авторизации]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=274900#p274900" />
			<content type="html"><![CDATA[<p>в каком файле посмотреть?</p>]]></content>
			<author>
				<name><![CDATA[kom-pik]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16698</uri>
			</author>
			<updated>2012-05-15T20:11:36Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=274900#p274900</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Postfix + sasl ошибка авторизации]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=274731#p274731" />
			<content type="html"><![CDATA[<p>Можно подглядеть в файл базы SASL на предмет того, какой пароль для данной учетки используется.</p>]]></content>
			<author>
				<name><![CDATA[Macumazan]]></name>
				<uri>https://linuxforum.ru/profile.php?id=952</uri>
			</author>
			<updated>2012-05-15T07:54:12Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=274731#p274731</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Postfix + sasl ошибка авторизации]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=274658#p274658" />
			<content type="html"><![CDATA[<p>Переделываю почтовик и столкнулся с проблемой, не могу отправить письмо, почтовый клиент говорит что неправильно введен логин или пароль.<br /></p><div class="codebox"><pre><code>cat /var/log/mail.log
May 15 00:20:03 lex postfix/smtpd[22321]: warning: 178.140.205.246: hostname broadband-178-140-205-246.nationalcablenetworks.ru verification failed: Name or service not known
May 15 00:20:03 lex postfix/smtpd[22321]: connect from unknown[178.140.205.246]
May 15 00:20:06 lex postfix/smtpd[22321]: warning: SASL authentication failure: Password verification failed
May 15 00:20:06 lex postfix/smtpd[22321]: warning: unknown[178.140.205.246]: SASL PLAIN authentication failed: authentication failure
May 15 00:20:08 lex postfix/smtpd[22321]: warning: unknown[178.140.205.246]: SASL LOGIN authentication failed: authentication failure
May 15 00:20:10 lex postfix/smtpd[22323]: connect from forward14.mail.yandex.net[95.108.130.92]
May 15 00:20:10 lex postfix/smtpd[22323]: NOQUEUE: reject: RCPT from forward14.mail.yandex.net[95.108.130.92]: 450 4.7.1 Session encryption is required; from=&lt;kotischewsky@yandex.ru&gt; to=&lt;komdir@ins-c.ru&gt; proto=ESMTP helo=&lt;forward14.mail.yandex.net&gt;
May 15 00:20:10 lex postfix/smtpd[22323]: disconnect from forward14.mail.yandex.net[95.108.130.92]</code></pre></div><p>main.cf<br /></p><div class="codebox"><pre><code>smtpd_banner = $myhostname Welcome to the Sendmail server
biff = no 
append_dot_mydomain = no
mydomain = ins-c.ru
myhostname = mailer.ins-c.ru
mydestination = localhost, localhost.$myhostname, $myhostname
home_mailbox = Maildir/ 
mailbox_command = procmail -a «$EXTENSION» 
virtual_mailbox_domains = /etc/postfix/vhosts 
virtual_mailbox_base = /home/vmail 
virtual_mailbox_maps = hash:/etc/postfix/vmaps 
virtual_minimum_uid = 1000 
virtual_uid_maps = static:5000 
virtual_gid_maps = static:5000 
alias_maps = hash:/etc/aliases 
alias_database = hash:/etc/aliases 
relay_domains = no
myorigin = $mydomain 
mynetworks = 127.0.0.0/8 95.84.240.34 178.140.205.246
mailbox_size_limit = 0 
message_size_limit = 20000000
recipient_delimiter = + 
inet_interfaces = all 

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes

smtpd_recipient_restrictions = permit_mynetworks,
    permit_sasl_authenticated,
    reject_unauth_destination,
    reject_non_fqdn_recipient,
    reject_unverified_recipient,
    reject_unknown_client,
    reject_unverified_sender,</code></pre></div><p>master.cf<br /></p><div class="codebox"><pre><code>smtp      inet  n       -       -       -       -       smtpd -o content_filter=myfilter:dummy

pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       -       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       -       -       -       smtp
    -o smtp_fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache

maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}

uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)

ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix    -    n    n    -    2    pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}
myfilter unix    -    n    n    -    -    pipe
  flags=R user=clamav argv=/usr/local/bin/myfilter.sh -f ${sender} -- ${recipient}

submission    inet    n    -    n    -    -    smtpd
    -o smtpd_sasl_auth_enable=yes
    -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    -o cleanup_servicename=sasl_cleanup

sasl_cleanup    unix    n    -    n    -    0    cleanup
    -o header_checks=regexp:/etc/postfix/sub_header</code></pre></div><p>Подскажите в чем косяк, где ошибся?</p>]]></content>
			<author>
				<name><![CDATA[kom-pik]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16698</uri>
			</author>
			<updated>2012-05-14T20:46:17Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=274658#p274658</id>
		</entry>
</feed>
