Re: Pipe vs Forwarding

From: Craig Sanders (no email)
Date: Fri Feb 01 2002 - 08:22:35 EST


On Fri, Feb 01, 2002 at 12:10:00PM +0200, Jason Armstrong wrote:
> I have the following situation: a machine on a local (10.0.42) network
> (A) that is forwarding outgoing mail to a machine directly connected
> to the internet (B). This works ok. But now I have one situation on
> machine A where I don't want mail to be forwarded to B .. and that is
> when I want to pipe the email to a program. Because B is directly
> connected to the Internet, I have put an alias on it like this:
>
> test: test at A
>
> and then on A, I have an alias:
>
> test: "|/usr/local/bin/test"
>
> However, when the mail gets to A, it is immediately forwarded back to
> B, without being piped through the program. My guess is that because
> it is setup to forward mail, that that takes precedence over the pipe
> alias. Is there a configuration that I can use to change this ie,
> first check if the recipient is to be piped to a program, and then to
> forward the mail?

you could use a virtual table entry on machine A just for that one
address - IIRC, virtual tables take precedence over everything else...as
well as handling virtual domains, they are also a way of having
fully-qualified aliases.

e.g. in /etc/postfix/virtual

        

and in /etc/aliases:

test: "|/usr/local/bin/test"

craig

-- 
craig sanders <>
Fabricati Diem, PVNC.
 -- motto of the Ankh-Morpork City Watch
-
To unsubscribe, send mail to  with content
(not subject): unsubscribe postfix-users







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD