[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Exim : change hostname in SMTP greeting



On Sat, 25 Feb 2012 10:38:41 +0000, Shaun wrote:

> I ran my domain through a DNS health checker type site, just to make
> sure I fix any issues. The only 'problem' was that it said the SMTP
> greeting on my MXs doesn't match that listed as the FQDN for the domain.
> That's because I tend to run many services on the same box so
> technically it has many hostnames.

So you basically want to change the SMTP greeting?

> Now if I want mail.mydomain.com in the DNS for the MX record but it's
> hostname (hostname -f) is foobar.mydomain.com then if I don't want to
> change it's hostname can I not set something in Exim?  I tried setting
> 
> MAIN_HARDCODE_PRIMARY_HOSTNAME='mail.mydomain.com' in
> update-exim4.conf.conf after some Googling. I did a restart and exim4
> complained with :
> 
> Stopping MTA for restart:undocumented line
> MAIN_HARDCODE_PRIMARY_HOSTNAME='mail.mydomain.com' found in
> /etc/exim4/update-exim4.conf.conf, generating exim macro
>  exim4_listener.
> Restarting MTA: exim4.
> 
> But then, strangely, it seems to work if I do an nc localhost 25.

The above seems to indicate the used variable is not recognized, at least 
in that config file... Mmm, I've found this:

1.2.3. How does exim find out its host name to use in HELO/EHLO?
http://wiki.debian.org/PkgExim4UserFAQ#How_does_exim_find_out_its_host_name_to_use_in_HELO.2BAC8-EHLO.3F

So I'm not sure you really wanted to do this because editing the primary 
hostname for a MUA will make deep changes on what hosts can send/relay 
from/to destinations :-/
 
> So question: Is this the right (Debian) way of doing it?
> 
> Just want my domain to pass all the checks for a correct configuration
> :)

I don't know Exim too much (I'm a Postfix fellow) but it seems there is a 
variable that takes cares of the welcome message ("dc_smtp_banner") 
although not sure if this will make your DNS tool checker happier :-)

Greetings,

-- 
Camaleón


Reply to: