Moving Servers

Richard Mealing richard at
Thu Sep 18 13:12:43 IST 2014

I don’t actually use that ruleset, but I wonder, does it work without the deliver, so if you just use forward, does it forward?
Have you checked the mail logs to see if it did forward the email? Maybe it went to spam as spf fail or something!

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