primary_hostname and unrouteable address
Hi,
We set the primary_hostname in exim advanced editor to the name of the main domain on the server and that domain started to get "Unrouteable address" errors for all it's mailboxes and forwarders. Once we removed primary_hostname from the config the problem resolved.
Is there a way to set primary_hostname and having the email to that domain to work?
and a side question: Why would setting this config make the mails to this domain fail?
Thanks
-
Where exactly in the the advanced editor did you modify this? There are several places this is noted. If you modified this by setting the Primary Hostname in Add additional configuration setting, it is important to understand that this needs to be the hostname of the server. This is detailed when selecting the setting: [QUOTE] This specifies the name of the current host. It is used in the default EHLO or HELO command for outgoing SMTP messages (changeable via the helo_data option in the smtp transport), and as the default for qualify_domain. The value is also used by default in some SMTP response messages from an Exim server. This can be changed dynamically by setting smtp_active_hostname. If primary_hostname is not set, Exim calls uname() to find the host name. If this fails, Exim panics and dies. If the name returned by uname() contains only one component, Exim passes it to gethostbyname() (or getipnodebyname() when available) in order to obtain the fully qualified version. The variable $primary_hostname contains the host name, whether set explicitly by this option, or defaulted.
What exactly is the end goal you're looking to achieve here?0 -
Hi, Thanks for the reply. Yes, this is where we set it. The goal is to set all outgoing email to be from xxx@domain.com and not as the server's hostname - xxx@host.domain.com. 0 -
Setting primary_hostname in the exim configuration is not going to change the behavior of mail being sent from the hostname when the system sends the email. All other outgoing mail from the server, would come from whatever domain you sent it from. I don't believe there is a way to change this, there's even a feature request for this here: 0 -
But it does. If I set primary_hostname = domain.com then # echo test|mail me@gmail.com The mail comes from root@domain.com If primary_hostname isn't set the mail comes from root@server.hostname.com 0 -
Thanks Chris, As per exim documentation we set qualify_domain instead and it works great. 0 -
Hello @uadm, I'm glad to hear it's working for you. Thank you for the update and for sharing your solution. 0
Please sign in to leave a comment.
Comments
7 comments