Insufficient permission

Davide Davini <[email protected]> Mon, 5 Jun 2017 17:58:22 +0200
Newsgroups gmane.mail.maildrop
Message-ID <[email protected]>
Hi,

I need some help to figure out this. I'm running a dovecot 2.2.29
server on FreeBSD 10.3-RELEASE-p17 and I'm using sendmail from
system as the MTA.

This is how a call maildrop from sendmail:

FEATURE(`local_procmail', `/usr/local/bin/maildrop_wrapper',
`maildrop_wrapper -d $u')dnl

maildrop_wrapper:

#!/usr/local/bin/bash

filename="maildrop_wrapper.log"

/usr/local/bin/maildrop $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 2>>
/var/log/$filename >> /var/log/$filename

errors=$?

if [[ "$errors" != "0" ]]; then

       hour=`date "+%H:%M:%S"`

       echo $hour $errors $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 >>
/var/log/$filename

else

       fetch fetch --ca-cert=/usr/local/etc/certs/trebi_ca.pem -T
15 -o -
"https://www.trebigen.com/sendmail_mlhhyo5598ba6unz/sendmail.php?email=$2&user=$4"
2>> /dev/null >> /dev/null

fi

exit $errors

This is my problem: when a user reaches quota limit I park their
incoming email in sendmail queue. Everything was working fine until
recently. Now the emails stay parked for a while and then at some
point hell breaks loose and I get "Insufficient permission" and the
emails bounce back.

Â

Logs:

Jun 5 14:07:45 odino sm-mta[54920]: v55C7jjq054920:
from=<[email protected]> , size=122865, class=0,
nrcpts=1, msgid=<[email protected]> ,
proto=ESMTPS, daemon=IPv4, relay=mx0.trebigen.com [10.99.99.99]

Jun 5 14:09:45 odino sm-mta[54923]: v55C7jjq054920: timeout
waiting for input from local during Draining Input

Jun 5 14:12:45 odino sm-mta[54923]: v55C7jjq054920:
to=davide, delay=00:05:00, xdelay=00:05:00, mailer=local,
pri=153174, dsn=4.0.0, stat=Deferred: local mailer
(/usr/local/bin/maildrop_wrapper) exited with EX_TEMPFAIL

Jun 5 14:21:48 odino sm-mta[59390]: v55C7jjq054920: timeout
waiting for input from local during Draining Input

Jun 5 14:24:48 odino sm-mta[59390]: v55C7jjq054920:
to=davide, delay=00:17:03, xdelay=00:05:01, mailer=local,
pri=243174, dsn=4.0.0, stat=Deferred: local mailer
(/usr/local/bin/maildrop_wrapper) exited with EX_TEMPFAIL

Jun 5 15:01:48 odino sm-mta[84763]: v55C7jjq054920: timeout
waiting for input from local during Draining Input

Jun 5 15:04:48 odino sm-mta[84763]: v55C7jjq054920:
to=davide, delay=00:57:03, xdelay=00:05:00, mailer=local,
pri=333174, dsn=4.0.0, stat=Deferred: local mailer
(/usr/local/bin/maildrop_wrapper) exited with EX_TEMPFAIL

Jun 5 15:14:50 odino sm-mta[9923]: v55C7jjq054920:
to=davide, delay=01:07:05, xdelay=00:00:00, mailer=local,
pri=423174, dsn=5.0.0, stat=Insufficient permission

Jun 5 15:14:50 odino sm-mta[9923]: v55C7jjq054920:
v55DElBQ009923: DSN: Insufficient permission

I really don't know what the problem is. I'd really
appreciate some help.

Ciao,

Davide

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Courier-maildrop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/courier-maildrop