View previous topic :: View next topic |
Author |
Message |
.:chrome:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1738078993454a825c7608f.jpg)
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sun Mar 05, 2006 11:03 pm Post subject: DSPAM amavisd-new, and Postfix |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
BlinkEye Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
Posted: Mon May 08, 2006 10:25 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
langthang Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 27 Nov 2003 Posts: 620
|
Posted: Tue May 09, 2006 3:41 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
.:chrome:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1738078993454a825c7608f.jpg)
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sat Aug 19, 2006 8:56 am Post subject: Re: DSPAM amavisd-new, and Postfix |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
langthang Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 27 Nov 2003 Posts: 620
|
Posted: Sat Aug 19, 2006 9:18 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
.:chrome:. Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1738078993454a825c7608f.jpg)
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sat Aug 19, 2006 9:21 am Post subject: |
|
|
thanks. it's a good solution. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
coutts99 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 19 Sep 2002 Posts: 171 Location: Sunderland, UK
|
Posted: Sun Aug 20, 2006 6:36 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
coutts99 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 19 Sep 2002 Posts: 171 Location: Sunderland, UK
|
Posted: Sun Aug 20, 2006 6:37 pm Post subject: |
|
|
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 ![Confused :?](images/smiles/icon_confused.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|