[postfix-users] Re: pipe unable to parse dash flags in argv
(resolved)
Peter C. Lai
sirmoo at cowbert.net
Thu Sep 30 18:29:27 PDT 2004
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/
More information about the freebsd-ports
mailing list