Re: [exim] multiple dummy domains

Góra strony
Delete this message
Reply to this message
Autor: Jeremy Harris
Data:  
Dla: exim-users
Temat: Re: [exim] multiple dummy domains
On 29/06/16 16:10, Gary Stainburn wrote:
> On Tuesday 28 June 2016 17:36:54 Mike Brudenell wrote:
>> Hi, Gary -
>>
>> There are several ways of doing it, with the most general perhaps being to
>> do lookups in text files — perhaps one per domain — to see if the address
>> is one to rewrite and, if so, what it should be rewritten to.
>>
>
> This was my first (and most likely) choice. I already have a file
>
> /etc/aliases.d/existing_domain.com
>
> which is a simple alias file and contains all of the valid email addresses for
> that domain. My thought is to create symlinks to
>
> /etc/aliases.d/webdomain1.com
> /etc/aliases.d/webdomain2.com
>
> etc. and then add them to my exim.conf. This way I only ever have one file to
> edit.


If there's only one file there is absolutely zero point in using
several names for it.


I'm personally in the "rewrites are evil; use redirects only" camp.
YMMV... but go back to your requirements and the docs, and work out
the minimum way of expressing it using a redirect router.
--
Cheers,
Jeremy