ynotssor wrote:
>
> "Robert Book" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) m
>
> > I'd like to send mail using traditional text-based clients using
> > sendmail. My problem is, I can't get sendmail to work correctly. I'm
> > trying to use the "smarthost" configuration to route all outbound mail
> > through my cable ISP's SMTP server (smtp.east.cox.net), but for some
> > reason, no matter how I configure it, sendmail tries to send through a
> > host I have never heard of (XXX.homeip.net) which is apparently a
> > dynamic DNS user in Japan. I have no connection with this host, never
> > heard of him/her/it, and have no desire to route mail that way -- and
> > I can't for the life of me figure out where sendmail heard of it,
> > either.
> >
> > I *DO* use the homeip.net dynamic dns service, but I use it for
> > inbound ssh only, and sendmail doesn't know about it. I don't really
> > care how sendmail masquerades, but I have a personal domain I could
> > use, or I could use my own dynamic domain YYY.homeip.net), but I don't
> > care as long as it works.
> >
> > Any ideas? I have appended my sendmail.mc file and a few lines from
> > maillog below.
> [...]
> > include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
> > define(`SMART_HOST', `smtp.east.cox.net')dnl
> > OSTYPE(`linux')dnl
> > MAILER(smtp)dnl
> > MASQUERADE_AS(YYY.homeip.net)dnl [Also tried using MYDOMAIN.org]
> > FEATURE(`allmasquerade')dnl
> > FEATURE(`masquerade_envelope')dnl
>
> The MAILER() statement(s) *must* be at the end of the .mc file, but before
> any LOCAL_CONFIG and LOCAL_RULESETS. Your .mc file above is in error, and
> is probably the cause of your problems.
OK, I moved it to the end.
> You'll want to MASQUERADE_AS( MYDOMAIN.org ) so that all address fields
> reflect your return information, otherwise return mail will go to
> (E-Mail Removed).
Changed that, too.
Same (lack of) results as before!
> What is the result of:
>
> nslookup -sil smtp.east.cox.net
nslookup: Unknown option -sil
However, using nslookup in interactive mode produces a result that looks
right.
I probably should have mentioned this before, but "telnet
smtp.east.cox.net 25" works fine ... but that's not the way I prefer to
send mail. ;-)
I also tried going back to the original sendmail.cf file and just adding
a smarthost entry and (when that didn't work) a masquerade entry.
I then tried changing the hostname FQDN on my local machine to
mydomain.org instead of homeip.net, and instead of trying to connect to
net.ehomeip.net tried to connect to the MX server for mydomain.org.
Since my cable ISP blocks all port-25 access except to its own smtp
server, that hangs just as badly as the other one.
It seems that for some reason sendmail is looking at it's own domain
name, then looking up the MX host for that domain, and trying to send
there. Now I'd understand if it were looking up the MX host for the
RECIPIENT's domain, but it isn't doing that. It's just being weird.
Thanks very much for looking at this. Any more ideas?
--Robert