Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redhat sendmail config

Status
Not open for further replies.

Bluedoor

Technical User
Nov 20, 2002
6
US
Hi,

I'm running sendmail 8.11 on redhat and I'm trying to
configure sendmail to forward mail to a smtp server.

My mail server is "onsmail"

I configured "Smart" relay host
DSonsmail

But all mail that I send is going into queue. I can telnet to onsmail on port 25.

The mail queue says
(host map: lookup (yahoo.com): deferred)

What am I missing ? Could someone help !
 

gthampi,

Have you got a sendmail.mc file ? I've only started using sendmail on 8.12 so not sure about earlier versions. If so add the line

FEATURE(`mailertable')

Then create a file called mailertable in the same directory as the sendmail.mc file and add an entry like the following

domainname.com esmtp:[ipaddress of your smtpserver]

the entry in my file looks like

domain.com esmtp:[172.30.212.2]

You need the square brackets and note the format of the quote in the FEATURE line

You'll need to recompile the sendmail.cf file then by using

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf (change the paths if needed)

and restart sendmail

If you haven't got an .mc file let me know and I'll have a look at my .cf file for you and see what we're using

Cheers

~ Remember - Nothing is Fool Proof to a Talented Fool ~
 
TalentedFool,

Thanks for the response !

I was able to resolve the problem.

I do have the sendmail.mc and I see the feature you're mentioning. I'll try your method next time.

I created a file service.switch in /etc/mail and put "hosts file" in it. The /etc/hosts should have the name/ip of your smtp server. And enabling smart relay will push your mail to the smtp server.

cheers !

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top