Re: Re[2]: [vchkpw] Spam Protection with vpopmail and qmail
Joseph Young Involved.com System Admin I use qmailadmin-1.0.21. I used --enable-modify-spam=Y and left --enable-spam-command as the default. The default being '|preline /usr/local/bin/maildrop /etc/mailfilter' The mailfilter script is shown below. This a cut down verision of the script that has been posted before except it does not have the code to send the email throught spamassassin. ## #mailfilter ## import EXT import HOST import HOME SPAMBOX=.JunkMail VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED] if ((/^X-Spam-Flag:.*YES/)) { `test -d $VHOME/Maildir/.JunkMail` if( $RETURNCODE == 1 ) { `maildirmake $VHOME/Maildir/.JunkMail;chown -R vpopmail.vchkpw $VHOME/Maildir/.JunkMail` `echo INBOX.JunkMail $VHOME/Maildir/courierimapsubscribed` } to $VHOME/Maildir/.JunkMail/ } to $VHOME/Maildir/ END If you want a to have a personal mailfilter for certian clients, add this `test -d $VHOME/mailfilter` if( $RETURNCODE == 1 ) { include $VHOME/mailfilter exit } joe - Original Message - From: Lucas ValdeĆ³n [EMAIL PROTECTED] To: Joe Young [EMAIL PROTECTED] Sent: Thursday, June 26, 2003 5:05 PM Subject: Re[2]: [vchkpw] Spam Protection with vpopmail and qmail Hi Joe, Please, post it :) Thank you JY I have been running SA and qmail-scanner on separate server that routes the JY email to server. On the server,I am using the latest development qmailadmin. JY It have spam options included it at the user level. It pipes the email JY through a maildrop filter script into a IMAP folder. If you would like a JY copy of my script, I will post it. JY joe JY - Original Message - JY From: Tom Collins [EMAIL PROTECTED] JY To: vpopmail list [EMAIL PROTECTED] JY Sent: Thursday, June 26, 2003 3:04 PM JY Subject: Re: [vchkpw] Spam Protection with vpopmail and qmail JY On Thursday, June 26, 2003, at 01:23 PM, Jeff Garvas wrote: I highly suggest installing qmail-scanner and reading the howto for using spam assassin with it. JY I don't like the overhead of qmail-scanner, so I'm just using JY qmail-spamc as a replacement for qmail-queue. Take a look at the qmail JY directory of SpamAssassin for the source to qmail-spamc and JY instructions on how to use it. JY -- JY Tom Collins JY [EMAIL PROTECTED]
Re: [vchkpw] Spam Protection with vpopmail and qmail
Joseph Young Involved.com System Admin I have been running SA and qmail-scanner on separate server that routes the email to server. On the server,I am using the latest development qmailadmin. It have spam options included it at the user level. It pipes the email through a maildrop filter script into a IMAP folder. If you would like a copy of my script, I will post it. joe - Original Message - From: Tom Collins [EMAIL PROTECTED] To: vpopmail list [EMAIL PROTECTED] Sent: Thursday, June 26, 2003 3:04 PM Subject: Re: [vchkpw] Spam Protection with vpopmail and qmail On Thursday, June 26, 2003, at 01:23 PM, Jeff Garvas wrote: I highly suggest installing qmail-scanner and reading the howto for using spam assassin with it. I don't like the overhead of qmail-scanner, so I'm just using qmail-spamc as a replacement for qmail-queue. Take a look at the qmail directory of SpamAssassin for the source to qmail-spamc and instructions on how to use it. -- Tom Collins [EMAIL PROTECTED]
Re: Re[4]: [vchkpw] SpamAssassin/vmodinfo changes
Joseph Young Involved.com System Admin I have spamassassin running through qmail-scanner. So when the email gets to vpopmail, it was scanned. I originally thought to modify the qmailadmin. But I found that I could use the white_to field in SA and dynamically change it through mySQL. Then all that I would need to do use maildrop within .qmail-default. The maildrop would detect the SPAM header and move the spam into the user's spam directory. However, the email still gets markup with spam code. Question- if I make a user whitelisted does the bayes_autolearn learn that the spam email is good. If this is so, I am back at modifing qmailadmin. joe - Original Message - From: Jeff Garvas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 6:43 AM Subject: RE: Re[4]: [vchkpw] SpamAssassin/vmodinfo changes Joe, Have you considered writing this out to SQL for SA? I'm not sure of the SA table format off the top of my head, but some people have given up on running SA locally out of .qmail files and run it for every domain and sometimes on a machine well before the system mail is eventually delivered too. Of course, I've given up on enabling/disabling it for individual users and just turn it on (with everything hidden in the headers so it isn't obvious it's even on) for entire domains. You may find more flexibility if you change options in the mysql backend for SA instead of poking changes into .qmail files. Just my personal opinion. -jeff -Original Message- From: Joe Young [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 8:23 PM To: [EMAIL PROTECTED] Subject: Re: Re[4]: [vchkpw] SpamAssassin/vmodinfo changes Joseph Young Involved.com System Admin I am working on a patch for adding spamassassin into the QmailAdmin. I have beginner's experience at C++ and have some of the work done. It is difficult to say where I am at in the process. The patch is still beta and works for only qmailadmin-1.0.7.01132003. If anyone is interested in helping get the patch finished or working for another version, goto http://naos.involved.com/ I have qmailadmin to show a check box that is checked if there is the line,enable_spamassassin, to .qmailadmin-limits. So the next step is to have in user.c to add the line,|/var/qmail/bin/preline /usr/local/bin/maildrop /home/vpopmail/etc/mailfilter, in the user's .qmail when it when user selects it. I need help in writing the code to modusergo() in user.c to check .qmail and to write to .qmail. I have set up a anonymous cvs server for this project. cvs -d :pserver:[EMAIL PROTECTED]:/home/cvsroot login Use password: cvs cvs -d :pserver:[EMAIL PROTECTED]:/home/cvsroot checkout qmailadminspam joe - Original Message - From: Dave Weiner [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 07, 2003 1:45 PM Subject: Re: Re[4]: [vchkpw] SpamAssassin/vmodinfo changes Gabriel Ambuehl wrote: -BEGIN PGP SIGNED MESSAGE- Hello Dave, Hi Gabriel. No need to CC me, I get the list email just as fast :) Friday, March 7, 2003, 9:09:17 PM, you wrote: The lack of being able to turn it off per user is probably the only thing that holds me back from using it :) I suppose adding a new field into vpasswd is a nono as it would break a lot of existing code, right? So the flagfile is probably the best idea (easy to implement, too). Thoughts? Yes, I think some sort of dotfile would be the best. Then any number of tools could use it. Suggestion, for those of us that use sql user prefs. If the dotfile is present but empty, just make the connection to spamc/spamd, assuming that vpopmail support in spamassassin is being used. If there's text in the dotfile, use that for the -u option Best regards, Gabriel Dave
[vchkpw] Spam Assassin implementation
I have spamassassin running in the user's .qmail. It looks like this... | /var/qmail/bin/preline /usr/local/bin/maildrop /home/vpopmail/etc/mailfilter And the mailfilter script looking like this... ## #mailfilter ## import EXT import HOST import HOME VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED] VPOP=| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox if ($SIZE 262144) { xfilter /usr/bin/spamc -u [EMAIL PROTECTED] } if ((/^X-Spam-Flag:.*YES/)) { `test -d $VHOME/Maildir/.JunkMail` if( $RETURNCODE == 1 ) { `maildirmake $VHOME/Maildir/.JunkMail;chown -R vpopmail.vchkpw $VHOME/Maildir/.JunkMail` } to $VHOME/Maildir/.JunkMail/ } to $VHOME/Maildir/ - Original Message - From: Cory Wright [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 8:22 AM Subject: Re: [vchkpw] Spam Assassin implementation On Wed, Mar 19, 2003 at 11:14:53AM -0500, John McGivern wrote: Basically I have spam assassin installed and I have a .qmail-default in every domain folder on my server. It looks like this: | /var/qmail/bin/preline -d /var/qmail/bin/bouncesaying [message to bounce back if not SPAM] | /home/vpopmail/bin/vdelivermail ' ' bounce-no-mailbox Where exactly are you calling SpamAssassin? Cory -- Cory Wright Stand Blue Technology http://www.standblue.net/
Re: [vchkpw] Spam Assassin implementation
Opps, the spamassassin stuff should be on one line | /var/qmail/bin/preline /usr/local/bin/maildrop /home/vpopmail/etc/mailfilter - Original Message - From: Joe Young [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 20, 2003 8:50 AM Subject: [vchkpw] Spam Assassin implementation I have spamassassin running in the user's .qmail. It looks like this... | /var/qmail/bin/preline /usr/local/bin/maildrop /home/vpopmail/etc/mailfilter And the mailfilter script looking like this... ## #mailfilter ## import EXT import HOST import HOME VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED] VPOP=| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox if ($SIZE 262144) { xfilter /usr/bin/spamc -u [EMAIL PROTECTED] } if ((/^X-Spam-Flag:.*YES/)) { `test -d $VHOME/Maildir/.JunkMail` if( $RETURNCODE == 1 ) { `maildirmake $VHOME/Maildir/.JunkMail;chown -R vpopmail.vchkpw $VHOME/Maildir/.JunkMail` } to $VHOME/Maildir/.JunkMail/ } to $VHOME/Maildir/ - Original Message - From: Cory Wright [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 8:22 AM Subject: Re: [vchkpw] Spam Assassin implementation On Wed, Mar 19, 2003 at 11:14:53AM -0500, John McGivern wrote: Basically I have spam assassin installed and I have a .qmail-default in every domain folder on my server. It looks like this: | /var/qmail/bin/preline -d /var/qmail/bin/bouncesaying [message to bounce back if not SPAM] | /home/vpopmail/bin/vdelivermail ' ' bounce-no-mailbox Where exactly are you calling SpamAssassin? Cory -- Cory Wright Stand Blue Technology http://www.standblue.net/