Re: [Exim] Exim & MySQL

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: William Thompson
Ημερομηνία:  
Προς: Philip Hazel
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] Exim & MySQL
> Here's what I did:
> domainlist local_domains = localhost : \
>         ${lookup{$domain}lsearch{/etc/exim4/localdomains}} : \
>         ${lookup mysql{select domain \
>                         from eximconf.localdomains \
>                         where enabled='yes' and domain='$domain' \
>                       } \
>          }


Nevermind, I found my mistake here...  I can't do this.  I wish there was an
easier way.  I changed it back to my original that I was testing months ago:
domainlist local_domains = localhost : \
        /etc/exim4/localdomains : \
        ${lookup mysql{select domain \
                        from eximconf.localdomains \
                        where enabled='yes' \
                      } \
                 {${sg{$value}{\N\ *\n\N}{ : }}} \
         }


Anyway of getting around using ${sg {}{}{}} here?