Hi everyone,

Excuse me for posting an off topic issue I had today. I solved it but it
took me long enough, and as it turns out the cause was so silly. Don't
you hate it when that happens?

I'll try to keep it short.

My Postfix daemon kept having three emails in its queue and it would
just not let them go. But they did end up in my mailbox. It confused me
to no end, that's for sure.

At first the command output from maildrop said there was a quota issue.
So I turned off quota. But even then problem persisted, this time
postfix did not even tell me what maildrop's reason was. Just "temporary
failure."

I'll skip the boring part, eventually I finally nailed it down.

I used to have something like the following in my mailfilter:

if ( "$DEFAULT" ne "" )
{
  <snip>
}
else
{
  EXITCODE=75
}


But yesterday I added comments, one of them looking as follows:

if ( "$DEFAULT" ne "" )
{
  <snip>
}
else
# $DEFAULT is empty, we can't deliver this
{
  EXITCODE=75
}


Turns out putting the comment exactly there was a bad idea: it caused
maildrop to deliver but still exit with return code 75. When I moved the
comment to be inside of the curly brackets the problem disappeared.

That were 3 hours I'll never get back. Ok, I'll be honest, I didn't
*immediately* turn quota off..

So: if you want to add comments to a maildrop filter, be sure to never
do it in the way above.

I just had to share it. After all, who knows, someone else might run
into this same issue. :)


Mark

Reply via email to