On Wed, Aug 19, 2015 at 11:42:36AM -0500, Paul Schmehl wrote:

> >>This morning I got up and checked on the server, and the queue was filled
> >>up.  I'm seeing transport errors in the logs:  status=deferred (mail
> >>transport unavailable)
> >
> >WHICH TRANSPORT!!!  Why are you "summarizing" the log message?!?
> >
> I didn't think I was.  That was the entire log message.  That's why I'm
> confused.  I don't even know where to start.
> 
> Aug 19 16:39:13 mail postfix/qmgr[35355]: warning: connect to transport
> private/filter: No such file or directory

Well, with the complete log entry (provided in *this* message), we
see that the "filter" transport is the one that's missing.

> >># cat master.cf | grep -v '#'
> >>smtps    inet  n       -       n       -       -       smtpd
> >> -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
> >
> >You should have more overrides above, to only accept mail from
> >authenticated users, and otherwise apply fewer restrictions.
> >
> 
> I'm not sure what you mean here.

The port 465 wrapper-mode service is for mail submission, and so
should allow only authenticated users, and let them send outbound
mail.  Or perhaps you don't need it at all, if you don't know
what it is for.


> >>bsmtp     unix  -       n       n       -       -       pipe
> >> flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop
> >>$recipient
> >> flags=Rq user=filter argv=/usr/local/bin/filter.sh -f ${sender} --
> >>${recipient}
> >
> >Something is mangled above, looks like a line is missing, that
> >startst the definition of the "filter" transport.
> 
> That's because the line about it was commented out and that one was
> indented.  I have now commented it out as well.

No, that line is needed.  Because you've configured Postfix to
use the "filter" transport.

> >    filter     unix  -       n       n       -       -       pipe
> >      flags=Rq user=filter
> >      argv=/usr/local/bin/filter.sh -f ${sender} -- ${recipient}

Why would you proceed to fully comment it out, when informed to do
the opposite?

> >>smtpd     pass  -       -       n       -       -       smtpd
> >>  -o content_filter=filter:dummyr
> >
> >Which is definitely needed.

You need a "filter" transport, or else remove the content_filter
setting, and re-queue all the mail via "postsuper -r ALL".

Do you want that "filter.sh" script to scan all inbound mail or not?

-- 
        Viktor.

Reply via email to