Ubuntu Server Guide Changes, errors and bugs
Amavisd-new and Spamassassin
Download 1.27 Mb. Pdf ko'rish
|
ubuntu-server-guide
Amavisd-new and Spamassassin
When integrating Amavisd-new with Spamassassin, if you choose to disable the bayes filtering by editing /etc/spamassassin/local.cf and use cron to update the nightly rules, the result can cause a situation where a large amount of error messages are sent to the amavis user via the amavisd-new cron job. There are several ways to handle this situation: • Configure your MDA to filter messages you do not wish to see. • Change /usr/sbin/amavisd−new−cronjob to check for use_bayes 0. For example, edit /usr/sbin/ amavisd−new−cronjob and add the following to the top before the test statements: e g r e p −q ” ^ [ \ t ] * use_bayes [ \ t ] * 0 ” / e t c / s p a m a s s a s s i n / l o c a l . c f && e x i t 0 Testing First, test that the Amavisd-new SMTP is listening: t e l n e t l o c a l h o s t 10024 Trying 1 2 7 . 0 . 0 . 1 . . . Connected t o l o c a l h o s t . Escape c h a r a c t e r i s ’ ^ ] ’ . 220 [ 1 2 7 . 0 . 0 . 1 ] ESMTP amavisd−new s e r v i c e ready ^ ] 249 In the Header of messages that go through the content filter you should see: X−Spam−L e v e l : X−Virus−Scanned : Debian amavisd−new a t example . com X−Spam−S t a t u s : No , h i t s =−2.3 tagged_above =−1000.0 r e q u i r e d =5.0 t e s t s=AWL, BAYES_00 X−Spam−L e v e l : Note Your output will vary, but the important thing is that there are X-Virus-Scanned and X-Spam- Status entries. Troubleshooting The best way to figure out why something is going wrong is to check the log files. • For instructions on Postfix logging see the Troubleshooting section. • Amavisd-new uses Syslog to send messages to /var/log/mail.log. The amount of detail can be increased by adding the $log_level option to /etc/amavis/conf.d/50−user, and setting the value from 1 to 5. $ l o g _ l e v e l = 2 ; Note When the Amavisd-new log output is increased Spamassassin log output is also increased. • The ClamAV log level can be increased by editing /etc/clamav/clamd.conf and setting the following option: LogVerbose t r u e By default ClamAV will send log messages to /var/log/clamav/clamav.log. Note After changing an applications log settings remember to restart the service for the new settings to take affect. Also, once the issue you are troubleshooting is resolved it is a good idea to change the log settings back to normal. Download 1.27 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling