Re: [exim] disable srs for my domains

Top Pagina
Delete this message
Reply to this message
Auteur: Przemyslaw Zoltowski
Datum:  
Aan: Todd Lyons
CC: exim-users
Onderwerp: Re: [exim] disable srs for my domains

Wiadomość napisana przez Todd Lyons w dniu 14 paź 2011, o godz. 15:47:

> On Thu, Oct 13, 2011 at 10:31 AM, Przemyslaw Zoltowski
> <p.zoltowski@???> wrote:
>> I have an MTA which is used to forward emails to specific mail systems. My users can choose between 2 my internal systems (lets name it 'system1' and 'system2') and forward to any of his external mailboxes (by external I mean outside my company). To make my forwards reach external destinations i needed to implement SRS. Everything works jus fine, but I want to disable SRS for my local systems (system1 and system2), because I accept all mails forwarded from this host. Exim uses /etc/aliases to > Does anyone can help me write working condition to achieve my aim ?
>
> Modify the following example from the exim spec (chapter 22, the
> redirect router), putting in the IP address of your system1 and
> system2, separated by the pipe:
>
> condition = ${if match {$sender_host_address}\
>                         {\N^(|127\.0\.0\.1)$\N}}

>
> In the above example, it's designed to detect local senders (ie using
> mail from the commandline or piping to /usr/sbin/sendmail) or someone
> who connects to localhost port 25. So you'll do system1|system2, but
> using ip addresses.


thank you for reply, but it isn't an proper answer for my problem :[ I'm forwarding incoming emails to my primary domain to one of my internal mail system (internal domain). My Exim MTA recive email and then depend on /etc/aliases file decide where to forward this message. it could be my system1 or system2 or private email of my user (for example in gmail). In present configuration Exim SRS every email and I want it to do it only for external forward (not system1 / system2). I need to check destination domain of incoming emails. I tried few filters for this router but in every configuration I've tried it looks like Exim decide whenever to do SRS by checking original adress so it does srs for every incoming mail. I want SRS message only when this message is not addressed to one of my internal domain.

Maybe I should try to move SRS router after router which do lookup in aliases file ? What do u think about it ?

Thnaks in advance
zolty