Pegasus Mail & Mercury

Welcome to the Community for Pegasus Mail and
The Mercury Mail Transport System, the Internet's longest-serving PC e-mail system!
Welcome to Pegasus Mail & Mercury Sign in | Join | Help
Home Blogs Forums Downloads Pegasus Mail Overview Mercury Overview Wiki

Email Archiving

Last post 08-22-2018, 8:11 by bmpan. 3 replies.
Sort Posts: Previous Next
  •  08-14-2018, 13:17

    • bmpan is not online. Last active: 01-14-2019, 12:58 bmpan
    • Top 200 Contributor
    • Joined on 04-19-2013
    • Germany
    • Member
    • Points 455

    Email Archiving

    Like every company, we have to care about email archiving. We use an archiving software on a separate server, that polls mail from two special Mercury accounts, "archiveincoming" and "archiveoutgoing" via POP3.

    On the Mercury side, I defined  two rules (Configuration / Filtering rules / Global rules) as the very first rules of my ruleset. The first one copies every mail with a FROM header containing to the "archiveoutgoing" account. The second one copies every mail with a TO header containing to the "archiveincoming" account.

    However, I also have spamhalter running. In Configuration / Content control, I have a testing set so that any message tagged by Spamhalter shall be "forwarded and then deleted" to a separate account

    After years of fine operation, I found that obviously the "Content control" is processed before the "Filtering rules", so none of the spam mails ever went to the archives.

    Normally no problem, but there are sometimes false positives, that also should be archived.

    Also, all internal  traffic is archived this way, what I don't need to.

    Is there any way to copy out all (external only) traffic before the Content control happens?


  •  08-14-2018, 23:18

    • Brian Fluet is not online. Last active: 06-26-2019, 2:22 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 25,225

    Re: Email Archiving

    If the archiveincoming destination is a mailbox then I think you should be able to use a FORWARD file in the spambox mailbox.  Mercury will then forward a copy of every message that hits that mailbox to the address specified in the FORWARD file.
  •  08-17-2018, 8:48

    • Joerg is not online. Last active: 06-26-2019, 2:25 Joerg
    • Top 25 Contributor
    • Joined on 03-25-2008
    • German Baltic Sea Coast
    • Contributor
    • Points 7,310

    AW: Re: Email Archiving

    I guess Spamhalter is taking affect and marking spam mails prior Mercury is checking the user accounts for any FORWARD files. Many of our users have active FORWARD files in place, but I believe spam is never be forwarded.

    We have also a separate local spam account in place where Mercury is moving all spam, recognized and marked by Spamhalter, to. This local account "spam" is collecting all spam including any false positives (very rarely). This  separate local spam account is being manually checked by designated users regularly for false positives (one or two times a day, or if anybody is missing an expected mail). In case they find such a false positive, it will be manually forwarded to the corresponsing user. But once marked as "spam", Mercury would immediately sort out this e-mail again and again, when bouncing it to the corresponsing user account. That's why we have an additional general filtering rule in place which is located in front of the "spam sorting out" rule of the filter sequence. This additional filter is searching for sender's address "". To trigger this filter rule, false positives must never be bounced but forwarded (with editing). Means the original sender's address will be exchanged with And if the filter finds the local spam account sender's address it causes to an exit processing of the rule set, means the "sorting out" filter takes no effect.

    Finally we archive only our user accounts but not the spam account. The spam account itself has an own filter in place where all mails are being deleted when they are older than 10 days.

  •  08-22-2018, 8:11

    • bmpan is not online. Last active: 01-14-2019, 12:58 bmpan
    • Top 200 Contributor
    • Joined on 04-19-2013
    • Germany
    • Member
    • Points 455

    AW: Re: Email Archiving

    For the outgoing mail, I found a solution using a "Filtering Rule / Outgoing Rule". As the first line, I have an "Always trigger" rule, with a "copy to another user" action. It copies all outgoing mail to my archiveoutgoing mailbox. At the same time it solves the problem that I had before using the General Ruleset. It does not copy all the internal traffic any more.

    For the incoming mail I established a forwarder, as @Brian supposed. Now all  filtered spam is also forwarded to the archives. (I have only one testing set in my Content control and only one spam account. If one had more, he would need a forwarder for each).

    Thank you Brian and Joerg.


View as RSS news feed in XML

Contact | Advertise | Host provider: PraktIT | Terms of Use | Privacy Statement
Copyright © 2007-2011 David Harris / Peter Strömblad. | Pegasus Mail Home Page