Re: Insufficient permission

Sam Varshavchik <[email protected]> Mon, 05 Jun 2017 12:16:52 -0400
Newsgroups gmane.mail.maildrop
Message-ID <[email protected]>
Davide Davini writes:

> 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 -  
> <URL:https://www.trebigen.com/sendmail_mlhhyo5598ba6unz/sendmail.php? 
> email=$2&amp;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.
>  
> Logs:
> Jun  5 14:07:45 odino sm-mta[54920]: v55C7jjq054920:  
> from=<URL:mailto:[email protected]><[email protected]>, size=122865,  
> class=0, nrcpts=1, msgid=<URL:mailto: 
> [email protected]><[email protected] 
> 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
> 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.


"Insufficient permission" is the error message from your mail server, that's  
how it interprets the EX_TEMPFAIL exit code from maildrop.

You will need to look at maildrop's own generated logs to identify the  
original cause of the delivery failure.

------------------------------------------------------------------------------
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
signature.asc (application/pgp-signature, 801 B)
-----BEGIN PGP SIGNATURE-----

iQIcBAABAgAGBQJZNYP0AAoJEGs6Yr4nnb8l83IP/iOtwpNs9DVTMdLBQt4lgwP1
A9LjuWRKy0DrT/cWa7votSvHWeo8oW9+qQEKLwapf7Nu27bdXTMS/AyYPGi+UUyA
NSXBuSFrlCuXNv/98uN0N4UgLvVHy0LMFv5LLYWv5WqeWgDuWhGIatUZqh4X8TSr
oUhJdIIkPq/hthtX5jW/fD6PS7uZvxBCVS1uDybwa6OkrgDSZseRhvBj+tJ5C8hz
maKfzjp7Sz1bE5UtnBXfWNxMtRIt2xU+/gzFIqRe8czArMd5m78t1kB++aecp/kK
TeGhNJ6EI13qMH3m4Po08XdNd2skMi97v5Ip55WOdGEz/82uuizLN0epCzPcJnmr
hLbIjSMOqLGNlhh5J/T5+rsDQjmCeUugHjQA5G4rxqq9c0j5nHL5SDWP5D4jrA03
aWKijuw9EvWkwgIAyeJmX4ztAx4nmcoWe3r1LNAtVZZWsMGvopG2pJYHdgfqnOGf
e9wOD4HpfxBCw5HVJNXGsJsQ4OXJaQm4bE/ASB+TuzHBnLluuhZklkl/ltMauItv
SxlsJjy3aRJE1AnvGxv/9T/ol9heIFMzOfWg65YIZWaoahgTV7iqAuoy+XUZgSCu
zhWBuvnzrapTk6FaoSxE/Gk4Uoo079EaCQAU8Gn2JTQlqjF6nB3rCzdEWOPz8tkT
2r8dbH0ubnaI6V/vnwk1
=ZMsu
-----END PGP SIGNATURE-----