HELO string for outgoing mail

16 posts / 0 new
Last post
AP
Offline
Joined: 11-03-07
Mar 28 2007 04:33
HELO string for outgoing mail

When the libcom.org server sends mail, it uses the HELO string of "libcom". This really should instead be "libcom.org" -- the name of the host that is actually sending the mail -- to avoid triggering anti-spam filters.

As a guess, you have `hostname` set to "libcom" on the server, and your software is picking that up by default. At least on the unix flavors I use, the fashion these days is to set the `hostname` to the FQDN.

Joseph Kay's picture
Joseph Kay
Offline
Joined: 14-03-06
Mar 28 2007 08:04

*bump*

rkn/catch?

Mike Harman
Offline
Joined: 7-02-06
Mar 28 2007 08:40

may well be fixed now and yes that was it I think. Thanks AP! When we set this up we knew absolutely nothing about it whatsoever.

Jacques Roux's picture
Jacques Roux
Offline
Joined: 17-07-06
Mar 28 2007 12:12

beard

AP
Offline
Joined: 11-03-07
Mar 29 2007 03:30
Mike Harman wrote:
may well be fixed now and yes that was it I think. Thanks AP! When we set this up we knew absolutely nothing about it whatsoever.

Still seems broken. From mail sent just now:
"EHLO libcom"

Jacques Roux's picture
Jacques Roux
Offline
Joined: 17-07-06
Mar 29 2007 17:03

catch.

Mike Harman
Offline
Joined: 7-02-06
Mar 29 2007 17:56

hmm. well I changed /etc/hostname and restarted mail

AP
Offline
Joined: 11-03-07
Mar 30 2007 03:49

What mail system are you using?

Mike Harman
Offline
Joined: 7-02-06
Mar 30 2007 10:35

exim4 - it's only there for sending php mail though, not running as a mailserver proper. Which might be why this is messed up - just got phpmail working and left it, I don't really understand e-mail stuff very well.

Jacques Roux's picture
Jacques Roux
Offline
Joined: 17-07-06
Apr 3 2007 22:21

Probably quite important to get this going with the forward module now.

Mike Harman
Offline
Joined: 7-02-06
Apr 4 2007 00:10

yeah plus lost password e-mails etc. should be easy to fix - must be set somewhere other than /etc/hostname like mail config itself.

something like dpkg-reconfigure exim4 should bring up basic setup again. might be as simple as going through that.

Jacques Roux's picture
Jacques Roux
Offline
Joined: 17-07-06
Apr 4 2007 10:41

Well if we can't figure it and AP doesn't pop up here again we could always drop him/her an email.

AP
Offline
Joined: 11-03-07
Apr 4 2007 15:47

Sorry I disappeared -- yes, the reason I noticed was that I couldn't sign up, because I didn't get the initial confirmation email.

About /etc/hostname: the kernel usually has an idea of its hostname, and this is usually set at boot time from some config file, in your case /etc/hostname I guess. If exim is getting its hostname from the kernel, then you'd need to explicitly set the hostname with the `hostname` command, and maybe restart exim, to change it before the next reboot.

I haven't posted here because I haven't taken the time to look into the exim4 docs to try to find out where the EHLO string comes from. I'll try to get to it today, but I can't promise anything. I haven't used exim4 myself before; I use postfix on my machines.

Oh, and male pronouns are fine.

Mike Harman
Offline
Joined: 7-02-06
Apr 4 2007 16:21

was playing around with postfix when thinking about setting up proper mail server on here, but I got fed up and realised it'd be safer to use something else than risk losing e-mails for ages when it went wrong so reverted to exim just 'cos it was default, seems a lot lighter though.

AP
Offline
Joined: 11-03-07
Apr 4 2007 18:26

I believe I found the config param: helo_data.

http://www.exim-new-users.co.uk/content/view/56/39/

It defaults to $primary_hostname.

"The value of this option is expanded, and used as the argument for the EHLO, HELO, or LHLO command that starts the outgoing SMTP or LMTP session. The variables $host and $host_address are set to the identity of the remote host, and can be used to generate different values for different servers."

And primary_hostname defaults to the value from uname:

http://www.exim-new-users.co.uk/content/view/39/39/

and on NetBSD at least, `uname -n` is the same as `hostname`.

So I think this suggests that running `hostname libcom.org`, followed by restarting exim, will solve the problem.

Mike Harman
Offline
Joined: 7-02-06
Apr 5 2007 10:19

Thanks AP!

I've done that, hopefully that'll fix it!