[Mimedefang] SPF and SMTP auth
Nels Lindquist
nlindq at maei.ca
Mon Feb 16 13:44:31 EST 2004
On 16 Feb 2004 at 15:19, Andrea Venturoli wrote:
<snip>
> However I'm in need to allow roaming notebooks to send mail through
> this smtp server, so I have them authenticate and everything works
> fine, except SPF.
>
> Here's my code in mimedefang-filter (adapted from a couple of samples
> on the net):
> sub filter_sender {
> if ($SendmailMacros{"auth_authen"}) {
> return ('CONTINUE', 'ok');
> }
Is %SendmailMacros available in filter_sender? It appears to be
populated in do_scan(), which occurs after the message is parsed,
Work/ directory created, etc. I expect that filter_sender() is
called much earlier in the process.
Despite the documentation, I think $Sender is available throughout
the filter. Could you move the SPF checks to filter_begin? I
realise that's not as efficient, but you could at least verify that
the SPF checks work.
----
Nels Lindquist <*>
Information Systems Manager
Morningstar Air Express Inc.
More information about the MIMEDefang
mailing list