Moving Servers
Richard Mealing
richard at fastnet.co.uk
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.
Ta,
Rich
From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] 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 mydomain.com<mailto:user at mydomain.com> deliver forward user at gmail.com<mailto:user at gmail.com>
Which takes any mail for user at mydomain.com<mailto:user at mydomain.com> and delivers it but also forwards it to their gmail address.
The incoming email is being delivered to user at mydomain.com<mailto:user at mydomain.com> but the forward to user at gmail.com<mailto:user at gmail.com> does not occur.
On Wed, Sep 17, 2014 at 4:28 PM, Edward Dam <damfam at gmail.com<mailto:damfam at gmail.com>> 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...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140918/25fddb2c/attachment.html
More information about the MailScanner
mailing list