On Mon, 2016-03-14 at 10:40 +0000, Jeremy Harris wrote:
> On 14/03/16 10:04, nb@??? wrote:
> > I would like to know how to reject messages if SPF is "none", and
> > if this would be a good solution.
> > ie I won't miss messages.
>
> That sounds like a very good way of missing messages.
>
> > warn
> > message = Received-SPF: ${if eq {$runrc}{0}{pass}{${if eq
> > {$runrc}{2}{softfail}\
> > {${if eq {$runrc}{3}{neutral}{${if eq {$runrc}{4}{unknown}{${if eq
> > {$runrc}{6}{none}{error}}}}}}}}}}
>
> You could do that more readably with a numeric ${extract }.
> --
> Cheers,
> Jeremy
>
As Jeremy points out, using the absence of a SPF record to drop an
email is a great way to miss messages. Try the following:
$dig @8.8.8.8 exim.org TXT
Note there are no TXT records. You will drop all mail relating to this
list.
Cheers
Jon
Blueloop Ltd
01460 271055
https://www.blueloop.net
Blueloop House, Ilchester Road, YEOVIL, BA21 3AA Registered England & Wales - 3981322