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

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: sharun
Data:  
Para: Martin Kaiser
CC: exim-users
Asunto: 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