spamass-milt-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SMTP AUTH


From: Dan Nelson
Subject: Re: SMTP AUTH
Date: Tue, 9 Mar 2004 14:43:39 -0600
User-agent: Mutt/1.5.6i

In the last episode (Mar 04), Adam Kujawski said:
> I would like to skip the checks performed by spamass-milter for
> messages that have been accepted using SMTP AUTH.
> 
> 1. Is  ${auth_type} the correct macro to be checking to see if a message was
> accepted with SMTP AUTH?
> 
> My understanding is that if auth_type is set (not null), then SMTP
> AUTH has been used sucessfully.

Sounds reasonable.
 
> 2. Do I need to add anything to my .mc to send the auth_type macro to
> spamass-milter, or is it done by default?
> 
> It looks like my sendmail.cf's "Milter.macros.envfrom" includes
> auth_type by default, so I assume I don't have to set any
> confMILTER_MACROS_ENVFROM values and rebuild my config. Is that
> correct?

Right.
 
> 3. What changes need to be made to spamass-milter to automatically pass SMTP
> AUTH messages?
> 
> I added the following bit of code to the beginning of the mlfi_connect()
> function in spamass-milter.cpp and recompiled:
> 
>         if (smfi_getsymval (ctx, "{auth_type}") != NULL)
>         {
>                 return SMFIS_ACCEPT;
>         }

This may be too soon.  mlfi_connect gets called when the socket is
opened.  The client doesn't send AUTH until after EHLO, so I think the
soonest that {auth_type} can be set would be in smfi_envfrom.  Which
actually makes sense, because you mentioned above that auth_type is in
Milter.macros.envfrom :)

-- 
        Dan Nelson
        address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]