main.cf
Код: Выделить всё
compatibility_level=2
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 = mail.server.local
mydomain = server.local
myorigin = $myhostname
inet_interfaces = all
mydestination = server.local, mail.server.local, localhost.$mydomain, localhost
local_transport = dovecot
local_recipient_maps = unix:passwd.byname $alias_maps $virtual_mailbox_maps
unknown_local_recipient_reject_code = 550
mynetworks_style = host
smtpd_banner = $myhostname ESMTP $mail_name
debug_peer_level = 2
debug_peer_list = 127.0.0.1
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
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
html_directory = /usr/local/share/doc/postfix
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
readme_directory = /usr/local/share/doc/postfix
virtual_mailbox_base = /MAIL
virtual_alias_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_domains = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 999
virtual_uid_maps = static:999
virtual_gid_maps = static:999
virtual_transport = lmtp:unix:/tmp/dspam.sock
# dovecot_destination_recipient_limit = 1
receive_override_options=no_address_mappings
content_filter=clamsmtpd:127.0.0.1:10025
smtpd_sasl_auth_enable = yes
smtpd_sasl_exceptions_networks = $mynetworks
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_pipelining, permit
smtpd_helo_restrictions = permit
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender, reject_unknown_sender_domain, permit
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unauth_destination, reject_unknown_recipient_domain, reject_unverified_recipient, permit
smtpd_data_restrictions = permit
smtpd_end_of_data_restrictions = permit
smtpd_etrn_restrictions = permit
Код: Выделить всё
smtp inet n - n - - smtpd
-o content_filter=lmtp:unix:/tmp/dspam.sock
pickup unix n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr unix 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
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
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
127.0.0.1:10026 inet n - n - 16 smtpd
-o content_filter=
-o receive_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
clamsmtpd unix - - n - 16 smtp
-o smtp_data_done_timeout=1200s
-o disable_dns_lookups=yes
-o smtp_send_xforward_command=yes
-o max_use=50
dspam unix - n n - - pipe
flags=Ru user=dspam argv=/usr/bin/dspam
--client
--deliver=innocent,spam
--user ${recipient}
--mail-from=${sender}
Код: Выделить всё
OutAddress: 10026
Listen: 127.0.0.1:10025
ClamAddress: /var/run/clamav/clamd.sock
Header: X-Virus-Scanned: ClamAV using ClamSMTP
TempDirectory: /tmp
User: clamav
VirusAction: /usr/local/etc/clamsmtpd.virus.found
Код: Выделить всё
clamav clamsmtpd 1723 3 tcp4 127.0.0.1:10025 *:*
clamav clamd 1707 5 stream /var/run/clamav/clamd.sock
root dovecot 1051 33 stream /var/run/dovecot/imap-master
root dovecot 1051 52 stream /var/run/dovecot/auth-master
root master 891 13 tcp4 *:25 *:*
root master 891 14 tcp6 *:25 *:*
root master 891 18 stream public/pickup
root master 891 22 stream public/cleanup
root master 891 25 stream public/qmgr
root master 891 29 stream private/tlsmgr
root master 891 32 stream private/rewrite
root master 891 35 stream private/bounce
root master 891 38 stream private/defer
root master 891 41 stream private/trace
root master 891 44 stream private/verify
root master 891 47 stream public/flush
root master 891 50 stream private/proxymap
root master 891 53 stream private/proxywrite
root master 891 56 stream private/smtp
root master 891 59 stream private/relay
root master 891 62 stream public/showq
root master 891 65 stream private/error
root master 891 68 stream private/retry
root master 891 71 stream private/discard
root master 891 74 stream private/local
root master 891 77 stream private/virtual
root master 891 80 stream private/lmtp
root master 891 83 stream private/anvil
root master 891 86 stream private/scache
root master 891 92 stream private/clamsmtpd
root master 891 95 stream private/dspam
root master 891 103 tcp4 127.0.0.1:10026 *:*
Код: Выделить всё
X5O!
P%@AP
[4\PZX54
(P^)7CC)7}
$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*