Discussion:
Moving Servers
Edward Dam
2014-09-17 20:28:49 UTC
Permalink
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/20140917/d7226c5d/attachment.html
Edward Dam
2014-09-17 20:38:08 UTC
Permalink
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 deliver forward user at gmail.com

Which takes any mail for 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 but the forward
to user at gmail.com does not occur.
Post by Edward Dam
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
%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/20140917/d36c5802/attachment.html
Richard Mealing
2014-09-18 11:15:54 UTC
Permalink
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
Richard Mealing
2014-09-18 12:12:43 UTC
Permalink
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 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/d28e264b/attachment.html
Loading...