Attempting To Improve Accuracy
Posted: Thu May 06, 2010 3:03 pm
I am attempting to provide my users with the best possible spam blocking without blocking ham, I am playing with the options available. Unfortunately, there are several issues I have not been able to resolve on my own. The following is the list followed by the details of each:
1. Interaction between MagicSpam and Plesk spam protection based on DNS black hole list.
2. Use of best practises rules
3. Email from sources on IP reputation lists not identified as spam
4. White listing major ISP mail servers IP
5. Format of rejection message text
MagicSpam and Plesk
Is there a value in using the Plesk DNS black hole protection in conjunction with MagicSpam? I am less concerned about the added resource overhead than blocking the most spam. As I can add the lists from SpamHaus and others using this feature, I assume that this is worth using. My consideration in using these other lists is that I am seeing spam flagged as ham from sources on these other lists.
Also, is MagicSpam invoked before or after the Plesk DNS black hole protection?
Best Practises Rules
Many of my users are home/small businesses so that for those using the Plesk server for their SMTP/outgoing server, I must be certain not to reject their attempts. There are three best practises rules that appear to be excluded by my requirements:
check_dynamic_reverse_dns – The IP is always dynamic and of the host name specified is the ISP’s configuration not my user’s domain.
resolve_helo_domain – The helo is always the computer name
valid_helo_domain – The helo is always the computer name
Am I correct in my understanding? If not, please elaborate.
There is a fourth rule, valid_from_domain, on which I am uncertain. For my users the from address will always be well formed and the domain portion will resolve to their domain on the server so it sounds like this should be a safe rule to implement. Still, the explanation of this rule seems to imply that there is also a relationship to the IP that is sending the email. Am I safe to put this rule in use?
IP Reputation Accuracy
I have noticed a number of messages marked as ham with IPs that are black listed by the lists I have in use. Currently I am using all lists with the exception of SORBS-DUL and the following IPs are not marked as spam even though they are on the lists shown:
RATS-Dyna - 222.155.105.236 and 212.30.223.103
UCEPROTECTL1 - 195.249.91.122, 149.156.87.107, 212.30.223.103, and 195.158.103.157
This is not an exhaustive listing, just a quick look over a few hours of the logs and while I appreciate that the MagicSpam lists are not dynamic, I have a difficulty explaining that this many errors can be attributed to the list being a few hours out of date. Do I have something set wrong or is there another explanation.
White Listing Mail Servers
This week, one of the major ISPs in my area had one of their mail servers show up on the UCEPROTECTL1 list. In short order, this started causing havoc for my users as ham was rejected. White listing this one IP solved the immediate problem and I really do not want to have this grief again should this or another of their servers make some list. Are their any cautions against listing all the mail server IPs for specific ISPs? Also, is there a good way to get a listing of these IPs?
Rejection Message Format
It appears that there is a problem with the formatting of the text as the control character \n is being displayed rather than generating a new line. How can this be resolved? The following is an example:
The reason for the problem:
5.1.0 - Unknown address error 550-'Your message was rejected by this system and was not delivered.\nReason: This system will not accept messages from you\nProtection provided by: MagicSpam 1.0.4-6 (http://www.magicspam.com/)\nFor more information, please visit the URL:\nhttp://www.linuxmagic.com/empowering_the_user\nor contact your ISP or mail server operator.'
PS It would be very helpful if the dashboard or setting pages indicated which version is installed.
1. Interaction between MagicSpam and Plesk spam protection based on DNS black hole list.
2. Use of best practises rules
3. Email from sources on IP reputation lists not identified as spam
4. White listing major ISP mail servers IP
5. Format of rejection message text
MagicSpam and Plesk
Is there a value in using the Plesk DNS black hole protection in conjunction with MagicSpam? I am less concerned about the added resource overhead than blocking the most spam. As I can add the lists from SpamHaus and others using this feature, I assume that this is worth using. My consideration in using these other lists is that I am seeing spam flagged as ham from sources on these other lists.
Also, is MagicSpam invoked before or after the Plesk DNS black hole protection?
Best Practises Rules
Many of my users are home/small businesses so that for those using the Plesk server for their SMTP/outgoing server, I must be certain not to reject their attempts. There are three best practises rules that appear to be excluded by my requirements:
check_dynamic_reverse_dns – The IP is always dynamic and of the host name specified is the ISP’s configuration not my user’s domain.
resolve_helo_domain – The helo is always the computer name
valid_helo_domain – The helo is always the computer name
Am I correct in my understanding? If not, please elaborate.
There is a fourth rule, valid_from_domain, on which I am uncertain. For my users the from address will always be well formed and the domain portion will resolve to their domain on the server so it sounds like this should be a safe rule to implement. Still, the explanation of this rule seems to imply that there is also a relationship to the IP that is sending the email. Am I safe to put this rule in use?
IP Reputation Accuracy
I have noticed a number of messages marked as ham with IPs that are black listed by the lists I have in use. Currently I am using all lists with the exception of SORBS-DUL and the following IPs are not marked as spam even though they are on the lists shown:
RATS-Dyna - 222.155.105.236 and 212.30.223.103
UCEPROTECTL1 - 195.249.91.122, 149.156.87.107, 212.30.223.103, and 195.158.103.157
This is not an exhaustive listing, just a quick look over a few hours of the logs and while I appreciate that the MagicSpam lists are not dynamic, I have a difficulty explaining that this many errors can be attributed to the list being a few hours out of date. Do I have something set wrong or is there another explanation.
White Listing Mail Servers
This week, one of the major ISPs in my area had one of their mail servers show up on the UCEPROTECTL1 list. In short order, this started causing havoc for my users as ham was rejected. White listing this one IP solved the immediate problem and I really do not want to have this grief again should this or another of their servers make some list. Are their any cautions against listing all the mail server IPs for specific ISPs? Also, is there a good way to get a listing of these IPs?
Rejection Message Format
It appears that there is a problem with the formatting of the text as the control character \n is being displayed rather than generating a new line. How can this be resolved? The following is an example:
The reason for the problem:
5.1.0 - Unknown address error 550-'Your message was rejected by this system and was not delivered.\nReason: This system will not accept messages from you\nProtection provided by: MagicSpam 1.0.4-6 (http://www.magicspam.com/)\nFor more information, please visit the URL:\nhttp://www.linuxmagic.com/empowering_the_user\nor contact your ISP or mail server operator.'
PS It would be very helpful if the dashboard or setting pages indicated which version is installed.