Re: [Exim] Exim filter

Góra strony
Delete this message
Reply to this message
Autor: Kirill Miazine
Data:  
Dla: exim-users
Temat: Re: [Exim] Exim filter
system@??? wrote:

> Hello and Thank you very much.
>
> This is what i put in .forward file
>
> # Exim filter
>
> if $local_part contains "mail1" then
> deliver mail2@???
> save /home/pathto/saved
> endif
>
> $local_part contains the username (only account name "mail2" Right?)


Yes. "mail1" or "mail2"?

> but after doing this i didn't receive any mails in my
> mail1@???.


Are you sure that $local_part is mail1 when filter file is processed?

> My intentions are just to discard the messages which are forwarded to
> mail2@??? from mail1@???.


# Exim filter
if $local_part contains mail1 then
    deliver mail2@???
    finish
endif