Pour stopper MailScanner, je n’ai pas trouvé mieux pour le moment que la commande suivante :
sudo check_mailscanner
qui renvoit les pids et ensuite de les killer manuellement.
Pour démarrer
sudo /opt/MailScanner/bin/MailScanner /opt/MailScanner/etc/MailScanner.conf
Les fichiers à impacter pour modifier le footer des messages qui passe sans faute les filtres :
Installing MailScanner into /opt. If you do not want it there, just move it to where you want it and then edit MailScanner.conf and check_mailscanner to set the correct locations. Have just installed version 4.61.7 into /opt/MailScanner-4.61.7. You will need to update the symlink /opt/MailScanner to point to the new version before starting it. I have setup tnef (which decodes Microsoft Outlook Rich Text attachments) in the /opt/MailScanner/bin directory. Linking into SpamAssassin if you have it installed. Good, the link was created to /opt/MailScanner/etc I strongly recommend you create a few root cron jobs: 37 5 * * * /opt/MailScanner/bin/update_phishing_sites 58 23 * * * /opt/MailScanner/bin/clean.quarantine 42 * * * * /opt/MailScanner/bin/update_virus_scanners 3,23,43 * * * * /opt/MailScanner/bin/check_mailscanner
POSTFIX, UBUNTU, MAILSCANNER README ************************************************** ADD DOMAIN ************************************************** - Edit '/etc/postfix/relay_recipients', 'relay_domains' and 'transport'. - Run 'postmap /etc/postfix/relay_recipients'. Same for 'relay_domains' and 'transport' after edit to add domains into db file. - 'postfix reload' for postfix to read new db files. - To add users to domains edit the 'relay_recipients' and 'postmap' it. ************************************************** CONTROLLING BLIST WLIST ************************************************** - Edit /etc/postfix/sender_access - Run 'postmap /etc/postfix/sender_access' - Run 'postfix reload' ************************************************** OTHER CONFIG FILES ************************************************** - To edit MailScanner Settings "/opt/MailScanner/etc/MailScanner.conf" - To edit spamassassin Settings "/opt/MailScanner/etc/spam.assassin.prefs.conf" - To edit clamav Settings "/etc/clamav/clamd.conf" ************************************************** MISC ************************************************** - Run 'LINUX2' if postfix errors appear about files not matching in the jailroot. - Run 'postfix check' to see if postfix is synched with jailroot. - Run newaliases to refresh the /etc/postfix/aliases database if any changes are made on that file.. - 'mailq' and 'qshape' to check queue. - 'check_mailscanner' to restart MailScanner.