|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Joshua E Warchol (jwarchol
dsl.net)Date: Tue Jun 05 2001 - 10:31:34 CDT
I'm trying to whip up a test script. Right now it just prints the arguments
to a temporary file. When I email user
autoreply.domain I get status=sent in
maillog, and i end up with a process that looks like:
25132 ? S 0:00 pipe -n autoreply -t unix flags=F user=nobody
argv=/usr/local/bin/autoreply.pl ${sender} ${recipient}
It stays like that for a few seconds (maybe 30) and then goes away. No futher
logs, and it does not appear that the script was ever called.
Any ideas?
On Mon, Jun 04, 2001 at 02:45:21PM -0400, Wietse Venema wrote:
> I would set up a duplicate address in the virtual map:
>
> /etc/postfix/virtual:
> user
domain user
domain, user
autoreply.domain
>
> This sends mail for user
domain to the user and to an autoreply
> generator.
>
> Add a transport map entry for autoreply.domain
>
> /etc/postfix/transport:
> autoreply.domain autoreply
>
> Add an autoreply mail delivery agent that runs a little script
> that generates the reply:
>
> /etc/postfix/master.cf:
> autoreply unix - n n - - pipe
> flags=F user=foo argv=/some/where/autoreply $sender $recipient
>
> And finally the necessary main.cf entries to make this work:
>
> /etc/postfix/main.cf:
> autoreply_destination_recipient_limit = 1
> transport_maps = hash:/etc/postfix/transport
> virtual_maps = hash:/etc/postfix/virtual
>
-- Joshua Warchol UNIX Systems Administrator DSL.net- To unsubscribe, send mail to majordomo
postfix.org with content (not subject): unsubscribe postfix-users
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]