| SpamFilter Troubleshooting |
|
|
|
| Written by Administrator |
| Tuesday, 26 May 2009 10:57 |
|
There are too many different problems regarding email flow troubleshooting. I can only provide a 'starting point' for you. Troubleshooting Video - Video 6 Warning - do not run 'yum update' on the spam filter. It will update amavisd and spamassassin, which will break the entire filter VM. If you need to update a component, just update that individual component - example: 'yum update postfix'
Virtual Machine Problems The one problem I have found is with Broadcomm network chipsets - the broadcomm network chipset is built into many motherboards, and it is simply horrible. If your host computer has it, you need to drop in a network card for the Virtual Machine to use. I have had great success with cards from Linksys, the Trendnet 10/100/1000 works well, and the Intel 1000-mbit card that is optional with Dell Servers is excellent. In general, VMWare and Intel network cards seems to equal happiness.
IMAP Exchange 2007 and 2010 don't just accept plain text auth by default on their IMAP connectors. Best results come from the following:
Mail Size To allow attachments larger than 1MB, you need to change the MySQL max allowed packet size: /etc/my.conf
Logs All log files are kept in /var/log on the filter. The most important logs will be maillog and messages. You can view these with webmin, or use WinSCP to copy the logfiles to your workstation and view them with a capable text editor like Crimson Editor.
Logwatch is installed. You can use the file manager in Webmin to edit /etc/logwatch/conf/logwatch.conf and add the following line: MailTo: This e-mail address is being protected from spambots. You need JavaScript enabled to view it replace user@ with your administrator email address. The system will send you an overall system report once per day, including detailed email reports.
A script called pflogsumm is also installed, and will email stats once per day to your administrator account. Simply use the webmin file manager to edit /etc/postfix-report.sh and replace the word root at the end of the line with your email address.
Config Files The data for MAIA, as well as your spamassassin training, are kept in MySQL. Use the MySQL Administrator program to look at tables and data in the tables.
Postfix: all configs are in /etc/postfix
Amavisd - uses /etc/amavisd.conf - you can set the log verbosity (how much information it logs) from 0 to 5 in this config file - generally, a setting of 3 or higher is sufficient to really see what is happening to each email - make sure to put it back to 1 or 0 when finished, as this much logging really bogs the system down
SpamAssassin - the main configuration file is /etc/mail/spamassassin/local.cf, and all the rules files are in /usr/share/spamassassin - these are updated automatically by a CRON job
Maia
Relay Recipients - the relay_recipients.vbs script (used to populate the spamfilter with a list of valid email addresses for your exchange server) uses /etc/updaterelays.sh to finish the process.
Headers Every email processed by the spam filter will have lots of HEADERS added. These headers will show every spamassassin test that scored for that email, as well as the overall email flow from system to system. You can then adjust the scores in /etc/mail/spamassassin/local.cf to suit your tastes. You can set your mail client to react to these headers also, as needed.
X-Spam-Flag: YES Postfix Queue You can view the queue from webmin (you have seen how to access webmin, and the postfix configuration tool, in the various videos). You can also use Putty to open a command prompt to the spamfilter itself (it is linux, so its gots to have SSH), and run the command pfqueue to view the postfix queue. Run the command man pfqueue to view the manual for pfqueue. Another neat command to run is iptraf, again from the SSH command line. This will give you some detailed stats regarding network traffic on the spamfilter's network card. This is a great network troubleshooting tool. Community Support No matter how much content I put up to assist you with the filter, there will still be a point where you will scream 'HELP ME' after encountering a weird problem. Obviously, it would be good to join the mailing lists below ahead of time - quicker to ask questions that way. If you think the problem is with the MAIA mailguard interface, or with the AMAVISD daemon: MAIA Mailing Lists If you think the problem is with Postfix: Postfix Docs And general linux problems / questions - the Centos site has support forums and mailing lists, documentation, and quite a bit more: |
| Last Updated on Thursday, 08 July 2010 09:02 |
SpamFilter Troubleshooting

