SpamAssassin or other means of whitelisting by TO address?
I'm an end-user with cPanel hosting on a shared server. There's a mailing list that I'm on which is constantly getting messages labeled as spam by SpamAssassin, and I can't figure out how to whitelist them.
The mailing list is hosted by [removed], and for some reason the list admin has configured it so that the FROM address in the headers are those of the list member who sent the message. (I suspect this is also a reason why they're often marked as spam.) The TO address is the address of the mailing list. In cPanel's web interface for creating whitelist rules I only have the ability to create rules by FROM address.
Is there some way I can configure SpamAssassin to whitelist these, or maybe somehow use the global email filters to keep them from going through SpamAssassin?
-
Hello @JJ Johnson, As a website owner, one approach to ensure you receive these emails is to setup a custom email filter using cPanel >> Global Email Filters that forwards these emails to the email address you want to receive them at. Here's an example: 53147 You'd need to replace "MailingListName" to a term or phrase that always appears in messages from that mailing list. Thank you. 0 -
So it would appear that these global filters are executed after SpamAssassin has evaluated the message and rewritten the headers and subject, correct? If so, forwarding the email isn't going to remove the rewritten SUBJECT containing the prefix of "***SPAM***", which is what I need in order for my mail client to classify them as anything but junk mail. Is it possible for my hosting provider to create a custom SpamAssassin whitelist rule that filters on the TO address? 0 -
You can edit in your account folder: .spamassassin/user_prefs add: whitelist_to email@address.com Even though it won't show in the user interface, it will be preserved. 0 -
Thank you. I think that just might work. After editing the file by hand, I made sure that it survived changes made in the web interface, and it did. :) 0 -
You can edit in your account folder: .spamassassin/user_prefs add: whitelist_to email@address.com Even though it won't show in the user interface, it will be preserved.
Did cPanel change something? I cannot get our dedicated instance through Lunarpages to respect the whitelist_to line in the user_prefs file. Does it matter where in the file those lines are placed?0 -
Did cPanel change something? I cannot get our dedicated instance through Lunarpages to respect the whitelist_to line in the user_prefs file. Does it matter where in the file those lines are placed?
Hello @MikeKM, I'm seeing the same behavior when testing this internally. Unfortunately, since the use of whitelist_to isn't a supported SpamAssassin configuration from the user level in cPanel >> Spam Filters, it's not something that we consider a bug. I encourage you to open a feature request for the ability to define a whitelist_to entry from the user level with SpamAssassin:0 -
Damnit. That explains why I've begun seeing these mailing list messages classified as spam once again. 0 -
Sorry for bumping an old thread, but can anyone confirm whether whitelist_to is functional now?0 -
I'm not finding that added to any of the recent docs and I don't see that there is a feature request opened with those details. 0
Please sign in to leave a comment.
Comments
10 comments