Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DSPAM amavisd-new, and Postfix
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
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Sun Mar 05, 2006 11:03 pm    Post subject: DSPAM amavisd-new, and Postfix Reply with quote

i'm trying to build a mailfiltering gateway for multiple domains, like this: https://forums.gentoo.org/viewtopic-t-90603.html

when an e-mail is passed to dspam i receive this error:
Code:
pipe[18650]: fatal: pipe_comand: execvp /usr/bin/dspam: Permission denied

anche the mail bounces at sender

changing file permissions (chmod 4751) make another error:
Code:
dspam[13489]: Option --user requires special privileges when user does not match current user, e.g.. root or Trusted User [uid=26(dspam)]


any idea?
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1046
Location: Gentoo Forums

PostPosted: Mon May 08, 2006 10:25 pm    Post subject: Reply with quote

I take it you've read this wiki-howto?
_________________
Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick
Back to top
View user's profile Send private message
langthang
Retired Dev
Retired Dev


Joined: 27 Nov 2003
Posts: 620

PostPosted: Tue May 09, 2006 3:41 am    Post subject: Reply with quote

why don't you let amavis call up dspam,
Code:
/etc/amavisd.conf:
...
$dspam  = 'dspam';

/etc/mail/dspam/dspam.conf:
Trust amavis
...

and
Code:
# chmod o+rx /usr/bin/dspam

_________________
Gentoo users' map
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Sat Aug 19, 2006 8:56 am    Post subject: Re: DSPAM amavisd-new, and Postfix Reply with quote

i've successfully installed amavisd-new and dspam on my mail server
there's only a problem...

spamassassin doesn't detect some spam emails.
dspam never fails... but when dspam detects a spam email, amavis doesn't mark it as spam.
the field "X-DSPAM-Result:" reports correctly "Spam", but amavisd treat it as an "ham" e-mail!!!

why this?
Back to top
View user's profile Send private message
langthang
Retired Dev
Retired Dev


Joined: 27 Nov 2003
Posts: 620

PostPosted: Sat Aug 19, 2006 9:18 am    Post subject: Reply with quote

I don't know how others do it but I add some rules to /etc/spamassassin/local.cf
Code:
header DSPAM_SPAM X-DSPAM-Result =~ /^Spam$/
describe DSPAM_SPAM DSPAM claims it is spam
score DSPAM_SPAM 0.5

header DSPAM_HAM X-DSPAM-Result =~ /^Innocent$/
describe DSPAM_HAM DSPAM claims it is ham
score DSPAM_HAM -0.1


adjust the score to suit yourself.
_________________
Gentoo users' map
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Sat Aug 19, 2006 9:21 am    Post subject: Reply with quote

thanks. it's a good solution.
Back to top
View user's profile Send private message
coutts99
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 171
Location: Sunderland, UK

PostPosted: Sun Aug 20, 2006 6:36 pm    Post subject: Reply with quote

langthang wrote:
I don't know how others do it but I add some rules to /etc/spamassassin/local.cf
Code:
header DSPAM_SPAM X-DSPAM-Result =~ /^Spam$/
describe DSPAM_SPAM DSPAM claims it is spam
score DSPAM_SPAM 0.5

header DSPAM_HAM X-DSPAM-Result =~ /^Innocent$/
describe DSPAM_HAM DSPAM claims it is ham
score DSPAM_HAM -0.1


adjust the score to suit yourself.


I've added this to /etc/spamassassin/local.cf but SpamAssassin doens't seem to be scoring dspam spam tagged emails.

Any ideas?
Back to top
View user's profile Send private message
coutts99
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 171
Location: Sunderland, UK

PostPosted: Sun Aug 20, 2006 6:37 pm    Post subject: Reply with quote

coutts99 wrote:
I've added this to /etc/spamassassin/local.cf but SpamAssassin doens't seem to be scoring dspam spam tagged emails.

Any ideas?


As soon as I posted this it started working :?
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