Discussion:
'localhost' as default server name
Alex Hudson
2008-10-16 14:31:56 UTC
Permalink
So,

As part of our initial configuration, we default to 'localhost' as an
initial hostname. Most people don't change it; me included :) One of my
mails bounced today because of this:

220 mail-in-01.lug.org.uk ESMTP Exim 4.63 Thu, 16 Oct 2008 14:22:37
+0000
EHLO localhost
250-mail-in-01.lug.org.uk Hello barney.alcoholicsunanimous.com
[87.194.162.201]
250-SIZE 52428800
250-PIPELINING
250 HELP
MAIL FROM: <myaddress>
250 OK
RCPT TO: <mylug>
550-HELO/EHLO must contain YOUR OWN FQDN or IP literal; localhost is MY
550-name/IP!
550 Please see RFC 2821 section 4.1.1.1

Clearly, the "EHLO localhost" isn't going down very well :) I changed my
config to my actual server name, and my mail went through fine on the
next attempt.

It's not terribly easy to change your configuration choices at the
moment - it took me a few attempts - and the installation isn't terribly
good either. Does anyone have any good ideas about how we should do
this? I'm thinking that we should probably disallow "localhost" as a
value; it's almost certainly wrong. However, I don't know if we can
automatically tell what the right value is...

Cheers,

Alex.
Alex Hudson
2008-10-16 14:56:41 UTC
Permalink
Post by Alex Hudson
It's not terribly easy to change your configuration choices at the
moment - it took me a few attempts - and the installation isn't terribly
good either.
It has been pointed out to me that we have a web based administration
tool. I tried it. It works. It was pretty easy.

D'oh.

Cheers,

Alex.
Patrick Felt
2008-10-17 00:33:29 UTC
Permalink
i do think we should disallow localhost as an option. As a check you could do a reverse lookup on yourself, however that wouldn't work in call cases (like my bongo-test.info since it is on a nat'd address).

One thought I had was:
what if we tried an smtp connection to some server and did a helo and just parsed out the response. obviously it wouldn't work in all cases, however it would work for quite a few...

thoughts?

-----Original Message-----
From: Alex Hudson <alex-b4STkJ5ddZioClj4AeEUq9i2O/***@public.gmane.org>
To: bongo-devel-8nu/***@public.gmane.org
Date: Thu, 16 Oct 2008 15:56:41 +0100
Subject: Re: [Bongo-devel] 'localhost' as default server name
Post by Alex Hudson
It's not terribly easy to change your configuration choices at the
moment - it took me a few attempts - and the installation isn't terribly
good either.
It has been pointed out to me that we have a web based administration
tool. I tried it. It works. It was pretty easy.

D'oh.

Cheers,

Alex.
Alex Hudson
2008-10-17 08:01:55 UTC
Permalink
Post by Patrick Felt
what if we tried an smtp connection to some server and did a helo and just parsed out the response. obviously it wouldn't work in all cases, however it would work for quite a few...
It wouldn't have worked in my situation. The EHLO succeeded fine - it
didn't give me a 5xx response until I got down to DATA.

I'm not sure it's worth trying to do that anyway, tbh - it's more
effort, and the information from the remote SMTP server is going to get
sent back in the bounce anyway.

Cheers,

Alex.
Lance Haig
2008-10-17 08:24:28 UTC
Permalink
Dumbo here,

Can we not do a disconnect after a set time say 2 minutes?

Lance
Post by Patrick Felt
Post by Patrick Felt
what if we tried an smtp connection to some server and did a helo and
just parsed out the response. obviously it wouldn't work in all cases,
however it would work for quite a few...
It wouldn't have worked in my situation. The EHLO succeeded fine - it
didn't give me a 5xx response until I got down to DATA.
I'm not sure it's worth trying to do that anyway, tbh - it's more
effort, and the information from the remote SMTP server is going to get
sent back in the bounce anyway.
Cheers,
Alex.
_______________________________________________
Bongo-devel mailing list
https://mail.gna.org/listinfo/bongo-devel
Daniel Anderson
2008-10-17 19:27:56 UTC
Permalink
Perhaps I am ignorant of why this will not fly, but what about gethostname() ?
--------------
Post by Patrick Felt
i do think we should disallow localhost as an option. As a check you could
do a reverse lookup on yourself, however that wouldn't work in call cases
(like my bongo-test.info since it is on a nat'd address).
what if we tried an smtp connection to some server and did a helo and
just parsed out the response. obviously it wouldn't work in all cases,
however it would work for quite a few...
thoughts?
-----Original Message-----
Date: Thu, 16 Oct 2008 15:56:41 +0100
Subject: Re: [Bongo-devel] 'localhost' as default server name
Post by Alex Hudson
It's not terribly easy to change your configuration choices at the
moment - it took me a few attempts - and the installation isn't terribly
good either.
It has been pointed out to me that we have a web based administration
tool. I tried it. It works. It was pretty easy.
D'oh.
Cheers,
Alex.
_______________________________________________
Bongo-devel mailing list
https://mail.gna.org/listinfo/bongo-devel
_______________________________________________
Bongo-devel mailing list
https://mail.gna.org/listinfo/bongo-devel
Loading...