Install Spamassassin & Clamav For Postfix On Fedora 18 or More

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

->

amavisd, spamassassin, clamav setup <-

1. setup postfix 5 minutes howto first 2.install binaries #yum install spamassassin clamav amavisd-new clamav-update clamav-server-sysvinit 3. configure amavisd-new # vi /etc/amavisd/amavisd.conf $mydomain = 'aiolinux.ro'; $myhostname = 'mail.aiolinux.ro'; 4. enable clamav to do automatic updates to virus definitions #vi /etc/sysconfig/freshclam remove lines to delete FRESHCLAM_DELAY=disabled-warn #vi /etc/freshclam.conf to enable automatic updates: comment #Example #freshclam 5. start & enable services #systemctl start amavisd.service # systemctl enable amavisd.service # systemctl start clamd.amavisd.service #systemctl enable clamd.amavisd.service #systemctl start spamassassin.service #systemctl enable spamassassin.service 6.configure postfix to use the new content filtering system 6.1.Add the following to /etc/postfix/master.cf: #vi /etc/postfix/master.cf 127.0.0.1:10025 inet n - y - - smtpd -o content_filter= -o local_recipient_maps= -o smtpd_helo_restrictions= -o smtpd_client_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject_unauth_destination -o mynetworks=127.0.0.0/8 smtp-amavis unix - - y - 2 smtp -o smtp_data_done_timeout=1200 -o disable_dns_lookups=yes 6.2. add the following to the /etc/postfix/main.cf config file: #vi /etc/postfix/main.cf content_filter = smtp-amavis: [127.0.0.1] :10024 7.restart postfix #systemctl restart postfix.service

www.arondmessaging.ro www.facebook.com/aiolinux

You might also like