> > > As described in vacation.pl's INSTALL.TXT file set up a
> > virtual_alias_maps
> > > (NOT: virtual_alias_domains) entry such that e.g. mail to bi...@goat.com
> > > will be delivered to
> > >     bi...@goat.com AND
> > >     billy#goat....@autoreply.goat.com
> > >
> > > I.e. a virtual alias mapping
> > >
> > >     bi...@goat.com -> bi...@goat.com, billy#goat....@autoreply.goat.com
> > >
> > > and follow instructions to deliver billy#goat....@autoreply.goat.com
> > > to the vacation.pl script.
> > >
> > I'm having trouble getting mail delivered properly in a mail relay setup.
> > There are two issues here. The first issue is the way the addresses are
> > translated during an alias expansion when the vacation.pl is executed. The
> > second is that the helo checks are not waived for those within
> > 'mynetwork'.
> > 
> > Here is an error message from the Exchange server receiving the original
> > message that is being forwarded by the vacation.pl script:
>
> Forward the message TO the vacation.pl script. Do not forward it FROM
> the vacation.pl script. The vacation.pl script is the final destination
> for billy#goat.comautoreply.goat.com.

I had thought that's what the /usr/local/etc/postfix/virtual file does. Allow 
me to say what I think is the process out loud here.

The main.cf contains:
     virtual_alias_maps = hash:/usr/local/etc/postfix/virtual

It expands any matching entry to any specified address(es) as in the following 
example, no?
     webmas...@example1.com             webmas...@example1.com, 
webmaster#example1....@autoreply.example1.com

The original message is then delivered to the first address 
(webmas...@example1.com) and an exact copy is sent to 
webmaster#example1....@example1.com. The inbound Postfix mechanism upon 
receiving these two messages checks its transport table as follows:
     example1.com             192.168.xx1.33
     autoreply.example1.com     vacation:       

and delivers the first message to 192.168.xx1.33 and the second message to the 
vacation script as defined in master.cf:
     vacation  unix  -       n       n       -       -       pipe
       flags=Rq user=vacation argv=/var/spool/vacation/auto-reply.pl -f 
${sender} -- ${recipient}

The vacation script then executes by sending an autoreply message back to the 
original sender.

Is my understanding correct?

~Doug

Reply via email to