Koozali.org: home of the SME Server
Obsolete Releases => SME Server 8.x => Topic started by: wolferine 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:
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
-
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.
-
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
-
Following up on CharlieBrady's post - to change the smtp greeting (what others see when they send email *to* your SME server):
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
-
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
telnet servername.domainname.tld 25
It shows 220 servername.domainname.tld ESMTP
Then I check HELO with helo servername.domainname.tld
or EHLO with ehlo servername.domainname.tld
The response is 250 domainname.tld ....
That response is what Im trying to change to servername.domainname.tld
Thank you so much
-
The helohost response is controlled by /var/qmail/control/me which is generated by /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:
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:
'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...
-
Thank you very much.
Fixed creating a custom template.