On Wed, Aug 19, 2015 at 10:49:35AM -0500, Paul Schmehl wrote:

> After reinstalling, I had problems with policyd-weight.  I was seeing these
> errors in the logs:
> 
> postfix/policyd-weight[17306]: warning: child: err: Undefined subroutine
> &Net::DNS::Packet::dn_expand called at /u
> sr/local/bin/policyd-weight line 3589, <GEN39> line 26.

You don't have Perl's Net::DNS, or you have an incompatible version.
install a compatible Net::DNS, or an updated policyd-weight or both.

> 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?!?

> # 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.

> 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.

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

> smtpd     pass  -       -       n       -       -       smtpd
>   -o content_filter=filter:dummyr

Which is definitely needed.

> I am lost and frustrated.  I went from a working install to a broken
> install.  Any help spotting problems would be appreciated.

Post full log entries, not what you consider to be a sufficient
summary.

-- 
        Viktor.

Reply via email to