View previous topic :: View next topic |
Author |
Message |
troopern Tux's lil' helper
Joined: 23 Sep 2002 Posts: 96 Location: Sweden
|
Posted: Mon Sep 08, 2003 2:15 pm Post subject: Spamassassin + SQL Mail accounts |
|
|
I have a problem with getting Spamassassin to scan my Virtual Mail accounts.
I have followed the VMAIL howto in gentoo.org/docs/
Current config is: Postfix, MySQL, mikrop, SpamAssassin.
mikrop and SpamAssassin only works on local accounts, not on virtual, anybody got an Idea on how I can solve this ?
I've searched this forum and google for a while but didn't fint anything that could help me. _________________ //troopern
-
"It seems like once people grow up, they have no idea what's cool.-- Calvin" |
|
Back to top |
|
|
NickDaFish Tux's lil' helper
Joined: 12 Sep 2002 Posts: 112 Location: Boston, USA
|
Posted: Tue Sep 09, 2003 5:10 pm Post subject: |
|
|
Ha!
You need to do allot of work to get his working as there is no community (that I have found) software for this.
First you have to get SpamAssassin to get it's CFG from SQL. There are a number of FAQs on the spamassassin site for that.
Then you have to make a custom script. I wrote one if python, it checks the To: address against a SQL table and extracts a virtual username for that address. It then submits the mail to spamd using the user name it just aquired. It's alot of messing around with SQL and postfix filters/transports. If you need any pointers...... |
|
Back to top |
|
|
troopern Tux's lil' helper
Joined: 23 Sep 2002 Posts: 96 Location: Sweden
|
Posted: Mon Oct 13, 2003 11:11 am Post subject: |
|
|
that would be a nice way to try and see if it works, have you got any tips on how I should build that script ? or can I have a peek at yours ? _________________ //troopern
-
"It seems like once people grow up, they have no idea what's cool.-- Calvin" |
|
Back to top |
|
|
Dr_Stein Guru
Joined: 21 Mar 2003 Posts: 303 Location: Mountain View, CA
|
Posted: Thu Jan 22, 2004 1:09 am Post subject: |
|
|
NickDaFish wrote: | Ha!
You need to do allot of work to get his working as there is no community (that I have found) software for this.
First you have to get SpamAssassin to get it's CFG from SQL. There are a number of FAQs on the spamassassin site for that.
Then you have to make a custom script. I wrote one if python, it checks the To: address against a SQL table and extracts a virtual username for that address. It then submits the mail to spamd using the user name it just aquired. It's alot of messing around with SQL and postfix filters/transports. If you need any pointers...... |
Yeah, we all need LOTS of help.
Care to pass along the scripts? |
|
Back to top |
|
|
NickDaFish Tux's lil' helper
Joined: 12 Sep 2002 Posts: 112 Location: Boston, USA
|
Posted: Thu Jan 22, 2004 2:04 am Post subject: |
|
|
troopern wrote: | that would be a nice way to try and see if it works, have you got any tips on how I should build that script ? or can I have a peek at yours ? |
Sorry.... I totaly didn't see this post.
Dr_Stein wrote: | Yeah, we all need LOTS of help.
Care to pass along the scripts? |
I considered it when I made the orriginal post. The scripts are over 10k, kinda complicated and do more than was asked for. They really need some docs. They were also going through alot of changes at the time. I'm planning to put together wiki page.... when I get some free time
Untill then if anyone is intrested in the code... pm me your email address and I will send you the most recent version. |
|
Back to top |
|
|
Jaxom Tux's lil' helper
Joined: 31 Jan 2003 Posts: 137
|
|
Back to top |
|
|
Dr_Stein Guru
Joined: 21 Mar 2003 Posts: 303 Location: Mountain View, CA
|
Posted: Thu Jan 22, 2004 6:06 am Post subject: |
|
|
Yup. It's working for me as well. Just needed a $4 in the filter script - I do have a slightly different setup than mentioned in that thread, and I'll post some information on "How I did it" later.
I'm using amavis, f-prot, clam-av, anomy mailtools, and a few other things.. |
|
Back to top |
|
|
Dr_Stein Guru
Joined: 21 Mar 2003 Posts: 303 Location: Mountain View, CA
|
|
Back to top |
|
|
|