On 6/20/2013 12:14 AM, Bob Miller wrote:
Hi Ben,
I checked over your script, and I don't see the problem either. You already checked everything that comes to my mind.
Maybe using something like set -e to try and get some output from the script?
Adding the -e switch doesn't seem to produce any output, either.
But I did think to try echo-ing $? after calling dovecot-lda, which dumps the program's exit status code. The code is 75, which, according to the manual at http://wiki.dovecot.org/LDA , means the following:
75 (EX_TEMPFAIL): A temporary failure. This is returned for almost all failures. See the log file for details.
Well, I checked the log files and there's absolutely nothing written when my script is executed and yields exit code 75. (But other failures are indeed written to the same log file, such as when the message can't be delivered due to over-quota.)
As noted earlier in my doveconf -n output, I added explicit log paths for LDA:
protocol lda { mail_plugins = sieve quota log_path = /var/log/dovecot-lda-errors.log info_log_path = /var/log/dovecot-lda.log }
These are the logs that I am checking, which are devoid of messages relating to this script.
Also, nothing is written to /var/log/mail.log.
The only logging that I am able to discern is to /var/log/syslog:
Jun 20 09:59:33 host imap: antispam: mailbox_is_unsure(Junk): 0 Jun 20 09:59:33 host imap: antispam: mailbox_is_trash(INBOX): 0 Jun 20 09:59:33 host imap: antispam: mailbox_is_trash(Junk): 0 Jun 20 09:59:33 host imap: antispam: mail copy: from trash: 0, to trash: 0 Jun 20 09:59:33 host imap: antispam: mailbox_is_spam(INBOX): 0 Jun 20 09:59:33 host imap: antispam: mailbox_is_spam(Junk): 1 Jun 20 09:59:33 host imap: antispam: mailbox_is_unsure(INBOX): 0 Jun 20 09:59:33 host imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 Jun 20 09:59:33 host imap: antispam: running mailtrain backend program /usr/bin/sa-learn-pipe.sh Jun 20 09:59:33 host imap: antispam: running mailtrain backend program /usr/bin/sa-learn-pipe.sh Jun 20 09:59:33 host imap: antispam: running mailtrain backend program parameter 1 --debug Jun 20 09:59:33 host imap: antispam: running mailtrain backend program parameter 2 --username=amavis Jun 20 09:59:33 host imap: antispam: running mailtrain backend program parameter 3 --spam
I'm not sure what to try next...
Thanks for the help,
-Ben