Re: Sporadically deferred mail, followed by 456 Address temporarily unavailable
Sam Varshavchik <[email protected]>
| Newsgroups | gmane.mail.imap.courier.general |
|---|---|
| Message-ID | <[email protected]> |
Norbert Harrer writes: > The problem happened again, and thanks to your tip to check the queue > status file, I found out it was caused by a troublesome maildrop > .mailfilter file. I fixed it, and everything's fine now. > > But I've got two questions: > > 1. There was no sign of the maildrop error in the log files. How can I > make maildrop errors show up in /var/log/mail.log? When I run maildrop > manually from the command line with: courierlogger sends standard output and standard error to syslog, so it should be logged. You should be able to set up a test address with a .courier file that echoes something to standard error and then return a non-zero exit code. You should be able to see it in your syslog. Only courierlogger sends anything to syslog. All courier processes send output to their standard output and error which is piped to courierlogger, which logs it. If you're seeing anything at all, in syslog, you should be able to see anything that's emitted to standard error. Certain prefixes do cause each individual syslog message to be logged at a different level, such as debug, info, or error. Perhaps your syslog configuration is dropping certain classes of messages. > 2. How can I recover/reset the stuck mailbox in the 456 state. I tried: > > * cancelmsg the message in the queue. > * courier flush > * courier clear all > * courier clear <mailaddress> > * restarted courier > > None of these worked, and it took some time for the mailbox to start > accepting emails again on its own. courier clear does not immediately redeliver any held mail. It just clears the error message, and then the subsequent deliveries, when they happen, will proceed. So the sequence of events should be courier clear, then courier flush. Note that with large mail queues courier flush may only flush a subset of pending messages, at once. _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRupkKLJP96aW75pIOKYPgoojZS4gUCZTQsogAKCRCKYPgoojZS 4roRAQCY1yRunRy22L5MfVAvun/RHmLZ+XUMAX2nBXibTCgoswEA24WYiBoY0N37 6k7ZPWpuR5ldMxMlGiTwJt1bxtj3iAI= =oe/2 -----END PGP SIGNATURE-----