Spamassassin permit specific user from specific IP
by mfoley from LinuxQuestions.org on (#55NEH)
I've been using Spamassassin for my years and have create a number of custom rules. I can't quite figure out how to create this one.
I have a phone system device that will send messages to users (configured in the phone system) with .WAV attachments of the message. These messages are sent with the sender address as voicemail@mydev.com. The Received: part of the message header will also have the IP address of the phone system.
I would like to create a rule that any message from sender voicemail@mydev.com be confirmed to originate from this device's IP address. I'm thinking something like:
Code:header __T1 From =~ /voicemail@mydev.com/
header __T2 Received !~ /12\.34\.56\.78/
mimeheader __T3 Content-Type !~ /wav/i
meta BOGUS ( __T1 && __T2 && __T3)
score BOGUS 10.0
describe BOGUS Voicemail not from VM SystemWould that work? I can only try this on a live system so I'm looking for reassurance or correction before I just try it!


I have a phone system device that will send messages to users (configured in the phone system) with .WAV attachments of the message. These messages are sent with the sender address as voicemail@mydev.com. The Received: part of the message header will also have the IP address of the phone system.
I would like to create a rule that any message from sender voicemail@mydev.com be confirmed to originate from this device's IP address. I'm thinking something like:
Code:header __T1 From =~ /voicemail@mydev.com/
header __T2 Received !~ /12\.34\.56\.78/
mimeheader __T3 Content-Type !~ /wav/i
meta BOGUS ( __T1 && __T2 && __T3)
score BOGUS 10.0
describe BOGUS Voicemail not from VM SystemWould that work? I can only try this on a live system so I'm looking for reassurance or correction before I just try it!