первый раз в жизни настраиваю постфикс.
установил с исходников
подправил main.cf
отправленные письма в ящики юзеров не ложит
в лог пишет:
1.
2.
3.
4.
5.
6.
7.
Nov 3 02 : 29 : 45 savatex postfix/smtpd[ 13553 ]: connect from unknown[ 192 . 168 . 1 . 205 ]
Nov 3 02 : 29 : 45 dls postfix/smtpd[ 13553 ]: 08777162D7B: client=unknown[ 192 . 168 . 1 . 205 ]
Nov 3 02 : 29 : 53 dls postfix/smtpd[ 13553 ]: 1CDC8162D7B: client=unknown[ 192 . 168 . 1 . 205 ]
Nov 3 02 : 29 : 53 dls postfix/cleanup[ 13557 ]: 1CDC8162D7B: message-id=<000001c6fede$aaec8560$cd01a8c0@a6vm>
Nov 3 02 : 29 : 53 dls postfix/qmgr[ 13435 ]: 1CDC8162D7B: from=<kope@dls.sad.ru>, size= 3882 , nrcpt= 1 (queue active)
Nov 3 02 : 29 : 53 dls postfix/qmgr[ 13435 ]: 1CDC8162D7B: to=<andrew@dls.sad.ru>, relay=none, delay= 0 . 04 , delays= 0 . 02 / 0 . 02 / 0 / 0 , dsn= 4 . 3 . 0 , status=deferred (mail transport unavailable)
Nov 3 02 : 29 : 55 dls postfix/smtpd[ 13553 ]: disconnect from unknown[ 192 . 168 . 1 . 205 ]
Nov 3 02 : 30 : 05 dls postfix/qmgr[ 13435 ]: warning: connect to transport scan: Connection refused
файл main.cf:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
soft_bounce = no
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
message_size_limit = 10120000
mailbox_size_limit = 102400000
mail_owner = postfix
default_privs = nobody
default_transport = smtp
myhostname = dls.sad.ru
mydomain = dls.sad.ru
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname localhost.$mydomain $mydomain
local_recipient_maps = unix:passwd.byname $alias_maps
unknown_local_recipient_reject_code = 550
mynetworks_style = host
mynetworks = 192 . 168 . 1 . 0 / 24 , 127 . 0 . 0 . 0 / 8
relay_domains = $mydestination, smtp.comet.net
relayhost = smtp.comet.net
masquerading_domains = $mydomain
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mail_spool_directory = /var/spool/mail
smtpd_banner = $myhostname ESMTP Kopernik
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 20
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
strict_rfc821_envelopes = yes
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = /etc/postfix/readme/
manpage_directory = /usr/local/man
sample_directory = /etc/postfix
readme_directory = /etc/postfix/readmedoc/
файл master.cf:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) ( 100 )
# ==========================================================================
smtp inet n - n - - smtpd
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
# 628 inet n - n - - qmqpd
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
smtp unix - - n - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o fallback_relay=
# -o smtp_helo_timeout= 5 -o smtp_connect_timeout= 5
showq unix n - n - - showq
error 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
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
# Cyrus 2 . 1 . 5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit= 1
cyrus unix - n n - - pipe
user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
не могу найти причину. помогите, пожалуйста