Operating System - Linux
1829054 Members
2850 Online
109986 Solutions
New Discussion

sendmail not able to send mails to other domains

 
Miceee
Occasional Advisor

sendmail not able to send mails to other domains

I am able to recieve the mails from other domain, even i am able to send and recieve the mails internally, but not able to send mails to other domain. Please help
regards
Moiz
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: sendmail not able to send mails to other domains

Shalom Moizg,

To help we're going to need a little more information.

sendmail -v -d8 -d38 someone@aol.com

type some text

.


This information will also be logged in /var/log/maillog

The normal problem with this falls into the following areas:

1) Firewall prevents you from sending a mail on port 25. See firewall admin and check your iptables configuration
2) Your name resolution, defined by GATEWAY and /etc/resolv.conf does not permit your mail transport to resolve names to numeric addresses.
3) You have the DS directive in sendmail.cf configured to relay mail to the outside world throuh a gateway that is not configured to permit mail relay.

All of this will be apparent based on the error code in the logs or from my diagnostic email above.

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
Ivan Ferreira
Honored Contributor

Re: sendmail not able to send mails to other domains

What is the message you get in:

mailx -v -s "test" user@otherdomain.com
mailq -v
tail /var/log/maillog


This could be a name resolution problem, check /etc/resolv.conf, or a Relay misconfiguration, check /etc/mail/access or /etc/mail/relay-domains.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Miceee
Occasional Advisor

Re: sendmail not able to send mails to other domains

Hi Steven,
first of all Thanks alot for a very quick reply which was really unexpected,
this is the result in maillog,
"Mar 28 18:40:19 localhost sendmail[14348]: k2S7Cnql011211: to=, delay=05:57:30, xdelay=00:00:01, mailer=esmtp, pri=933358, relay=smtpx.hp.com. [15.81.176.20], dsn=4.2.0, stat=Deferred: 450 : Sender address rejected: Domain not found
"
can you help me on this result
thanks
Miceee
Occasional Advisor

Re: sendmail not able to send mails to other domains

Hey Thanks alot for all the help.
I came to know the problem. after i did saw the maillog.
The only problem was i have configured the server name with different domain name which i had used before i did the DNS entry.
and the Entry in DNS server was different

work is done
thanks a lot for the help
have a gr8 day :)

thanks and regards
moiz
Miceee
Occasional Advisor

Re: sendmail not able to send mails to other domains

Hey Thanks alot for all the help.
I came to know the problem. after i did saw the maillog.
The only problem was i have configured the server name with different domain name which i had used before i did the DNS entry.
and the Entry in DNS server was different

work is done
thanks a lot for the help
have a gr8 day :)

thanks and regards
moiz