Thank you for this Patrick. My problem is, I want to disable the milter for
outgoing authenticated email on those ports, not enable the milter for
them. Also.. I want the milter to still run on non-authenticated email. For
example... u...@domain.com is a valid user on the server. They want to send
mail out on ports 25... I would want to the milter to bypass this because
they are authenticated. Now... if spam...@domain.com tries to send mail out
of the server on port 25 and they do not authenticate, I want the mitler to
run. Is this possible?

On Wed, Mar 1, 2017 at 10:41 AM, Patrick Ben Koetter <p...@sys4.de> wrote:

> * Linda Pagillo <lpad...@gmail.com>:
> > I have only one smtpd_milter and no non_smtpd_milters. The one milter I'm
> > using is called SNFMilter. It's an anti-spam milter that I use from Arm
> > Research. I have a configuration file called SNFMilter.xml and in the
> > main.cf I have the following line: smtpd_milters = unix:/path/to/socket
>
> I suggest you remove the smtpd_milters setting from main.cf, because if
> you
> put it there it will affect any Postfix smtpd daemon in your Postfix
> instance.
>
> But don't throw it away. Instead move it to master.cf (see my example
> below)
> and associate it only with Postfix smtpd daemons that serve ports where you
> want SNFMilter to become active.
>
> My example enables SNFMilter for 25 and disables any other MILTER for 587
> and
> 465:
>
> # ============================================================
> ==============
> # service type  private unpriv  chroot  wakeup  maxproc command + args
> #               (yes)   (yes)   (no)    (never) (100)
> # ============================================================
> ==============
> # Port 25
> smtp      inet  n       -       n       -       -       smtpd
>     -o smtpd_milters=unix:/path/to/socket
>
> # Port 587
> submission inet n       -       n       -       -       smtpd
>     -o smtpd_milters=
>     ...
>
> # Port 465
> smtps     inet  n       -       n       -       -       smtpd
>     -o smtpd_milters=
>     ...
>
>
> If you don't have much experience with Postfix yet, pay special attention
> to
> notation in master.cf. Versions before 3.0 require *no space* between a
> parameter and the associated values, e.g. parameter=value. My example above
> follows this advice.
>
> p@rick
>
> --
> [*] sys4 AG
>
> https://sys4.de, +49 (89) 30 90 46 64
> Schleißheimer Straße 26/MG,80333 München
>
> Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
> Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief
> Aufsichtsratsvorsitzender: Florian Kirstein
>
>

Reply via email to