Date: Thu, 30 Sep 2004 15:36:09 -0400 From: "Peter C. Lai" <sirmoo@cowbert.net> To: ports@freebsd.org Subject: [postfix-users] Re: pipe unable to parse dash flags in argv Message-ID: <20040930193609.GQ243@cowbert.net>
next in thread | raw e-mail | index | archive | help
On Thu, Sep 30, 2004 at 08:20:40AM -0400, Wietse Venema wrote: > Peter C. Lai: > > Hi. > > I am trying to get postfix to filter via content_filter in master.cf: > > > > smtp inet n - n - - smtpd -o content_filter=foo > > foo unix - n n - - pipe > > flags= user=nobody argv=/usr/sbin/sendmail -oi -f ${sender} ${recipient} > > > > (this is for testing the filter). It should just pipe it to sendmail for > > reinjection and delivery. > > > > However, it appears that it cannot pass '-oi' or '-f' to sendmail properly, > > and pipe will exit 1 with: > > Sep 30 04:50:43 spongebob postfix/pipe[43060]: fatal: invalid option: ? > > > > There is no way to get it to associate the dash flags to sendmail and > > not pipe. (with quotes). escaping the dash just make sendmail think it's > > part of the $sender. > > > > This is on freebsd4.10; postfix was installed from ports with all defaults. > > You have linked Postfix with a brain dagaged GNU GETOPT routine. > > Don't do that. Postfix requires that you use the system getopt > routine. is this an option for configure? or something? how do i fix this? cc'd to ports@freebsd > > Wietse -- Peter C. Lai University of Connecticut Dept. of Molecular and Cell Biology Yale University School of Medicine SenseLab | Research Assistant http://cowbert.2y.net/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040930193609.GQ243>