On 03 Jan 2010, Eduardo M KALINOWSKI wrote: > Anthony Campbell wrote: > > I want to direct mail from [email protected] to [email protected]. All > > other mail should be delivered locally as normal. > > > > I have the following in ~/.forward: > > > > ---------------------------------- > > #Exim filter > > if error_message then finish endif > > if $h_from: contains "a-user<[email protected]>" then > > deliver [email protected] > > endif > > > > pipe "/usr/bin/procmail" > > ------------------------------------- > > > > Here (with names removed) is the output of exim4 -bf ~/.forward < > > somefile. (kundenserver.de is the server at 1&1 where my domain is > > hosted.) > > > > ------------------------------------ > > Sender taken from "From " line > > Return-path taken from "Return-path:" header line > > Return-path = SRS0=8/re=im=msn.com=****[email protected] > > Sender = SRS0=8/re=im=msn.com=***[email protected] > > Recipient = [email protected] > > Testing Exim filter file "/home/ac/.forward" > > > > Deliver message to: ***[email protected] > > Pipe message to: /usr/bin/procmail > > Filtering set up at least one significant delivery or other action. > > No other deliveries will occur. > > ------------------------------------- > > > > > > Can anyone tell me what is wrong here please? > > You said you wanted mail to be delivered to some @gmail account, and > that seems to be happening. So far, nothing wrong. :-) > > I'll assume, though, that you want the mails redirected not to be > delivered locally. To do that, add "finish" after the deliver command to > cause processing to stop. >
No, it doesn't happen -nothing is delivered. And if I add the -v switch I am told there is an error in the line for "deliver". Also, if I put "finish", won't that stop procmail being called? Anthony -- Anthony Campbell - [email protected] Microsoft-free zone - Using Debian GNU/Linux http://www.acampbell.org.uk - sample my ebooks at http://www.smashwords.com/profile/view/acampbell -- ## List details at http://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
