Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Spamassassin + SQL Mail accounts
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
troopern
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2002
Posts: 96
Location: Sweden

PostPosted: Mon Sep 08, 2003 2:15 pm    Post subject: Spamassassin + SQL Mail accounts Reply with quote

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
View user's profile Send private message
NickDaFish
Tux's lil' helper
Tux's lil' helper


Joined: 12 Sep 2002
Posts: 112
Location: Boston, USA

PostPosted: Tue Sep 09, 2003 5:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
troopern
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2002
Posts: 96
Location: Sweden

PostPosted: Mon Oct 13, 2003 11:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Dr_Stein
Guru
Guru


Joined: 21 Mar 2003
Posts: 303
Location: Mountain View, CA

PostPosted: Thu Jan 22, 2004 1:09 am    Post subject: Reply with quote

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
View user's profile Send private message
NickDaFish
Tux's lil' helper
Tux's lil' helper


Joined: 12 Sep 2002
Posts: 112
Location: Boston, USA

PostPosted: Thu Jan 22, 2004 2:04 am    Post subject: Reply with quote

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 :wink:

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
View user's profile Send private message
Jaxom
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2003
Posts: 137

PostPosted: Thu Jan 22, 2004 5:19 am    Post subject: Reply with quote

Ummm, guys....

https://forums.gentoo.org/viewtopic.php?t=89036&highlight=spamassassin+virtual+mail

Worked like a champ for me as far as filtering and whatnot, that's what I'm using and I have a server setup following the vmail guide as well.
_________________
Undisputed Heavyweight Champion. If it's undisputed, WHAT'S ALL THE FIGHTING ABOUT?!?! -- George Carlin
Back to top
View user's profile Send private message
Dr_Stein
Guru
Guru


Joined: 21 Mar 2003
Posts: 303
Location: Mountain View, CA

PostPosted: Thu Jan 22, 2004 6:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Dr_Stein
Guru
Guru


Joined: 21 Mar 2003
Posts: 303
Location: Mountain View, CA

PostPosted: Thu Jan 22, 2004 7:01 pm    Post subject: SOLVED! Reply with quote

I have a slightly different method that also works great:

http://www.pbp.net/~jnichols/filtering.html

Check it out, it might be just what you're looking for. :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum