[postfix-users] Re: pipe unable to parse dash flags in argv

Peter C. Lai sirmoo at cowbert.net
Thu Sep 30 12:36:10 PDT 2004


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 at 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/



More information about the freebsd-ports mailing list