Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-30-2011, 10:27 AM   #1
Registered: Jul 2009
Posts: 96

Rep: Reputation: 16
Getting a "Deferred: 451 4.3.5 Server configuration error" while running mailx

Hello All,

I am trying to test mailx command on one of our RHEL 5.4 servers. Based on some guidelines given by our systems guys....I did the following step 1-6

1. Log in to the Linux host as root where you want to configure mail relay
2. Edit the /etc/mail/ and search for the word "DS".
3. Append the Mail Relay server name after the word DS. # "Smart" relay host (may be null)
DS<mail server name> I added this correctly
4. Stop the sendmail.
/etc/init.d/sendmail stop
5.Stop the sendmail from starting when the host boots next time.
chkconfig sendmail off
chkconfig --list sendmail
6.Test email.
mailx -s "test at `date`" -v "my e-mail id" < /dev/null

I was able to configure this correctly on one of the RHEL server, but on a second RHEL server, when I try the mailx command, I get the following output.

Null message body; hope that's ok Connecting to a.portal.b.c. via relay...
220 a.portal.b.c ESMTP
>>> EHLO
250-SIZE 10240000
250 DSN
220 2.0.0 Ready to start TLS
>>> EHLO
250-SIZE 10240000
250 DSN
>>> MAIL From:<> SIZE=69
250 2.1.0 Ok
>>> RCPT To:<>
>>> DATA
451 4.3.5 Server configuration error Deferred: 451 4.3.5 Server configuration error
554 5.5.1 Error: no valid recipients
>>> RSET
250 2.0.0 Ok
Closing connection to a.portal.b.c.
>>> QUIT
221 2.0.0 Bye
[ ~]# ping a.portal.b.c
PING a.portal.b.c (xx.xx.xx.xx) 56(84) bytes of data.
64 bytes from yy.yy.yy.yy: icmp_seq=1 ttl=63 time=0.296 ms
64 bytes from yy.yy.yy.yy: icmp_seq=2 ttl=63 time=0.303 ms
64 bytes from yy.yy.yy.yy: icmp_seq=3 ttl=63 time=0.322 ms
64 bytes from yy.yy.yy.yy: icmp_seq=4 ttl=63 time=0.389 ms

--- a.portal.b.c ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.296/0.327/0.389/0.040 ms

I am sure I enetred the right recipient address and tried it 2-3 times with other e-mail recipients too. Also, the same e-mail recipient and mailx command works from another RHEL host.

Any guidance/pointers is truly appreciated.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ERROR: Kernel configuration is invalad..... Running "genkernel all" does not help rrrssssss Gentoo 9 01-10-2010 06:54 AM
CFLAGS vs EXTRA_CFLAGS, Ubuntu server 9.04 error while running "make install" Invisible-Man Linux - General 21 07-14-2009 07:31 AM
Sendmail: "451 Temporary local problem - please try later" error figaro666 Linux - Server 1 07-30-2008 07:01 PM
free radius server interaction with mysql server ""configuration in code" yawar Linux - Newbie 2 07-23-2008 03:06 PM
Error launching gnome apps as root: " Failed to contact configuration server" Kropotkin Fedora 1 12-16-2005 12:11 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration