whitelist subject

Use this forum for discussions about SpamAssassin and anti-spam in general.
Post Reply
palinka
Senior user
Senior user
Posts: 1096
Joined: 2017-09-12 17:57

whitelist subject

Post by palinka » 2017-11-29 23:11

I have a php mail form that anyone can fill out. Its working, but some emails including real accounts trigger spam. The form has a fixed recipient and subject line. I want to whitelist the subject line so that any sender will not get a spam tag.

I looked around and found this, but it hasn't worked for me: https://wiki.apache.org/spamassassin/Wh ... jectPlugin

I think I followed the instructions properly. It looks fairly simple. Maybe I overlooked something. I restarted apache (on xampp) and hmailserver after making changes for good measure.

I also tried to add a couple of rules, including adding header X-hMailServer-Whitelist = YES when the subject contains the fixed subject referenced above, but rules get processed after spamassassin, so that didn't help.

Any help getting this sorted would be greatly appreciated.

User avatar
mattg
Moderator
Moderator
Posts: 20108
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: whitelist subject

Post by mattg » 2017-11-29 23:28

Did you install that plugin as well as make changes to your .cf (configuration file)?
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

palinka
Senior user
Senior user
Posts: 1096
Joined: 2017-09-12 17:57

Re: whitelist subject

Post by palinka » 2017-11-30 00:10

mattg wrote:Did you install that plugin as well as make changes to your .cf (configuration file)?
I made the changes to local.cf and WhiteListSubject.pm already exists, and I modified it like shown. Is WhiteListSubject.pm the plugin or is there another file? Thanks for responding.

palinka
Senior user
Senior user
Posts: 1096
Joined: 2017-09-12 17:57

Re: whitelist subject

Post by palinka » 2017-11-30 01:06

I rebooted my server and that seems to have solved the issue. I'm not sure why that would be the case since I stopped and started both apache and hmail services a few times to no effect. I'm not even sure if changes to these things require service restart.

User avatar
mattg
Moderator
Moderator
Posts: 20108
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: whitelist subject

Post by mattg » 2017-11-30 01:24

SpamAssassin would NOT be affected by either a hmailserver or Apache restart. You would need to restart the server as you did or restart the SpamAssassin service to have effect.
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

User avatar
jimimaseye
Moderator
Moderator
Posts: 8118
Joined: 2011-09-08 17:48

Re: whitelist subject

Post by jimimaseye » 2017-11-30 01:26

mattg wrote: restart the SpamAssassin service to have effect.
Exactly that. Always required after a change b to .c.f. files and updates.
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

palinka
Senior user
Senior user
Posts: 1096
Joined: 2017-09-12 17:57

Re: whitelist subject

Post by palinka » 2017-11-30 16:36

OK great, I didn't think about that. Thank you. I'll keep that in mind next time I make changes.

Post Reply