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.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

reject = 501 Sender domain must exist

apichart
Advisor

reject = 501 Sender domain must exist

I'm configuring sendmail to be able to send email to Internet. My local domain has not been registered and got any public IP yet. I'm not able to send the email to outsite. In mail.log, there is an error "ruleset=check_mail, arg1=, relay=sc@domain.com [192.168.9.120], reject=501 Sender domain must exist" It seems my domain cannot be resolved. However, in /etc/hosts. I alredy define domain name as
"192.168.9.120 domain.com hostname"
What else should I check?
2 REPLIES
Marcel Boogert_1
Trusted Contributor

Re: reject = 501 Sender domain must exist

Hi there,

Try the following and reply with the output:

$ sendmail -v your@emailadress.com
Test
.

Regards, MB.
Muthukumar_5
Honored Contributor

Re: reject = 501 Sender domain must exist

It is because of /etc/hosts and hostname resolvation there.

Try to change as,

192.168.9.120 hostname.domain.com hostname

--- /etc/nsswitch.conf ---

hosts: files dns

--------------

Try nslookup hostname.domainname.com now.

And your will work now.
Easy to suggest when don't know about the problem!