System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

stoping sendmail from checking domains before relaying

Wessam Aly
Frequent Advisor

stoping sendmail from checking domains before relaying

Hi,

In my company we have an exchange box for handling emails inside and outside of the company. I have setup a linux relay box running postfix which should accept mail from any *nix host running in our company and relay it to any users on the exchange (address user@company.com)
my relay is relay.company.corp

i'm trying to configure a redhat (5.3) server running sendmail 13.8 to send mail through the relay. any mail originating from the redhat server addressed to user@company.com should get relayed to relay.company.com and hence sent through the exchange server.

I always get the following error
company.com: Name server timeout

DS has been setup to relay.company.corp and we dont use dns. nsswitch.conf is set to files

why does sendmail try to resolve company.com ?? all i want it to do is send the mail to relay.company.corp regardless of who it is addressed to.

any ideas ?
The manual said the program requires Windows 95 or better, so I installed Linux !
2 REPLIES
Wessam Aly
Frequent Advisor

Re: stoping sendmail from checking domains before relaying

by the way

relay.company.corp already sends mail properly to any user on the exchange server.
The manual said the program requires Windows 95 or better, so I installed Linux !
VK2COT
Honored Contributor

Re: stoping sendmail from checking domains before relaying

Hello,

Several possible scenarios. It all depends on
which one you like:

a) Use mailertable:

# vi /etc/mail/mailertable

company.com esmtp:[relay.company.corp]

Make sure that relay.company.corp is
listed in /etc/hosts.

After editing /etc/mail/mailertable,
create the DB file in that directory.

b) Check some web suggestions:

http://www.sendmail.org/faq/section3#3.22

http://www.phase2.net/2007/03/20/sendmail-on-rhel-40-without-dns/

Cheers,

VK2COT



VK2COT - Dusan Baljevic