From racuk12 at gmail.com Sun May 10 13:34:25 2015 From: racuk12 at gmail.com (Robert Chalmers) Date: Sun, 10 May 2015 12:34:25 +0100 Subject: [Spambayes] How Can I config Spambayes to work with Dovecot Virtual mail boxes...? Message-ID: I have Postfix+Dovecot+MySql running on a MAC OS X 10.10.3 and mail is delivered on the server fine. I did have a different setup originally with Spambayes as the spam filter, but changed it and now can't figure out how to reconfigure spambayes? I hope I am being clear enough here... The old configuration says the mail box as the standard Unix mail --------------------- robert$ pwd /Users/robert/Mail and in the directory, the various files, including ... drwx------ 7 robert staff 238 15 Oct 2014 .Spam.NotSpam drwx------ 7 robert staff 238 15 Oct 2014 .Spam.SpamSamples and /var/mail -------------- This configuration allowed for virtual web sites hosted to have mail facilities, but each user had to have a physical user/login on the system. A bit of a pain at times when they didn't actually use it. and mail was delivered to the system as well las the users virtual mailbox. I changed the set up to address this by setting up Virtual users, and manage it via the MySql Virtual users options. This allows me to have multiple username, or mail addresses as it were, for any given domain. See the example below for chalmers.com.au BUT... this is my problem now, in relation to Spambayes. The mail box set up now looks like this, ............... extract from Dovecot.conf ......... #mail_location = maildir:~/Mail/Dovecot <---- old setups #mail_location = mbox:-~/mail:INBOX=/var/mail/%u <---- old setups mail_location = maildir:/var/mail/vhosts/%d/%n <---- new setup -------------------------------------------- which produces mail boxes like this. ( cd /var/mail ) <--- original, now not used ... Now.... /var/mail/vhosts with for example... cd to /var/mail/vhosts/chalmers.com.au ls -l drwx------ 15 vmail vmail 510 9 May 17:18 postmaster drwxr-xr-x 20 vmail vmail 680 10 May 11:57 robert If I look in the directory for "robert" - I see all the dovecot mail related files, but no spam. not.spam folders. hmmm, maybe I have to set the user to vmail:vmail? So you can see that there are two users of the chalmers.com.au domain listed here. Phew ..... now, the spambayes, or should I say procmailrc configuration to check the mail boxes is looking like this... ............................ UMASK=007 SHELL=/bin/sh #LOGFILE=$HOME/procmail.log #VERBOSE=on #MAILDIR=$HOME/Mail/Dovecot <- old setup MAILDIR=/var/mail/vhosts/%d/%n <- new set up .... but doesn't work ... I don't think. SPAMBAYESDIR=/usr/local/spambayes DELIVER="/usr/local/dovecot/libexec/dovecot/deliver -c /usr/local/dovecot/etc/dovecot.conf" INCLUDERC=$SPAMBAYESDIR/etc/rc.custom1 nothing else changed below this... spambayesrc unchanged. If anyone has solved this problem, could you please point me in the right direction? I am reading mail on the Mac mail server with MailMate fine, and mail is being delivered to the right people, but I'd like to be able to include Spambayes back in the mix if I can? If it can't be done, well I guess I'll have to abandon it. Thanks Robert From skip.montanaro at gmail.com Thu May 21 03:40:46 2015 From: skip.montanaro at gmail.com (Skip Montanaro) Date: Wed, 20 May 2015 20:40:46 -0500 Subject: [Spambayes] X-Spambayes-Exception In-Reply-To: References: <5526B8C0.90307@BriannasSaladDressing.com> <552BCDC4.30205@BriannasSaladDressing.com> <552BDBC9.6070007@BriannasSaladDressing.com> Message-ID: On Mon, Apr 13, 2015 at 10:19 AM, Skip Montanaro wrote: > On Mon, Apr 13, 2015 at 10:07 AM, Dale Schroeder > wrote: > > This looks like the malformed html reference: > > > href="http://[ > http://www.buneisme.science/unsQE1234UU101MJ/104M361HX808HL34B1914045OQ1123604291 > ]">Update > > preferences
> > Yeah, I can see where urlparse.urlparse might misinterpret that as > IPv6. I don't have ready access to the source here at work, but will > try to check things out from home later. Sorry it took so long to take care of. I released a new version (Unix only) 1.1b2 which appears to fix the problem. Please install it and give it a try. Skip -------------- next part -------------- An HTML attachment was scrubbed... URL: From dale at BriannasSaladDressing.com Fri May 22 17:28:27 2015 From: dale at BriannasSaladDressing.com (Dale Schroeder) Date: Fri, 22 May 2015 10:28:27 -0500 Subject: [Spambayes] X-Spambayes-Exception In-Reply-To: References: <5526B8C0.90307@BriannasSaladDressing.com> <552BCDC4.30205@BriannasSaladDressing.com> <552BDBC9.6070007@BriannasSaladDressing.com> Message-ID: <555F4B1B.3050000@BriannasSaladDressing.com> On 05/20/2015 8:40 PM, Skip Montanaro wrote: > > On Mon, Apr 13, 2015 at 10:19 AM, Skip Montanaro > > wrote: > > On Mon, Apr 13, 2015 at 10:07 AM, Dale Schroeder > > wrote: > > This looks like the malformed html reference: > > > > href="http://[http://www.buneisme.science/unsQE1234UU101MJ/104M361HX808HL34B1914045OQ1123604291]">Update > > preferences
> > Yeah, I can see where urlparse.urlparse might misinterpret that as > IPv6. I don't have ready access to the source here at work, but will > try to check things out from home later. > > > Sorry it took so long to take care of. I released a new version (Unix > only) 1.1b2 which appears to fix the problem. Please install it and > give it a try. > > Skip > I installed the new version, and it works well. The first of these emails to try to come in received a spam classicfication score of 88.10. It was definitely worth waiting for. The most difficult part was figuring out where you had uploaded the file. So, for anyone else needing this fix, the link to the archive can be found here: https://pypi.python.org/pypi/spambayes/1.1b2/ Thanks a lot, Skip. Dale -------------- next part -------------- An HTML attachment was scrubbed... URL: