mouss wrote:
rihad wrote:
query = SELECT v FROM mydestination WHERE k='%s'
- do not return NULL. since the result is unused, simply use
query = SELECT 'blah' mydestination WHERE k='%s'
Sorry, but your suggested fix doesn't solve the problem: the query still
doesn't happen when I restart Postfix.
> - '$myhostname' will never match because a domain name does not start
> with '$'. and no, mysql won't expand that for you.
Thanks, I thought querying mysql was like querying any other information
provider, be it literal lists in main.cf, where $myhostname _is_
allowed. I will replace $myhostname in MySQL with its expanded value
once I get the query to happen at all...