LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Yet another Sendmail thread... SMARTHOST not working (http://www.linuxquestions.org/questions/linux-networking-3/yet-another-sendmail-thread-smarthost-not-working-156848/)

mychl 03-12-2004 03:56 PM

Yet another Sendmail thread... SMARTHOST not working
 
Ok, here's what I got...

Code:

divert(-1)

divert(0)dnl
VERSIONID(`$Id: generic-linux.mc,v 8.1 1999/09/24 22:48:05 gshapiro Exp $')
OSTYPE(linux)dnl
DOMAIN(generic)dnl
define(`SMART_HOST',`172.20.3.1')dnl
MASQUERADE_AS(`mydomain.com')dnl
MASQUERADE_DOMAIN(`localhost.localdomain')dnl
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`nocanonify')dnl
dnl MAILER(local)dnl
MAILER(smtp)dnl

That's my mc file, sendmail starts up no problem.

RH 7.3, located on DMZ at work. I need to have mail go to users at my company (mydomain.com). 172.20.3.1 is the NAT'd ip of our Iron Mail Applicance here, which I can ping and telnet to.

When i use /usr/sbin/sendmail -v localuser
I am told that relay=[172.20.3.1], but when I send email to user@mydomain.com I get, relay=root@localhost.

I don't get this.... why is it using the smart host for local accounts, and not for external addresses?

I must be missing something, but in the last 2 days of googling and reading and verifying with my IT staff that our mail relay is set to accept mail from my linux server, I don't have an answer.

If anyone has any idea, hints, clues they could throw my way, I'd really appreciate it.

Thanks,

mychl

mychl 03-15-2004 08:32 AM

Oh, and the error I get from sendmail is that name resolution timed out.

This shouldn't matter if I'm using a smarthost right.... it should just deliver the mail to the relay and not care about where it's going???

Thanks


All times are GMT -5. The time now is 08:31 AM.