Moving Servers

Richard Mealing richard at
Thu Sep 18 12:15:54 IST 2014

I don’t think you need to put the default rule on the last line. You should be able to put that at the top of the file then put all your rules below it.


From: mailscanner-bounces at [mailto:mailscanner-bounces at] On Behalf Of Edward Dam
Sent: 17 September 2014 21:38
To: MailScanner discussion
Subject: Re: Moving Servers

The curious part is, the last line of deliver.rules is

FromOrTo: default deliver header "X-Spam-Status: No"
Which of course applies to any mail that isn't otherwise directed above that line. I've got a few dozen forwards listed above that line such as

To: user at<mailto:user at> deliver forward user at<mailto:user at>
Which takes any mail for user at<mailto:user at> and delivers it but also forwards it to their gmail address.
The incoming email is being delivered to user at<mailto:user at> but the forward to user at<mailto:user at> does not occur.

On Wed, Sep 17, 2014 at 4:28 PM, Edward Dam <damfam at<mailto:damfam at>> wrote:
Hi All,

I spent the day setting up a new MailScanner server as the old one's days were numbered from a hardware perspective.

I've got the new server up and running, and MailScanner installed and working.

What I *can't* get working, is the custom rules I have, specifically a file called deliver.rules that contains a bunch of forwards.
First off, new server info.

CentOS 6.5
MailScanner Version = 4.84.6
PHP Version = 5.3.3
MailScanner.conf applicable lines:

%rules-dir% = /etc/MailScanner/rules
Non Spam Actions = %rules-dir%/deliver.rules

So in /etc/MailScanner/rules I have my deliver.rules file, copied from the old working system.

For some reason, MailScanner completely ignores the file. I've been banging my head against the desk for a couple hours now - and this is the last "issue" left before pushing this into production.

Any thoughts?

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the MailScanner mailing list