Re: [exim] acl_smtp_mail help

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: W B Hacker
Dátum:  
Címzett: exim users
Tárgy: Re: [exim] acl_smtp_mail help
Francesco Pasqualini wrote:
> Thanks Ron, fixed !
>
> what I was missing is just to call the defined ACL:
>
> acl_smtp_mail = acl_check_mail
>
> Another error is that I was naming the acl exactly acl_smtp_mail that I
> think is a reserved config word
>
> thanks a lot


AFAIK, you actually *can* use the built-in names directly for the acl sections,
but it is a much better idea to use the 'mapping' to names of your own.

Also very useful for comparison testing:

I keep an acl<whater>_p for production use, and and acl_<whatever>_t for testing.

My 'stock' _t is simply an 'accept' - basically to skip all checking of its
session phase and let me focus on debugging the others. This also serves as a
label or 'marker' for entry into each phase in the longish configure files I
tend to use.

But .. it could just as well be complex.

So a minor edit to map which one is active/not lets me use one or the other w/o
having to do multiple insert/delete of a largish chunk of text - possibly into
the wrong place, or with an unexpected line break.

Handy that....

Bill

>
>
>
>
> On Sat, May 1, 2010 at 5:52 PM, Ron White <exim.ml@???> wrote:
>
>> On Sat, 2010-05-01 at 16:24 +0200, Francesco Pasqualini wrote:
>>> hi all,
>>> I'm trying to use acl_smtp_mail (exim4 on ubuntu)
>>>
>>> The acl does not work, like it wasn't there.
>>>
>>> For example my config.autogenerated is as follow, bat every mail is
>>> accepted:
>>>
>>> acl_smtp_mail:
>>>
>>> deny message = User has been blocked
>>>          senders  = *

>>>
>>> deny
>>>
>>> What I'm missing ?
>>>
>>> thanks
>> Are you actually calling/referencing your defined acl in one of the
>> acl_smtp_xxxx directives in the main section of the runtime
>> configuration? Such as:
>>
>> acl_smtp_rcpt = acl_smtp_mail
>> or
>> acl_smtp_data = acl_smtp_mail
>>
>> For troubleshooting the acid test to see what is happening would be to
>> run a debug session on the command line (here pretending to be from a
>> gmail IP):
>> exim -d -bh 209.85.229.27
>> giving it the normal smtp commands one at at time such as:
>> helo .
>> mail from: <>
>> rcpt to: your.user@???
>> data
>>
>> This should show what is/is not going on. The logs may well have useful
>> information too.
>>
>>
>> --
>> ## List details at http://lists.exim.org/mailman/listinfo/exim-users
>> ## Exim details at http://www.exim.org/
>> ## Please use the Wiki with this list - http://wiki.exim.org/
>>