Hi Tony

Thanks for the help. Much appreciated dude - it worked like a charm!!

Would it be possible to have a list of just {$local_part} names in the
flat text file and an option for both of these ACL's something like
domains = + local_domains ?

Otherwise I will have to have flat text files for both internal domains
(messy)

.. ?? ..

c 

-----Original Message-----
From: Tony Finch [mailto:[EMAIL PROTECTED] On Behalf Of Tony Finch
Sent: 01 December 2005 01:31
To: Craig Schneider
Cc: [email protected]
Subject: Re: [exim] ACL woes

On Thu, 1 Dec 2005, Craig Schneider wrote:
>
> I'm trying to have user not in a flat text file to have the following 
> errors returned. Not sure if there is something wrong with my logic.
>
> acl_check_content:
>
> #  deny message   = External email to this user is prohibited
> #       condition =
${lookup{$recipients}lsearch{/etc/mail/no_external}{0}{1}}
> #       !senders  = [EMAIL PROTECTED] : [EMAIL PROTECTED]
>
> #  deny message     = You are prohibited to send external mail
> #       condition   =
${lookup{$sender_address}lsearch{/etc/mail/no_external}{0}{1}}
> #       !recipients = [EMAIL PROTECTED] : [EMAIL PROTECTED]

The recipients condition is only valid in the RCPT ACL, and I guess from
the name of your ACL you have put this in the wrong place.

Never use the condition condition without checking for better
alternatives. In particular, it's good to get to know how to put lookups
in address lists. Your ACL can be written:

deny
  message    = External email to this user is prohibited
  recipients = lsearch;/etc/mail/no_external
! senders    = [EMAIL PROTECTED] : [EMAIL PROTECTED]

deny
  message    = You are prohibited from sending external email
  senders    = lsearch;/etc/mail/no_external
! recipients = [EMAIL PROTECTED] : [EMAIL PROTECTED]

Tony.
-- 
<[EMAIL PROTECTED]>   <[EMAIL PROTECTED]>   http://dotat.at/   ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}


--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to