Install amavis + clamav for postfix On debian

Source: Internet
Author: User
Install amavis + clamav-Linux Enterprise Application-Linux server application for postfix On debian. For details, refer to the following. # Apt-get update
# Apt-get install clamav-base clamav-daemon clamav-freshclam clamav-testfiles
# Apt-get install amavisd-new

Modify/etc/amavis. conf
$ Mydomain = 'example. com'
$ Forward_method = 'smtp: 127.0.0.1: 10025 '; # descomente
$ Policy_method = $ forward_method; # descomente

Add/etc/postfix/master. cf
Smtp-amavis unix--y-2 smtp
-O smtp_data_done_timeout = 1200
-O smtp_send_xforward_command = yes
-O disable_dns_lookups = yes
127.0.0.1: 10025 inet n-y--smtp ### (there is no d here)
-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
-O smtpd_error_sleep_time = 0
-O smtpd_soft_error_limit = 1001
-O smtpd_hard_error_limit = 1000

In/etc/postfix/main. cf, add
Content_filter = smtp-amavis: [127.0.0.1]: 10024

Modifying attributes of some files
Chown-R amavis: amavis/var/run/clamav
Chown-R amavis: amavis/var/lib/clamav
Chown-R amavis: amavis/var/log/clamav

Consider clavav as amavis.
Gpasswd-a clamav amavis


Modify/et/clamav. conf
We need to edit this file and change:
User clamav
To
User amavis

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.