Date: Thu, 30 Sep 2004 21:29:25 -0400 From: "Peter C. Lai" <sirmoo@cowbert.net> To: Wietse Venema <wietse@porcupine.org> Cc: postfix-users@postfix.org Subject: [postfix-users] Re: pipe unable to parse dash flags in argv (resolved) Message-ID: <20041001012925.GY243@cowbert.net> In-Reply-To: <20040930122040.B0D13BC1BA@spike.porcupine.org> References: <20040930101439.GE243@cowbert.net> <20040930122040.B0D13BC1BA@spike.porcupine.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Resolved now. (had to dig in the mailing list archives for the solution (built with -DPREPEND_PLUS_TO_OPTSTRING). Would the port maintainer please add this to postfix/Makefile: detect for libgnugetopt (libgnugetopt.so) installed, and if detected: add -DPREPEND_PLUS_TO_OPTSTRING to POSTFIX_CCFLAGS. I would add a diff for the Makefile, but I am too lazy to go grok the syntax for make. Thanks! 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. > > 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?20041001012925.GY243>