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.
FEATURE(`local_procmail', `/usr/local/bin/maildrop_wrapper',
`maildrop_wrapper -d $u')dnl
#!/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 -
<URL:https://www.trebigen.com/sendmail_mlhhyo5598ba6unz/sendmail.php?
email=$2&user=$4>"https://www.trebigen.com/sendmail_mlhhyo5598ba6unz/send
mail.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.
Â
m>, 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
Insufficient permission
I really don't know what the problem is. I'd really appreciate some help.
how it interprets the EX_TEMPFAIL exit code from maildrop.