Re: [exim] Generic ACL for smtp and non smtp

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Peter Bowyer
Dátum:  
Címzett: exim users
Tárgy: Re: [exim] Generic ACL for smtp and non smtp
On 23/12/05, Silmar A. Marca <marca@???> wrote:
> How to put condition to execute a generic acl to smtp messages and non smtp
> messages? I need to jump instructions...
>
> Example:
> acl_smtp_mime         = acl_check_mime
> acl_not_smtp_mime     = acl_check_mime

>
> acl_smtp_rcpt         = acl_check_rcpt
> acl_not_smtp          = acl_check_rcpt

>
>
> acl_check_rcpt
>  .ifisacl acl_smtp_rcpt
>  #clause hosts is invalid in non_smtp...
>  accept hosts          = +relay_from_hosts
>  .endif


I think you'll need to maintain 2 ACLs. But you could achieve some
degree of re-use and ease of management by collecting the common parts
in a single ACL which you call as a 'subroutine'.

http://www.exim.org/exim-html-4.60/doc/html/spec.html/ch39.html#SECTaclconditions

Peter

--
Peter Bowyer
Email: peter@???
Tel: +44 1296 768003
VoIP: sip:peter@???
VoIP: *5048707000@???
FWD: **275*5048707000
VoipTalk: **473*5048707000