Discussion:
Archive Mail Problem In MailScanner-4.84
Jim Flowers
2014-06-23 12:15:47 UTC
Permalink
I regularly use a ruleset for directing copies of messages for particular
addresses to alternate recipients. Until 4.84, that is.

If I enter a ruleset with:

Archive Mail = /var/spool/MailScanner/rules/archive.rules
or
%rules-dir%/archive.rules

copies of all messages as files are stored in archive.rules as a directory.

If I first create a archive.rules file with my desired copying rules, all
messages are appended to the file.

I would like to have this useful functionality back.

Thanks for any information.
--
Jim Flowers <jflowers at ezo.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140623/7f0b7f1c/attachment.html
Martin Hepworth
2014-06-23 14:36:36 UTC
Permalink
so what's the archive.rules look like?

remember these are like firewall rules and evaluated in order till it finds
a 'hit' then stops processing the ruleset at that point, so make sure any
default line is at the end of the file.
--
Martin Hepworth, CISSP
Oxford, UK
Post by Jim Flowers
I regularly use a ruleset for directing copies of messages for particular
addresses to alternate recipients. Until 4.84, that is.
Archive Mail = /var/spool/MailScanner/rules/archive.rules
or
%rules-dir%/archive.rules
copies of all messages as files are stored in archive.rules as a directory.
If I first create a archive.rules file with my desired copying rules, all
messages are appended to the file.
I would like to have this useful functionality back.
Thanks for any information.
--
Jim Flowers <jflowers at ezo.net>
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140623/1e85d497/attachment.html
Alex Neuman
2014-06-23 14:57:37 UTC
Permalink
Are you sure you're using .rules at the end?
Post by Jim Flowers
I regularly use a ruleset for directing copies of messages for particular
addresses to alternate recipients. Until 4.84, that is.
Archive Mail = /var/spool/MailScanner/rules/archive.rules
or
%rules-dir%/archive.rules
copies of all messages as files are stored in archive.rules as a directory.
If I first create a archive.rules file with my desired copying rules, all
messages are appended to the file.
I would like to have this useful functionality back.
Thanks for any information.
--
Jim Flowers <jflowers at ezo.net>
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140623/3030950f/attachment.html
Jim Flowers
2014-06-25 02:08:13 UTC
Permalink
Further information:

If I set permissions on the archive.rules file to read only, I can stop
messages from being appended. Unfortunately, the rules in the file still
don't work to forward copies to other accounts in accordance with the rules
included so I'm not really gaining.

This is a new install on FreeBSD-10.0-RELEASE with MailScanner -4.84 and
perl v5.18.2 (threaded) running on an AM64 host.

If this problem is unknown to the community, how would I set about
debugging it? I'm not at all familiar with the MailScanner code.
Post by Jim Flowers
I regularly use a ruleset for directing copies of messages for particular
addresses to alternate recipients. Until 4.84, that is.
Archive Mail = /var/spool/MailScanner/rules/archive.rules
or
%rules-dir%/archive.rules
copies of all messages as files are stored in archive.rules as a directory.
If I first create a archive.rules file with my desired copying rules, all
messages are appended to the file.
I would like to have this useful functionality back.
Thanks for any information.
--
Jim Flowers <jflowers at ezo.net>
--
Jim Flowers <jflowers at ezo.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140624/a8e9cfbe/attachment.html
Loading...