Exim: set default abuse and postmaster email Id
I want to use a default mail address of
*: :fail: No such address
… in a domain’s valias file. Easy enough to do but I still want to let through postmaster@domain.com and abuse@domain.com as per common practice. Some servers for instance will not allow mail through if there is no postmaster@… defined for a domain, Sourceforge being an example.
Here’s a solution:
1. Create a file called /etc/myaliases with:
Code:
postmaster: root
abuse: root
2. In the WHM > Exim Configuration Editor scroll down to the section “DIRECTORS CONFIGURATION” and in the first text box of that section put:
Code:
mysystem_aliases:
driver = redirect
allow_defer
allow_fail
data = ${lookup{$local_part}lsearch{/etc/myaliases}}
file_transport = address_file
pipe_transport = address_pipe
retry_use_local_part
You’ll then have a server-wide postmaster and abuse address that won’t be interfered with by users having :fail: Default Addresses.