Исходники:
system:
- FreeBSD 7.0-RELEASE-p4
- cyrus-sasl-2.1.22_1
cyrus-sasl-saslauthd-2.1.22
postfix-current-2.6.20080903,4
Код: Выделить всё
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
mail_owner = postfix
myhostname = subdomain.domain.tld
mydomain = domain.tld
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.1/8
alias_maps = hash:/usr/local/etc/postfix/maps/aliases
alias_database = hash:/usr/local/etc/postfix/maps/aliases
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/local/sbin/sendmail
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
html_directory = no
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
readme_directory = no
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, permit
Код: Выделить всё
smtp inet n - n - - smtpd -v
-o smtpd_recipient_restrictions=permit_mynetworks,reject
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o smtp_fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
retry unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
Код: Выделить всё
pwcheck_method: saslauthd
mech_list: plain login
> telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
читаю лог /var/log/maillog:
Код: Выделить всё
10:57:27 localhost postfix/smtpd[11328]: warning: SASL: Connect to smtpd failed: No such file or directory
10:57:27 localhost postfix/smtpd[11328]: fatal: no SASL authentication mechanisms
10:57:28 localhost postfix/master[11323]: warning: process /usr/local/libexec/postfix/smtpd pid 11328 exit status 1
10:57:28 localhost postfix/master[11323]: warning: /usr/local/libexec/postfix/smtpd: bad command startup -- throttling
Заранее благодарю.