[exim] Re: Archive Email software management

Top Page
Delete this message
Reply to this message
Author: Daniel Müller via Exim-users
Date:  
To: 'Cyborg'
CC: exim-users
Subject: [exim] Re: Archive Email software management
I just use piler

begin routers

#MAILARCHIV PILER
mailarchive:
debug_print = "R: mailarchive for $local_part@$domain"
driver = manualroute
#we have mails we do not archiv
senders= /etc/xxxxx/nomailarchiv_senders
domains = *
transport = remote_smtp
# piler listening on port 25:
route_list = * "pilerserver::25"
self = send
unseen

Greetings

Daniel

-----Ursprüngliche Nachricht-----
Von: Cyborg via Exim-users [mailto:exim-users@lists.exim.org]
Gesendet: Freitag, 23. August 2024 10:53
An: exim-users@???
Betreff: [exim] Re: Archive Email software management

Am 21.08.24 um 20:27 schrieb Evgeniy Berdnikov via Exim-users:
> On Wed, Aug 21, 2024 at 12:55:37PM -0300, Ronaldo Luiz via Exim-users wrote:
>> Hi Sirs,
>>
>> I need a help to install on my Linux Server an Archive Email software management.
>>
>> Exim send around 15.000 billing e-mails each month, receive around 200.000/month and need to archive the 5 last years emails.
>>
>> Which is the best software option?
> Question "What's the best?" implies some criteria for comparison,
> but you did not mention anything.
>
> To store relaying mail to a disk one can use Exim with redirect router,
> which have "unseen" option and feed message copy to "appendfile" transport.
> This is purely Exim solution, without any external software.


That is not the best way to do it, as each mail needs a sha256 checksum generated, so the archiver can testify, that the archived email is untampered.
With a mbox file, you would need to sign this growing pile of data each time a message is appended, which will overpower your server in a few weeks.

Storing the messages in the default maildir format, allows to sign each message separately without causing hassle to the system.

- it's easier to maintain
- easier to delete old messages
- needs less power

but increases the accesstime to the directory with 200k mails per month, which suggests to store it in seperate directories /var/mail/user/<YEAR>/<MONTH>/

heres the router, you can use a different "target"(data) if you like:

begin routers

archiver:
   driver  = redirect
   data    = mail-archiv@???
   pipe_transport  = address_pipe
   unseen

... normal routers ...

best regards,
Cyborg


--
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/