> From: owner-postfix-us...@postfix.org [mailto:owner-postfix-
> us...@postfix.org] On Behalf Of Robert Schetterer
> 
> Am 07.09.2012 15:48, schrieb Juerg Reimann:
> >> From: owner-postfix-us...@postfix.org [mailto:owner-postfix-
> >> us...@postfix.org] On Behalf Of Robert Schetterer
> >>
> >>> Thank you Noel and all others who helped me on this. I have now
> >>> implemented spamass- milter. Now I only want incomung mail to go
> >>> through the milter, outgoing mail should just go out as before... How
> could that be achieved?
> >>
> >> with spamass-milter config you can whitelist per ip/net, and/or
> >> neverscan for sasl authed users see man spamass-milter
> >
> > Thanks Robert, I tried the -i flag with spamass-milter, but it didn't work.
> I guess spamass-milter sees the ip from the mail clients as the origin ip and
> they are of course somewhere out in the world... Also I couldn't find any
> info about sasl auth in my man spamass-milter (I have
> 0.3.2,REV=2012.06.16)...
> 
> 
> >
> > Juerg
> >
> 
> spamass-milter - Version 0.3.1
> 
> 
>  -i networks
>              Ignores messages if the originating IP is in the network(s)
> listed.  The message will be passed through without calling SpamAssassin at
> all.  networks is a comma-
>              separated list, where each element can be either an IP address
> (nnn.nnn.nnn.nnn), a CIDR network (nnn.nnn.nnn.nnn/nn), or a network/netmask
> pair
>              (nnn.nnn.nnn.nnn/nnn.nnn.nnn.nnn).  Multiple -i flags will
> append to the list.  For example, if you list all your internal networks, no
> outgoing emails will be
>              filtered.
> 
> -I      Ignores messages if the sender has authenticated via SMTP AUTH.
> --
> Best Regards
> MfG Robert Schetterer

For some strange reason I really don't have this option in my version of 
spamass-milter (maybe because I'm on a Sun system...). However, I could get it 
working actually pretty simple, I moved the configs out of main.cf in put it in 
master.cf:

smtp      inet  n       -       n       -       -       smtpd
  -o milter_default_action=accept
  -o smtpd_milters=unix:/path/to/my/spamass.sock

Works perfectly...

Cheers, Juerg

Reply via email to