L. V. Lammert a icrit :
On Wed, 25 Mar 2009, Jose Fragoso wrote:
Hi,
If a host is responsible for sending outgoing messages from multiple
domains, should it always use the same HELO command (ie. the same
hostname) or could it use a different HELO command when sending
mail from different domains?
Thanks for your help.
Regards,
Jose.
The HELO command should match the hostname, and the hostname must match
the reverse DNS for the email to be accepted by any RFC complaint mail
server.
Lee
Are you sure ?
$ nc mx2.poolp.org 25
220 mx2.poolp.org ESMTP Sendmail 8.14.3/8.14.1; Wed, 25 Mar 2009
16:53:09 +0100 (CET)
HELO meeeeeeh
250 mx2.poolp.org Hello gw.XXX.com [193.47.XX.XX], pleased to meet you
MAIL FROM:<[email protected]>
250 2.1.0 <[email protected]>... Sender ok
RCPT TO:<[email protected]>
250 2.1.5 <[email protected]>... Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
test
.
250 2.0.0 n2PFr9rT015719 Message accepted for delivery
$
Sendmail seems to disagree with you and the RFC does not mention a
*requirement*
to match the reverse DNS. In fact, if I recall correctly it did mention
that the
server shouldn't or mustn't refuse a session based on what the client
sends with
its HELO/EHLO command.
Gilles