Exim Journal Mail Box Setup Help

itcms

Verified User
Joined
Jul 4, 2019
Messages
109
Location
Athens
Hi,

I need to create for exim an Journal mailbox for all domain incoming outgoing emails for a domain
I followed this guide to setup custom filter
into
/usr/local/directadmin/custombuild/custom/exim

First try , not worked :
#Incoming To, CC, BCC
if ("$h_to:, $h_cc:, $h_bcc" contains "@example.com")
then
unseen deliver "[email protected]"
endif

#Outgoing From
if first_delivery
and $sender_address is "@example.com"
then
unseen deliver "[email protected]"
endif

Second try not worked:


archive_by_sender:
driver = appendfile
maildir_format
mode = 0600
mode_fail_narrower = false
envelope_to_add = true
return_path_add = true
create_directory
directory = /home/imydomain/dir

archive_by_recipient:
driver = appendfile
maildir_format
mode = 0600
mode_fail_narrower = false
envelope_to_add = true
return_path_add = true
create_directory
directory = /home/imydomain/dir

Hi

I found this
https://help.directadmin.com/item.php?id=390

and working if you add direct to /etc/system_filter.exim only and not if try use it
/usr/local/directadmin/custombuild/custom/exim


Any suggestion please ?

System OS: Centos 7
 
Last edited:
I will summarize for every one who want to build a journal mail :

1st. Polarix guide to create a custom exim file to avoid overwrite in future updates

2nd. Log all outbound emails leaving my server
IN CASE you want log and incoming and outgoing simple add
unseen deliver "[email protected]" without if part ( thanks to support team of DA for this)

3rd.: Final step :
cd /usr/local/directadmin/custombuild
./build update
./build set eximconf yes
./build exim
./build exim_conf


Thats all
 
Back
Top