Archiving questions

Jason Voorhees jvoorhees1 at gmail.com
Wed Sep 7 16:25:37 UTC 2016


Hello guys:

I'm using the archiving feature of MailScanner which is currently
working pretty fine. This is my current setup:

Archive Mail = %rules-dir%/archive.mail.rules
Missing Mail Archive Is = file

# %rules-dir%/archive.mail.rules file
To:     *@mydomain.com
/var/spool/MailScanner/archive/_TODOMAIN_/_DATE_/received/_TOUSER_/from-_FROMUSER_ at _FROMDOMAIN_.mbox
From:   *@mydomain.com
/var/spool/MailScanner/archive/_FROMDOMAIN_/_DATE_/sent/_FROMUSER_/to-_TOUSER_ at _TODOMAIN_.mbox

However I'm facing a couple of minor issues I'd like you to give me
some ideas to solve it:

1. I wan't to release (resend) some archived mail by running "sendmail
-t < /path/archived/message.mbox" as root.
But this causes the released message (sent by root at mydomain.com) to be
archived again twice: 1st. as a message sent by root, 2nd. as a
message sent to the original recipient.
How can I avoid to archive messages from root at mydomain.com? I tried to
put the following lines at the 1st and last line of my rules file
without luck:

i. From: root at mydomain.com No
ii. FromOrTo: root at mydomain.com No
iii. From: root at mydomain.com ""
iv. From: root at mydomain.com


2. I've noticed that archiving process occurs before virus and spam
checking. Is there a way to change this? So maybe archiving could
occur just after virus+spam checks.
Currently, I can't see any MailScanner header regarding spam checks in
archived messages.

Thanks in advance for your time and help.


More information about the MailScanner mailing list