Doug Sampson: > > > Hello list- > > > > > > Our Postfix instance is set up as a relay for our Exchange server. > > > It utilizes anti-spam and anti-viruses measures such as postscreen, > > > clamav, and sanesecurity sigs. We want to send out an autoreply > > > for each incoming email addressed to a specific email address > > > listed in the relay_recipient table. I've located an appropriate > > > vacation.pl script at > > > > > https://github.com/valkum/postfixadmin/blob/cdcccddbe2e1d6758cd63899e7b897 > > 3156f1412a/VIRTUAL_VACATION/vacation.pl > > > which could be modified for our situation (no need to reinvent the > > > wheel). > > > > > > I'm looking for a trigger that will fire off an autoreply message > > > when it has detected an incoming email that is addressed to a > > > specific email address in the relay_recipient table. > > > > > > Every autoreply posting I've seen on the Internet deals with local > > > users using virtual addresses. But I am unable to find any information > > > on how I can do this in a relay configuration. I looked at milters > > > and unfortunately I cannot seem to identify one that would work > > > in our case. PostfixAdmin seems to be overkill for a mail relay. > > > > 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....@autoreply.goat.com. Wietse