OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: dspam injection for delivery

From: Tony Earnshaw (tericssonearnshawbarlaeus.nl)
Date: Thu Nov 02 2006 - 06:04:35 CST


Rob Hudson wrote:

> I'm working on setting up dspam. Below is my postfix config.
>
> I'm having a problem where postfix hands the mail off to dspam, then
> dspam hands it back for delivery, but instead of delivering to
> /home/vmail/domain.com/user/.maildir it drops it in /var/mail/user.
>
> Is there a setting to tell postfix how to deliver the mail from dspam?

Aren't you using maildrop for delivery?

More to the point: in master.cf, have the first smtpd listener pass the
message with lmtp or unix to dspam running as a daemon and have dspam
pass the message via smtp to a second smtpd listener running on another
port.

Though you will still have a problem in that both incoming and outgoing
messages will be scanned; either have your user MUAs use submission or
smtps ports, or use the much more elegant FILTER transport details of
which you'll find i the dspam ML archives (quite recent). If you were
running amavsid-new you could use a policy_bank to effect this (we do at
the moment) but you'd still have scanning of outgoing messages from
roaming users.

> I'm using transport_maps to tell postfix to only deliver to dspam for my
> particular user while I'm getting this working rather than the dspam doc
> that says to change smtp for all users. (This part is working.)

Aren't you using maildrop for delivery? If not, you should be - what's
in your master.cf should work fine. There should be no reference to
dspam in main.cf, other than to transport_maps.

--Tonni

[...]

--
tonni at barlaeus.nl
Tony Earnshaw