Sendmail relay problem

Posted on 2003-03-08
Medium Priority
Last Modified: 2013-12-15
I've set up my box (xxx.domain1.com) with redhat 8.0 and sendmail.
I can send mail using my email client (on another machine) via the linux box connecting through imap/pop.
However, I can't send mail on the linux box (using sendmail command line)!!
When I tried sendmail with -v, I find that sendmail try to relay via another hostname, (xxx.domain2.com) (which is the previous hostname of the machine, and was hosted somewhere now).... and the relay was denied:

553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)

which is reasonable (since that machine (xxx.domain2.com)is not supposed to relay any mail from (xxx.domain1.com)...

I want to ask why sendmail on xxx.domain1.com will relay to xxx.domain2.com? (i am sending mail to xyz@domain3.com...)


Question by:aboywong
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 15

Accepted Solution

periwinkle earned 400 total points
ID: 8099972
What are the mx records for xxx.domain1.com?  Are they pointing to the correct place?

Check your /etc/resolv.conf file - is it pointing to the old domain?

Author Comment

ID: 8100047

You are right... the resolv.conf is still pointing to the old domain.... :P

LVL 15

Expert Comment

ID: 8100393
aboywong -

glad to have helped!

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month10 days, 8 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question