Helo command rejected in spite of masquerading

Helo command rejected in spite of masquerading

am 23.11.2007 16:26:22 von Mandar Mitra

Hello,

I've set up sendmail on my desktop (mandar.cvpr.isical.ac.in) as
follows:

define(`SMART_HOST', `www.isical.ac.in')dnl this is our gateway to
the world
MASQUERADE_AS(`isical.ac.in')dnl my email address
is foobar@isical.ac.in
MASQUERADE_DOMAIN(`.cvpr.isical.ac.in')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`allmasquerade')dnl

When I try this setup using /usr/sbin/sendmail -bt, I think I get the
correct outputs:

> /tryflags HS
> /try smtp mandar
....
final returns: mandar @ isical . ac . in

> /try smtp mandar@mandar.cvpr.isical.ac.in
....
final returns: mandar @ isical . ac . in

Same output for /tryflags ES.


When I actually send mail however, and look at the queue, I get the
following:

-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/
Recipient-----------
lANF3IND023731 29 Fri Nov 23 20:33

(Deferred: 450 : Helo
command rejec)
sending email>


I'm not sure what I'm doing wrong. The only fix I've found so far is
to use Djisical.ac.in in the sendmail.cf file, but that makes life
difficult when I actually want to send mail to other people
@isical.ac.in.

I'm using sendmail-8.14.1-53 on Opensuse 10.3. Can someone please
help?

Thanks,
Mandar.

Re: Helo command rejected in spite of masquerading

am 23.11.2007 19:46:07 von Bill Cole

In article
<3e74871d-f0b4-4858-91c5-9e35fe413a60@j20g2000hsi.googlegroups.com>,
Mandar Mitra wrote:

> Hello,
>
> I've set up sendmail on my desktop (mandar.cvpr.isical.ac.in) as
> follows:
>
> define(`SMART_HOST', `www.isical.ac.in')dnl this is our gateway to
> the world
> MASQUERADE_AS(`isical.ac.in')dnl my email address
> is foobar@isical.ac.in
> MASQUERADE_DOMAIN(`.cvpr.isical.ac.in')dnl
> FEATURE(`masquerade_envelope')dnl
> FEATURE(`allmasquerade')dnl
>
> When I try this setup using /usr/sbin/sendmail -bt, I think I get the
> correct outputs:
>
> > /tryflags HS
> > /try smtp mandar
> ...
> final returns: mandar @ isical . ac . in
>
> > /try smtp mandar@mandar.cvpr.isical.ac.in
> ...
> final returns: mandar @ isical . ac . in
>
> Same output for /tryflags ES.
>
>
> When I actually send mail however, and look at the queue, I get the
> following:
>
> -----Q-ID----- --Size-- -----Q-Time----- ------------Sender/
> Recipient-----------
> lANF3IND023731 29 Fri Nov 23 20:33
>
> (Deferred: 450 : Helo
> command rejec)
> > sending email>
>
>
> I'm not sure what I'm doing wrong. The only fix I've found so far is
> to use Djisical.ac.in in the sendmail.cf file, but that makes life
> difficult when I actually want to send mail to other people
> @isical.ac.in.
>
> I'm using sendmail-8.14.1-53 on Opensuse 10.3. Can someone please
> help?

Unless that distribution is broken, you should have a 'cf' directory
with a 'README' file in it that you should read. If you do not have that
file, you can find it in the standard Sendmail source distribution.

The relevant lines:

confHELO_NAME HeloName If defined, use as name for EHLO/HELO
command (instead of $j).

Your HELO name should be a fully qualified domain name that resolves to
the IP address that other MTA's will see your TCP session as coming
from. It MUST NOT be a name you do not have full control over in DNS.
Often that is the same as $j but often enough it is not. This
configuration option is new in 8.14, presumably because a lot of people
wanted to differentiate between the varied uses of $j as a One True Name
and the very specific function of a HELO name.

--
Now where did I hide that website...

Re: Helo command rejected in spite of masquerading

am 27.11.2007 08:12:07 von Mandar Mitra

On Nov 23, 11:46 pm, Bill Cole wrote:

> The relevant lines:
>
> confHELO_NAME HeloName If defined, use as name for EHLO/HELO
> command (instead of $j).

Yes, that did the trick. I can now send email to others @ isical.ac.in
as well as addresses outside.

Thanks very much!

Mandar.