Re: [Exim] Creating domainlist with SQL select

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Wakko Warner
Ημερομηνία:  
Προς: Kirill Miazine
Υ/ο: Eli, exim-users
Αντικείμενο: Re: [Exim] Creating domainlist with SQL select
> domainlist virtual_domains = \
>     mysql;select host from users where host='$domain' limit 1


This doesn't always work. Supposed you're testing virtual_domains inside of
the mail acl. $domain is blank.

I found that useing ${lookup mysql{...}{ $sg{$value}{\\n}{ : }} }}
works pretty well for me. it's on the wishlist to treat a \n as a
seperator.

--
Lab tests show that use of micro$oft causes cancer in lab animals