Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

URGENT: Sendmail Problem

Nicky_5
Regular Advisor

URGENT: Sendmail Problem

Hi All,

I have a machine that sends out alerts (like if file system is full etc) through mails to out external email id.
Ths was working fine untill we changes out relay host.

Initially the sendmail.cf file had old.com as the relay server, i changed it to new.com, and typed newaliases.

But for some reasons the machine is still trying to use old.com. I have ensured that there is no entry of old.com in the sendmail.cf file (not even commented out)

Please advice what is going wrong here...
4 REPLIES
RAC_1
Honored Contributor

Re: URGENT: Sendmail Problem

nslookup old.com and nslookup new.com
does it show that those two different relay hosts??

Have you checked your /etc/hosts file?? (if that is what you use for name resolution)

Did you restart sendmail after changes were made??

Anil
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor

Re: URGENT: Sendmail Problem

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

as the root user.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Gopi Sekar
Honored Contributor

Re: URGENT: Sendmail Problem


manually try sending mail using sendmail -G new.com see whether it goes through fine.

after giving new value, restart sendmail server.

Regards,
Gopi
Never Never Never Giveup
Uday_S_Ankolekar
Honored Contributor

Re: URGENT: Sendmail Problem

run command "newaliases"
This will rebuild the datbase for mail aliases file. and then stop and restart sendmail
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

-USA..
Good Luck..