доброго ...!
делал почтовый сервер под рукой было вот это:
https://www.opennet.ru/base/net/postfix_sasl_cyrus_mta.txt.html
http://www.sys-adm.org.ua/mail/postfix-clamsmtp-sa.php
до установки сламав спамассассин и сламсмтп все работало и ходило...[root@costarusa log]# /usr/sbin/postconf -n
allow_untrusted_routing = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = scan:127.0.0.1:10025
daemon_directory = /usr/libexec/postfix
default_privs = nobody
disable_vrfy_command = yes
header_checks = regexp:/etc/postfix/header_checks
html_directory = no
inet_interfaces = all
local_recipient_maps = $virtual_mailbox_maps
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = costarusa.ru
myhostname = mail-server.costarusa.ru
mynetworks = 127.0.0.0/8
mynetworks_style = host
myorigin = $mydomain
queue_directory = /var/spool/postfix
readme_directory = no
receive_override_options = no_address_mappings
recipient_delimiter = +
sample_directory = /usr/share/doc/postfix-2.2.8/samples
sendmail_path = /usr/sbin/sendmail.postfix
smtp_always_send_ehlo = yes
smtpd_banner = ESMTP mail server v1.0
smtpd_client_restrictions = permit_sasl_authenticated, permit_auth_destination, reject
smtpd_delay_reject = yes
smtpd_etrn_restrictions = reject
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_auth_destination, reject_anauth_destination, reject
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_login_maps = hash:$base/etc/postfix/sender_logins_maps
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_authenticated_sender_login_mismatch, reject_unknown_sender_domain,
soft_bounce = no
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_mailbox_domains = costarusa.ru
virtual_transport = lmtp:unix:/var/lib/imap/socket/lmtp
[root@costarusa log]# cat /etc/clamsmtpd.conf | grep -v ^# | grep -v ^$
OutAddress: 10026
Listen: 127.0.0.1:10025
ClamAddress: /var/run/clamav/clamd.sock
Header: X-Virus-Scanned: ClamAV using ClamSMTP
TempDirectory: /tmp
Action: drop
Quarantine: on
User: clamav
[root@costarusa log]# cat /usr/local/etc/freshclam.conf | grep -v ^# | grep -v ^$
DatabaseDirectory /var/db/clamav
UpdateLogFile /var/log/freshclam.log
LogSyslog yes
PidFile /var/run/freshclam.pid
DatabaseOwner clamav
AllowSupplementaryGroups yes
DNSDatabaseInfo current.cvd.clamav.net
DatabaseMirror db.RU.clamav.net
DatabaseMirror database.clamav.net
Checks 24
[root@costarusa log]# cat /usr/local/etc/clamd.conf | grep -v ^# | grep -v ^$ LogFile /var/log/clamd.log
LogFileMaxSize 2M
LogTime yes
LogSyslog yes
PidFile /var/run/clamav/clamd.pid
TemporaryDirectory /var/tmp
DatabaseDirectory /var/db/clamav
LocalSocket /var/run/clamav/clamd.sock
FixStaleSocket yes
TCPSocket 3310
TCPAddr 127.0.0.1
MaxConnectionQueueLength 30
MaxThreads 50
ReadTimeout 300
User clamav
AllowSupplementaryGroups yes
ScanPE yes
ScanELF yes
ScanOLE2 yes
ScanPDF yes
ScanMail yes
ScanArchive yes
MaxScanSize 15M
MaxFileSize 15M
[root@costarusa log]# netstat -ln | grep 25
tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
unix 2 [ ACC ] STREAM LISTENING 2546673 /tmp/orbit-root/linc-38cf-0-548d30ad2983funix 2 [ ACC ] STREAM LISTENING 12561 /tmp/orbit-root/linc-bbd-0-1576c967676dunix 2 [ ACC ] STREAM LISTENING 13259 /tmp/orbit-root/linc-be6-0-525e131e7d086unix 2 [ ACC ] STREAM LISTENING 2550758 /var/run/clamav/clamd.sock
unix 2 [ ACC ] STREAM LISTENING 13312 /tmp/orbit-root/linc-bce-0-525e131ee9824unix 2 [ ACC ] STREAM LISTENING 13990 /tmp/orbit-root/linc-c39-0-12f56ac9f25daunix 2 [ ACC ] STREAM LISTENING 2569043 /tmp/orbit-root/linc-3c7b-0-76b87fd0319d0
[root@costarusa log]# netstat -ln | grep 783
tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN
[root@costarusa log]# netstat -ln | grep 10025
tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN
[root@costarusa log]# netstat -ln | grep 10026
tcp 0 0 127.0.0.1:10026 0.0.0.0:* LISTEN
[root@costarusa log]#
[root@costarusa log]# netstat -ln | grep 110
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN
tcp 0 0 :::110 :::* LISTEN
[root@costarusa log]# netstat -ln | grep 143
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN
tcp 0 0 :::143 :::* LISTEN
[root@costarusa log]# cat /etc/postfix/master.cf | grep -v ^# | grep -v ^$
scan unix - - n - 16 smtp
-o smtp_send_xforward_command=yes
-o smtp_tls_security_level=none
127.0.0.1:10026 inet n - n - 16 smtpd
-o content_filter=
-o recieve_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks_style=host
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
smtp inet n - n - - smtpd
-o content_filter=spam:dummy
spam unix - n n - - pipe
flags=R user=clamav argv=/usr/bin/spamc -u clamav -e /usr/sbin/sendmail -f $sender $recipient
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
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
relay unix - - n - - smtp
-o fallback_relay=
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
куско лога:
Jun 9 16:12:07 costarusa postfix/smtpd[18555]: connect from it-work10.palmbereg.local[172.16.1.134]
Jun 9 16:12:07 costarusa postfix/smtpd[18555]: 6A626808147: client=it-work10.palmbereg.local[172.16.1.134], sasl_method=CRAM-MD5, sasl_username=postmaster@costarusa.ru
Jun 9 16:12:07 costarusa postfix/cleanup[18558]: 6A626808147: message-id=<op.uchdur2a2qc8vr@localhost.localdomain>
Jun 9 16:12:07 costarusa postfix/qmgr[18550]: 6A626808147: from=<postmaster@costarusa.ru>, size=678, nrcpt=1 (queue active)
Jun 9 16:12:07 costarusa postfix/smtpd[18555]: disconnect from it-work10.palmbereg.local[172.16.1.134]
Jun 9 16:12:07 costarusa spamd[16711]: spamd: connection from localhost.localdomain [127.0.0.1] at port 50931
Jun 9 16:12:07 costarusa spamd[16711]: spamd: setuid to clamav succeeded
Jun 9 16:12:07 costarusa spamd[16711]: spamd: processing message <op.uchdur2a2qc8vr@localhost.localdomain> for clamav:497
Jun 9 16:12:19 costarusa spamd[16711]: spamd: clean message (-1.4/7.0) for clamav:497 in 12.0 seconds, 700 bytes.
Jun 9 16:12:19 costarusa spamd[16711]: spamd: result: . -1 - ALL_TRUSTED scantime=12.0,size=700,user=clamav,uid=497,required_score=7.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=50931,mid=<op.uchdur2a2qc8vr@localhost.localdomain>,autolearn=ham
Jun 9 16:12:19 costarusa sendmail[18560]: m59CCJF9018560: Authentication-Warning: costarusa.ru: clamav set sender to postmaster@costarusa.ru using -f
Jun 9 16:12:19 costarusa sendmail[18560]: m59CCJF9018560: from=postmaster@costarusa.ru, size=877, class=0, nrcpts=1, msgid=<op.uchdur2a2qc8vr@localhost.localdomain>, relay=clamav@localhost
Jun 9 16:12:19 costarusa postfix/smtpd[18555]: connect from localhost.localdomain[127.0.0.1]
Jun 9 16:12:19 costarusa postfix/smtpd[18555]: 70A09808151: client=localhost.localdomain[127.0.0.1]
Jun 9 16:12:19 costarusa spamd[2185]: prefork: child states: II
Jun 9 16:12:19 costarusa postfix/cleanup[18558]: 70A09808151: message-id=<op.uchdur2a2qc8vr@localhost.localdomain>
Jun 9 16:12:19 costarusa postfix/qmgr[18550]: 70A09808151: from=<postmaster@costarusa.ru>, size=1312, nrcpt=1 (queue active)
Jun 9 16:12:19 costarusa sendmail[18560]: m59CCJF9018560: to=postmaster@costarusa.ru, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30877, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 70A09808151)
Jun 9 16:12:19 costarusa postfix/smtpd[18555]: disconnect from localhost.localdomain[127.0.0.1]
Jun 9 16:12:19 costarusa postfix/pipe[18559]: 6A626808147: to=<postmaster@costarusa.ru>, relay=spam, delay=12, delays=0.05/0.01/0/12, dsn=2.0.0, status=sent (delivered via spam service)
Jun 9 16:12:19 costarusa postfix/qmgr[18550]: 6A626808147: removed
Jun 9 16:12:19 costarusa spamd[16711]: spamd: connection from localhost.localdomain [127.0.0.1] at port 50934
Jun 9 16:12:19 costarusa spamd[16711]: spamd: setuid to clamav succeeded
Jun 9 16:12:19 costarusa spamd[16711]: spamd: processing message <op.uchdur2a2qc8vr@localhost.localdomain> for clamav:497
Jun 9 16:12:24 costarusa spamd[16711]: spamd: clean message (-1.4/7.0) for clamav:497 in 5.2 seconds, 1323 bytes.
Jun 9 16:12:24 costarusa spamd[16711]: spamd: result: . -1 - ALL_TRUSTED scantime=5.2,size=1323,user=clamav,uid=497,required_score=7.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=50934,mid=<op.uchdur2a2qc8vr@localhost.localdomain>,autolearn=unavailable
Jun 9 16:12:24 costarusa sendmail[18563]: m59CCO8u018563: Authentication-Warning: costarusa.ru: clamav set sender to postmaster@costarusa.ru using -f
Jun 9 16:12:24 costarusa sendmail[18563]: m59CCO8u018563: from=postmaster@costarusa.ru, size=1331, class=0, nrcpts=1, msgid=<op.uchdur2a2qc8vr@localhost.localdomain>, relay=clamav@localhost
Jun 9 16:12:24 costarusa postfix/smtpd[18555]: connect from localhost.localdomain[127.0.0.1]
Jun 9 16:12:24 costarusa postfix/smtpd[18555]: A85B2808147: client=localhost.localdomain[127.0.0.1]
Jun 9 16:12:24 costarusa spamd[2185]: prefork: child states: II
Jun 9 16:12:24 costarusa postfix/cleanup[18558]: A85B2808147: message-id=<op.uchdur2a2qc8vr@localhost.localdomain>
Jun 9 16:12:24 costarusa postfix/qmgr[18550]: A85B2808147: from=<postmaster@costarusa.ru>, size=1773, nrcpt=1 (queue active)
Jun 9 16:12:24 costarusa sendmail[18563]: m59CCO8u018563: to=postmaster@costarusa.ru, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31331, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as A85B2808147)
Jun 9 16:12:24 costarusa postfix/smtpd[18555]: disconnect from localhost.localdomain[127.0.0.1]
Jun 9 16:12:24 costarusa postfix/pipe[18559]: 70A09808151: to=<postmaster@costarusa.ru>, relay=spam, delay=5.3, delays=0.04/0.01/0/5.2, dsn=2.0.0, status=sent (delivered via spam service)
Jun 9 16:12:24 costarusa postfix/qmgr[18550]: 70A09808151: removed
Jun 9 16:12:24 costarusa spamd[16711]: spamd: connection from localhost.localdomain [127.0.0.1] at port 50937
Jun 9 16:12:24 costarusa spamd[16711]: spamd: setuid to clamav succeeded
Jun 9 16:12:24 costarusa spamd[16711]: spamd: processing message <op.uchdur2a2qc8vr@localhost.localdomain> for clamav:497
Jun 9 16:12:25 costarusa spamd[16711]: spamd: clean message (-1.4/7.0) for clamav:497 in 1.2 seconds, 1777 bytes.
Jun 9 16:12:25 costarusa spamd[16711]: spamd: result: . -1 - ALL_TRUSTED scantime=1.2,size=1777,user=clamav,uid=497,required_score=7.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=50937,mid=<op.uchdur2a2qc8vr@localhost.localdomain>,autolearn=unavailable
Jun 9 16:12:25 costarusa spamd[2185]: prefork: child states: II
Jun 9 16:12:25 costarusa sendmail[18567]: m59CCPVE018567: Authentication-Warning: costarusa.ru: clamav set sender to postmaster@costarusa.ru using -f
Jun 9 16:12:25 costarusa sendmail[18567]: m59CCPVE018567: from=postmaster@costarusa.ru, size=1777, class=0, nrcpts=1, msgid=<op.uchdur2a2qc8vr@localhost.localdomain>, relay=clamav@localhost
***
Jun 9 16:13:19 costarusa spamd[16711]: spamd: clean message (-1.4/7.0) for clamav:497 in 5.2 seconds, 13612 bytes.
Jun 9 16:13:19 costarusa spamd[16711]: spamd: result: . -1 - ALL_TRUSTED,AWL scantime=5.2,size=13612,user=clamav,uid=497,required_score=7.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=51006,mid=<200806091212.m59CCoDd018588@costarusa.ru>,autolearn=unavailable
Jun 9 16:13:19 costarusa sendmail[18622]: m59CDJnK018622: Authentication-Warning: costarusa.ru: clamav set sender to MAILER-DAEMON using -f
Jun 9 16:13:19 costarusa sendmail[18622]: m59CDJnK018622: from=MAILER-DAEMON, size=13612, class=0, nrcpts=1, msgid=<200806091212.m59CCoDd018588@costarusa.ru>, relay=clamav@localhost
Jun 9 16:13:19 costarusa sendmail[18622]: m59CDJnK018622: SYSERR(clamav): Too many hops 27 (25 max): from MAILER-DAEMON via localhost, to postmaster@costarusa.ru
Jun 9 16:13:19 costarusa sendmail[18622]: m59CDJnK018622: m59CDJnL018622: DSN: Too many hops 27 (25 max): from MAILER-DAEMON via localhost, to postmaster@costarusa.ru
Jun 9 16:13:19 costarusa postfix/smtpd[18555]: connect from localhost.localdomain[127.0.0.1]
Jun 9 16:13:19 costarusa postfix/smtpd[18555]: EA140808147: client=localhost.localdomain[127.0.0.1]
Jun 9 16:13:19 costarusa spamd[2185]: prefork: child states: II
Jun 9 16:13:19 costarusa postfix/cleanup[18558]: EA140808147: message-id=<200806091213.m59CDJnL018622@costarusa.ru>
Jun 9 16:13:20 costarusa postfix/qmgr[18550]: EA140808147: from=<>, size=15824, nrcpt=1 (queue active)
Jun 9 16:13:20 costarusa sendmail[18622]: m59CDJnL018622: to=MAILER-DAEMON, delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=44636, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as EA140808147)
Jun 9 16:13:20 costarusa postfix/smtpd[18555]: disconnect from localhost.localdomain[127.0.0.1]
Jun 9 16:13:20 costarusa postfix/pipe[18559]: AF2A0808151: to=<postmaster@costarusa.ru>, relay=spam, delay=5.3, delays=0.04/0/0/5.2, dsn=5.3.0, status=bounced (service unavailable)
буду очень благодарен за помощь...