Author: sharun Date: To: Martin Kaiser CC: exim-users Subject: 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).