Re: [exim] ACL/Router

Góra strony
Delete this message
Reply to this message
Autor: Paulo Andre
Data:  
Dla: Jakob Hirsch
CC: 'Exim-users'
Temat: Re: [exim] ACL/Router
Jakob Hirsch wrote:
> Paulo Andre wrote:
>
> Try
>
>        ! sender_domains = mysql;SELECT Domain FROM xdomains WHERE 
> Allowed='Y' AND Domain='${quote_mysql:$sender_address_domain'


I finally got to the following, as requirement has changed

I have to check the users and am now using::

  !senders      = ${lookup mysql{SELECT User FROM users WHERE 
User='$sender_address' and Domain='$sender_address_domain' and 
Allowed='Y'}{$value}}


This works, but I need to able able to have 'User=*@domain.com' in the
database and then exim will allow all users for that domain to send.
Possible?

Paulo