Installazione Amavisd-new in Debian: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
== Amavisd == | == Installazione Amavisd == | ||
* Effettuare l'installazione: | * Effettuare l'installazione: | ||
| Line 7: | Line 7: | ||
</pre> | </pre> | ||
== Installazione Clamav == | |||
http://rvmserver/mediawiki/index.php?title=Installazione_Clamav_aggiornato_da_volatile | http://rvmserver/mediawiki/index.php?title=Installazione_Clamav_aggiornato_da_volatile | ||
==Installazione decompressori== | |||
Assicurasi di di avere i repository contrib e non-free configurati (Servono per unrar): | Assicurasi di di avere i repository contrib e non-free configurati (Servono per unrar): | ||
| Line 30: | Line 30: | ||
In caso si lamenti per unrar, aggiungere non-free alle righe di /etc/apt/sources.list (e lanciare apt-get update, affinchè vengano accettate le modifiche alle righe di /etc/apt/sources.list). | In caso si lamenti per unrar, aggiungere non-free alle righe di /etc/apt/sources.list (e lanciare apt-get update, affinchè vengano accettate le modifiche alle righe di /etc/apt/sources.list). | ||
==Installazione McAfee== | |||
Assicurarsi che esista il NOSTRO repository | Assicurarsi che esista il NOSTRO repository | ||
| Line 53: | Line 53: | ||
( Obsoleto http://rvmserver/mediawiki/index.php?title=Installazione_Mcafee) | ( Obsoleto http://rvmserver/mediawiki/index.php?title=Installazione_Mcafee) | ||
==Configurazione Amavis== | |||
<pre> | <pre> | ||
| Line 89: | Line 89: | ||
il cui risultato dovrà essere qualcosa di simile: | il cui risultato dovrà essere qualcosa di simile: | ||
<pre> | |||
10491 ? S 0:00 amavisd (master) | 10491 ? S 0:00 amavisd (master) | ||
10492 ? S 0:00 amavisd (virgin child) | 10492 ? S 0:00 amavisd (virgin child) | ||
10493 ? S 0:00 amavisd (virgin child) | 10493 ? S 0:00 amavisd (virgin child) | ||
10497 pts/0 S 0:00 grep amavis | 10497 pts/0 S 0:00 grep amavis | ||
</pre> | |||
Se si vuol far funzionare clamav-daemon occorre aggiungere l'utente clamav al gruppo amavis: | Se si vuol far funzionare clamav-daemon occorre aggiungere l'utente clamav al gruppo amavis: | ||
| Line 103: | Line 100: | ||
<pre> | <pre> | ||
sudo adduser clamav amavis | sudo adduser clamav amavis | ||
</pre> | |||
== Configurazione Postfix== | |||
<pre> | |||
postconf -e content_filter=amavis:[127.0.0.1]:10024 | |||
</pre> | |||
* Mettere queste cose alla fine di master.cf: | |||
<pre> | |||
cat | sudo tee -a /etc/postfix/master.cf > /dev/null <<EOFile | |||
amavis unix - - n - 2 smtp | |||
-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 | |||
EOFile | |||
</pre> | |||
ed il cui risultato sarà: | |||
<pre> | |||
amavis unix - - n - 2 smtp | |||
-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 | |||
</pre> | |||
* Restartare Postfix e Clamav e Clamav-daemon: | |||
<pre> | |||
sudo /etc/init.d/postfix stop; sudo /etc/init.d/postfix start | |||
sudo /etc/init.d/amavis stop ; sudo /etc/init.d/amavis start | |||
sudo /etc/init.d/clamav-daemon stop; sudo /etc/init.d/clamav-daemon start | |||
</pre> | </pre> | ||
Revision as of 07:14, 18 June 2007
Installazione Amavisd
- Effettuare l'installazione:
sudo apt-get install amavisd-new
Installazione Clamav
http://rvmserver/mediawiki/index.php?title=Installazione_Clamav_aggiornato_da_volatile
Installazione decompressori
Assicurasi di di avere i repository contrib e non-free configurati (Servono per unrar):
cat/etc/apt/sources.list ... deb http://ftp.it.debian.org/debian/ etch main contrib non-free ...
Installarli
sudo apt-get update sudo apt-get install zoo unzip arj unrar lha lzop bzip2
In caso si lamenti per unrar, aggiungere non-free alle righe di /etc/apt/sources.list (e lanciare apt-get update, affinchè vengano accettate le modifiche alle righe di /etc/apt/sources.list).
Installazione McAfee
Assicurarsi che esista il NOSTRO repository
cat/etc/apt/sources.list ... deb http://support.rvmgroup.it/debian binary/ ...
Installare la chiave:
wget http://support.rvmgroup.it/debian//gabriele.mailing@rvmgroup.it-public.key.gpg -O - \ | sudo apt-key add -
sudo apt-get update
Installare:
sudo apt-get install mcafee-virusscan mcafee-autoupdate
( Obsoleto http://rvmserver/mediawiki/index.php?title=Installazione_Mcafee)
Configurazione Amavis
sudoedit /etc/amavis/conf.d/15-content_filter_mode
... @bypass_virus_checks_maps = ( \%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re); ...
Restartare amavis:
sudo /etc/init.d/amavis stop ; sudo /etc/init.d/amavis start
Verificare che Amavis ascolti sulla porta 10024:
netstat -an | grep 10024
il cui risultato dovrà essere qualcosa di simile:
tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN
e
ps wax | grep amavis
il cui risultato dovrà essere qualcosa di simile:
10491 ? S 0:00 amavisd (master) 10492 ? S 0:00 amavisd (virgin child) 10493 ? S 0:00 amavisd (virgin child) 10497 pts/0 S 0:00 grep amavis
Se si vuol far funzionare clamav-daemon occorre aggiungere l'utente clamav al gruppo amavis:
sudo adduser clamav amavis
Configurazione Postfix
postconf -e content_filter=amavis:[127.0.0.1]:10024
- Mettere queste cose alla fine di master.cf:
cat | sudo tee -a /etc/postfix/master.cf > /dev/null <<EOFile amavis unix - - n - 2 smtp -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 EOFile
ed il cui risultato sarà:
amavis unix - - n - 2 smtp -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
- Restartare Postfix e Clamav e Clamav-daemon:
sudo /etc/init.d/postfix stop; sudo /etc/init.d/postfix start sudo /etc/init.d/amavis stop ; sudo /etc/init.d/amavis start sudo /etc/init.d/clamav-daemon stop; sudo /etc/init.d/clamav-daemon start