* J4 <ju...@klunky.co.uk>:
> 
> On 01/18/2011 06:51 PM, Patrick Ben Koetter wrote:
> > * J4 <ju...@klunky.co.uk>:
> >>     This is pretty much what I would like to achieve, & the reason I
> >> decided not to use Dovecot Sieve (apart from me being incapable of
> >> setting it.  ;)  ).  
> >>
> >>         Parse the SPAM during the SMPT session and use only RAM: Perfect.
> >>  
> >> I would still like to notify the connecting SMTP client with a reject
> >> message.  Real spammers are uninterested anyway, but legitimate
> >> e-mailers would be, although this is not essential to let them know.
> > spamassassin can make Postfix REJECT clients in session if you integrate
> > Spamassassin using a MILTER or amavis. Your master.cf excert below indicates
> > you are not running Spamassassin in SMTP session, but after the mail has 
> > been
> > accepted.
> >
> > If you only want to identify and reject spam use a Spamassassin Milter
> > interface. There are several out there. See section "Integrated into 
> > Sendmail"
> > in http://wiki.apache.org/spamassassin/IntegratedInMta.
> >
> > If you need more, go for amavis.
> >
> > Which plattform are you on? 
> >
>     I'm on Debian Squeeze.

# apt-get install spamass-milter

Then edit /etc/default/spamass-milter and check the SOCKET* options at the
bottom of the file.

After that restart spamass-milter and verify the SOCKET was created e.g. in
/var/spool/postfix/spamass/spamass.sock.

Then configure Postfix to use that socket in main.cf using the smtpd_milters
parameter e.g. like this:

smtpd_milters = unix:/spamass/spamass.sock

  The example above assumes you run Postfix chrooted, which is default on
  Debian systems.

Now reload Postfix and try to send a GTUBE spam test pattern in a telnet
session from a client that is not part of the network you defined with the
"-i" option in /etc/default/spamass-milter.

Your message should be rejected in session.

p@rick

-- 
state of mind
Digitale Kommunikation

http://www.state-of-mind.de

Franziskanerstraße 15      Telefon +49 89 3090 4664
81669 München              Telefax +49 89 3090 4666

Amtsgericht München        Partnerschaftsregister PR 563

Reply via email to