e-mail --> [postifx (*:25)] --> [amavisd-new (127.0.0.1:10024)] -->Of course, amavisd-new can run on separate machine. Just adjust listening and forwarding IP and port.
[postfix (127.0.0.1:10025)] --> [delivery agent (local/smtp/...)]
cd /usr/ports/security/clamav && make install cleanConfiguration file: /usr/local/etc/clamav.conf.
0 6 * * * /usr/local/bin/freshclamStart clamd.
cd /usr/ports/security/amavisd-new && make install cleanConfiguration file: /usr/local/etc/amavisd.conf
smtp-amavis unix - - n - 3 smtpmain.cf:
-o smtp_data_done_timeout=1200
-o disable_dns_lookups=yes
127.0.0.1:10025 inet n - n - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
content_filter = smtp-amavis:[127.0.0.1]:10024
Restart Postfix (with postfix stop; postifx start) and watch
mail logs for errors. If everything went ok, you shold see clamd
log (/var/amavis/clamd.log) and amavisd log
(/var/amavis/amavis.log) filling up.
You should see additional mail headers in mails which go trough
your mailer (X-Virus-Scanned: and X-Spam-Status:).
Ref:: http://72.14.203.104/search?q=cache:b5k19ynYVP8J:mail.x-si.org/articles/av.html+&hl=th&gl=th&ct=clnk&cd=1&client=firefox
ไม่มีความเห็น