Hi,

I'm an old dspam user, and like olger I am setting up a new server.

Until now, I was using "-o content_filter=dspam:" in the smtp service in 
postfix/master.cf.

The dspam content filter was configured like this : 
8<-----------
dspam unix - n n - 10 pipe
        flags=Ru user=dspam argv=/usr/bin/dspam --client --deliver=innocent 
--user $user -i -f $sender -- $recipient
8<-----------

Everything worked fine. But the drawback of this setting is that every single 
mail I sent was scanned by dspam, and the recipient of my mails were stored in 
the database. Furthermore, the mail process goes like this :
fetchmail --> postfix --> dspam --> postfix --> Cyrus

This is a bit heavy, isn't it ?

So I tried to configure the following process : 
fetchmail --> postfix --> dspam --> cyrus, using LMTP.

In this configuration I have : 
8<------------- (postfix main.cf) 
mailbox_transport = lmtp:unix:/var/run/dspam/dspam.sock
8<------------- (dspam/dspam.conf)
DeliveryHost    /var/run/cyrus/socket/lmtp
DeliveryPort    24
DeliveryIdent   localhost
DeliveryProto   LMTP
Trust postfix
Trust dspam
**ServerParameters      "--deliver=innocent -d %u -i -f %sender"**
8<-------------

This way I have every version of my email getting a separate dspam mail queue 
(quarantine and history in the web interface) : [user] ; [[email protected]@] 
and [u...@domain] are different dspam users. I want to merge them in order to 
have all my mails in one history interface.

Q ? : Where can I find the documentation for the ServerParameters configuration 
option of dspam ? I didn't find it.

I tried then to configure like this : 
8<------------- (postfix/main.cf)
mailbox_transport = dspam
8<-------------

The dspam transport is the same I used before (see top of this mail). In this 
configuration every mail is rejected with :
8<------------- (/var/log/mail.err)
Sept 22 22:00:15 [machine] dspam[126600] : Connection to socket 
/var/run/cyrus/socket/lmtp failed : Permission denied
8<-------------

I suppose this is because the mailbox transport command of postfix deliver 
mails with user rights, but the socket of cyrus is srwxrwxrwx....

Q ? : How to set up the whole thing to select only the $user part of a mail as 
dspam user ? wat's the right setup ?

Here's the rest of my setup :
Debian 5.0.3 
postfix 2.5.5-1.1
dspam 3.9.0~beta1+git20090917-1 (package from kiria.net)
cyrus-imapd  2.2.13-14+lenny1

Thanks in advance for your reply and cheers for the good work (especially the 
change of ownership).

-- 
K@ Teznik <[email protected]>

Freedom's juste another word for nothing left to loose. Holger Levsen 
http://layer-acht.org/

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Dspam-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to