| |||||||||||||||||||||||||||||||
|
> On Mon, May 28, 2007 at 05:38:51PM -0400, Wietse Venema wrote: > > > /etc/postfix/master.cf: > > example-notify unix - n n - - pipe > > flags=q user=nobody argv=/some/where/example-notify $sender $user > > > > This invokes a script called /some/where/example-notify with as > > arguments the envelope sender and the username. the script then > > pipes a message into /usr/sbin/sendmail. Writing the script is an > > exercise for the reader. > > > > See also: virtual(5), transport(5), pipe(8). > > > > Caution: $sender and $user my contain hostile information. Take > > all the usual countermeasures to prevent command injection. > > For example, this is risky: > > > > open(MAIL, "|/usr/sbin/sendmail $sender") || die "can't run sendmail: $!\n"; > > > > In addition to security concerns, auto-responders need to handle RFC > 3834 recommendations and avoid responding to lists, auto-responses, > legacy "Precedence: bulk", ... > > A decent auto-responder requires a good deal of care, try to re-use > code from a known-correct version. If someone could post a working solution based on vacation or whatever, instead making vague suggestions that don't help anyone, then we might actually be able to put something into the Postfix docs and make progress. Note that this tool sends to the list administrative address not the list distribution address. The casual reader might confuse this with an out-of-office application, but it's not. Wietse
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com