LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-12-2004, 03:56 PM   #1
mychl
Member
 
Registered: Jul 2001
Location: Earth
Posts: 164

Rep: Reputation: 30
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
 
Old 03-15-2004, 08:32 AM   #2
mychl
Member
 
Registered: Jul 2001
Location: Earth
Posts: 164

Original Poster
Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail ignores my sendmail smarthost entry Paul_assheton Linux - General 1 03-17-2009 07:55 AM
Thread priorities not working ujjwal_rp Linux - Software 1 03-29-2007 08:35 AM
sendmail: deliver every mail directly to the given smarthost TobyD Linux - Networking 3 02-18-2005 05:52 AM
Sendmail - Bounced messages returned to SmartHost Postmaster not locally... Vince0000 Linux - General 0 12-02-2003 01:54 PM
Thread Program Not Working ssuman Programming 0 04-20-2002 07:32 PM


All times are GMT -5. The time now is 12:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration