# apt-get updateea6Linux联盟 # apt-get install clamav clamav-base clamav-daemon clamav-freshclam clamav-testfilesea6Linux联盟 # apt-get install amavisd-new 修改/etc/amavis/amavis.conf $mydomain = 'example.com' $forward_method = 'smtp:127.0.0.1:10025'; # descomenteea6Linux联盟 $notify_method = $forward_method; # descomente ea6Linux联盟 在/etc/postfix/master.cf中加入 smtp-amavis unix - - y - 2 smtpea6Linux联盟 -o smtp_data_done_timeout=1200ea6Linux联盟 -o smtp_send_xforward_command=yesea6Linux联盟 -o disable_dns_lookups=yes 127.0.0.1:10025 inet n - y - - smtpd -o content_filter=ea6Linux联盟 -o local_recipient_maps=ea6Linux联盟 -o relay_recipient_maps=ea6Linux联盟 -o smtpd_restriction_classes=ea6Linux联盟 -o smtpd_client_restrictions=ea6Linux联盟 -o smtpd_helo_restrictions=ea6Linux联盟 -o smtpd_sender_restrictions=ea6Linux联盟 -o smtpd_recipient_restrictions=permit_mynetworks,rejectea6Linux联盟 -o mynetworks=127.0.0.0/8ea6Linux联盟 -o strict_rfc821_envelopes=yesea6Linux联盟 -o smtpd_error_sleep_time=0ea6Linux联盟 -o smtpd_soft_error_limit=1001ea6Linux联盟 -o smtpd_hard_error_limit=1000 ea6Linux联盟 在/etc/postfix/main.cf中加入ea6Linux联盟 content_filter=smtp-amavis:[127.0.0.1]:10024 ea6Linux联盟 修改某些文件的属性ea6Linux联盟 chown -R amavis:amavis /var/run/clamavea6Linux联盟 chown -R amavis:amavis /var/lib/clamavea6Linux联盟 chown -R amavis:amavis /var/log/clamav ea6Linux联盟 把clavav假如amavis组ea6Linux联盟 gpasswd -a clamav amavis 修改/et/clamav/clamav.confea6Linux联盟 We need to edit this file and change: ea6Linux联盟 User clamav ea6Linux联盟 toea6Linux联盟 User amavis
|