Re: [Exim] filter: how do I match locally generated mails?

Top Pagina
Delete this message
Reply to this message
Auteur: sharun
Datum:  
Aan: Martin Kaiser
CC: exim-users
Onderwerp: Re: [Exim] filter: how do I match locally generated mails?
Martin Kaiser wrote:
> I tried something like
> if $sender_host_name is "localhost"
> which didn't work.


yeah, coz proto is not local

> In the mail headers, it says:
>
> Received from root by my.mail.server ...
>
> So I also tried
>
> if $sender_host_name is "root"
>
> Surprisingly, it worked. But I'm sure, there's a better way to do this
> (and also catch mails generated by other local accounts).


actualy, you need to check $received_protocol

--
VVS56-RIPE