Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


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
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month13 days, 9 hours left to enroll

580 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