[EMAIL PROTECTED] wrote:

Rodney M wrote:


Dec 13 12:55:08 gigantic imapd: Connection, ip=[::ffff:127.0.0.1]
Dec 13 12:55:08 gigantic spamc[31970]: connect(AF_INET) to spamd at 127.0.0.1 failed, retrying (#1 of 3): Connection refused
Dec 13 12:55:09 gigantic imapd: LOGIN, [EMAIL PROTECTED], ip=[::ffff:127.0.0.1], protocol=IMAP
Dec 13 12:55:09 gigantic spamc[31970]: connect(AF_INET) to spamd at 127.0.0.1 failed, retrying (#2 of 3): Connection refused
Dec 13 12:55:10 gigantic spamc[31970]: connect(AF_INET) to spamd at 127.0.0.1 failed, retrying (#3 of 3): Connection refused
Dec 13 12:55:11 gigantic spamc[31970]: connection attempt to spamd aborted after 3 retries
Dec 13 12:55:11 gigantic maildrop[31965]: Unable to open mailbox.
Dec 13 12:55:11 gigantic qmail: 1071338111.882389 delivery 1266: deferral: /usr/local/bin/maildrop:_Unable_to_open_mailbox./



For starters, spamd isn't running. The maildrop 'unable to open mailbox' error is probably your mailfilter rules. It's probably trying to dump mail into an invalid path or something similar.


Add this to your maildrop main filter file:

VERBOSE="5"

Then send the message, and watch the maillog. Maildrop should dump very verbose error messages into the maillog.

Thanks for the tip. Over the weekend I finally fixed my problem. For starters, in order to use spamc (instead of spamassassin) you have to have spamd running. I'm starting spamd like so:


spamd -d -a -v -x -u vpopmail -H /home/vpopmail/

For some reason maildrop didn't like my original mailfilter so I used the following that was posted on the qmailadmin list recently:

---start---
import EXT
import HOST
VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]

`test -d $VHOME/Maildir/.Spam`
if( $RETURNCODE = 1 )
{
  `/usr/local/bin/maildirmake -f Spam $VHOME/Maildir`
}

if ( $SIZE < 262144 )
{
  xfilter "/usr/local/bin/spamc -f -u [EMAIL PROTECTED]"
  if (/^X-Spam-Flag: *YES/)
  {
     to $VHOME/Maildir/.Spam
     exit
  }
  else
  {
     to $VHOME/Maildir
     exit
  }
}
else
{
  to $VHOME/Maildir
  exit
}
---finish---

Now it's working great. My next step is trying to figure out how to get spamassassin to setup/read individual user prefs for vpopmail accounts. Has anyone done this successfully?

Rodney




Reply via email to