With the ${primary_hostname} approach, exim won't load
${primary_hostname} = mysql;select domain from domainlist where domain='$sender_address_domain'
${primary_hostname} = PRIMARY_HOSTNAME
These just fail and pass the Lookup String without actually looking it up.
primary_hostname = mysql;select domain from domainlist where domain='$sender_address_domain'
PRIMARY_HOSTNAME = ${lookup mysql{select domain from domain_redirect where domain='websprite.com'}{websprite.com}{}}
PRIMARY_HOSTNAME = mysql;select domain from domainlist where domain='$sender_address_domain'
primary_hostname = PRIMARY_HOSTNAME
On Tue, 05 Dec 2000 19:33:23 +0200, Andromeda wrote:
>primary_hostname = PRIMARY_HOSTNAME
Have you tried it without the macro?
Andromeda
On Tue, 05 Dec 2000 09:25:59 -0800, Allan Rafuse wrote:
>
>I have a ton of virtual domains. I have modified
>the received_header_text to signify the email
>coming from mail.{virtualdomain}.com. The email
>looks fine, but now i'd like to change exim's
>primary_hostname to $sender_address_domain when
>the email goes out.
>
>That way, the full email will look like each virtual domain
>has their own name server (except for a reverse lookup).
>
>I have:
>
>PRIMARY_HOSTNAME = mysql;select domain from domainlist where domain='$sender_address_domain'
>primary_hostname = PRIMARY_HOSTNAME
>
>When I send it out, exim sends: mysql;select domain from domainlist where domain='$sender_address_domain'
>as it's helo string! How can I fix this/work around it.
>
>
> -Allan
>
>
><- Allan Rafuse ->
>Systems Administrator
>Freeview Publishing Inc.
>email: allan@???
>web: http://www.freeview.com
>
>
>
>--
>## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>
<- Allan Rafuse ->
Systems Administrator
Freeview Publishing Inc.
email: allan@???
web:
http://www.freeview.com