Koozali.org: home of the SME Server

HeloHost file

Offline wolferine

  • 7
  • +0/-0
HeloHost file
« on: June 01, 2014, 11:37:37 PM »
Hello everybody,

I'm trying to change the HELO/EHLO response, to servername.domainname.tld instead domainname.tld with this command:

Code: [Select]
config setprop smtpd HeloHost servername.domainname.tld
signal-event email-update

but when I check it with telnet it shows domainname.tld

I tried to reboot and still showing domainname.tld

What's wrong? I need to change another file?

Thanks for all

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: HeloHost file
« Reply #1 on: June 01, 2014, 11:46:10 PM »
What's wrong?

The HeloHost property controls the hostname provided by qmail's SMTP client when sending to other servers. You can't test that via telnet.

I think you are trying to change the banner from qpsmtpd. Is that correct? That's controlled by the 'smtpgreeting' qpsmtpd config file, which is controlled by the optional  'Greeting' property of the smtpd service record.



Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: HeloHost file
« Reply #2 on: June 01, 2014, 11:47:20 PM »
I guess you followed this wiki page:

http://wiki.contribs.org/DB_Variables_Configuration#smtpd

if so and it doesn't work as expected, please raise a bug in bugzilla, thank you

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: HeloHost file
« Reply #3 on: June 02, 2014, 05:30:10 AM »
Following up on CharlieBrady's post - to change the smtp greeting (what others see when they send email *to* your SME server):
Code: [Select]
config setprop smtpd Greeting servername.domainname.tld
signal-event email-update

Note 1: some changes to the qpsmtpd config files don't kick in until qpsmtpd is completely restarted, which the 'email-update' event does not do (you can verify that your new "smtpgreeting" has been set correctly by looking at /var/service/qpsmtpd/config/smtpgreeting).

Note 2: the *default* value for smtpgreeting is "$SystemName.$DomainName", and not simply $DomainName on my SME 8.1 server. My 'smtpgreeting' template fragment came from smeserver-qpsmtpd-2.2.0-21.el5.sme.noarch

Offline wolferine

  • 7
  • +0/-0
Re: HeloHost file
« Reply #4 on: June 02, 2014, 11:05:43 AM »
When I check /var/service/qpsmtpd/config/smtpgreeting & var/qmail/control/HeloHost it shows servername.domainname.tld but when I check it externally following those steps
Code: [Select]
telnet servername.domainname.tld 25
It shows
Code: [Select]
220 servername.domainname.tld ESMTP
Then I check HELO with
Code: [Select]
helo servername.domainname.tld or EHLO with
Code: [Select]
ehlo servername.domainname.tld

The response is
Code: [Select]
250 domainname.tld ....
That response is what Im trying to change to servername.domainname.tld

Thank you so much

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: HeloHost file
« Reply #5 on: June 02, 2014, 01:00:14 PM »
The helohost response is controlled by /var/qmail/control/me which is generated by /etc/e-smith/templates/var/qmail/control/me.

Quote from: /etc/e-smith/templates/var/qmail/control/me
{ $DomainName }

The contents of this file are not (yet) configurable with db settings; to change the response for your server you'll need to create a custom template fragment for /etc/e-smith/templates/var/qmail/control/me:
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/var/qmail/control
cd /etc/e-smith/templates-custom/var/qmail/control
echo '{ "$SystemName.$DomainName" }' > me
signal-event email-update

To UNDO this customization:
Code: [Select]
'rm' -f /etc/e-smith/templates-custom/var/qmail/control/me
signal-event email-update

caveat: I have absolutely no idea if changing the contents of /var/qmail/control/me affects any other aspect of your mail server's operation...

Offline wolferine

  • 7
  • +0/-0
Re: HeloHost file
« Reply #6 on: June 02, 2014, 01:13:09 PM »
Thank you very much.
Fixed creating a custom template.