cancel
Showing results for 
Search instead for 
Did you mean: 

Sendmail issue

SOLVED
Go to solution
bullz
Super Advisor

Sendmail issue

Hello Guruz,

I have a common question here, for configuring sendmail, do we need a direct connectivity to sendmail server (xx.xx.xx.x)?

I am unable to ping sendmil server (xx.xx.xx.x) (ping might be disabled at security level )
But I could able to telnet to sendmail server via port 25.
DNS also resolving it. nslookup xx.xx.xx.

Is these above connectivity is sufficient to configure sendmail?
Still I am getting the following error while sending mail

Working server:- mailer=relay, pri=30061, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (n8UETcI5013459 Message accepted for delivery)
Present server:- mailer=relay, pri=120067, relay=abc.xxx.xx.com. [147.149.196.181], dsn=5.0.0, stat=Service unavailable
11 REPLIES
TTr
Honored Contributor
Solution

Re: Sendmail issue

> Is these above connectivity is sufficient to configure sendmail?

Yes it is but what have you done so far to configure sendmail on your server. Did you set up the sendmail server as a relay to your server? Look at the DS option in /etc/mail/sendmail.cf
Yogesh M Puranik
Valued Contributor

Re: Sendmail issue

Hello,


It doesn't matter if you are not able to ping to ur sendmail server if u r able to telnet with 25 port.

For sendmail configuration, its really imp that you should make telent to relay IP on 25 port and make sure that you have the entry of relay ip after DSx.x.x.x in sendmail.cf file.


Rgds
Yogesh
(Your points are really appritiated)
bullz
Super Advisor

Re: Sendmail issue

Thanks all for yout comments, i have configured sendmail as a relay host at /etc/mail/sendmail.cf as DSsendmailname.com

But i am geting an error as below :(
mailer=relay, pri=120067, relay=abc.xxx.xx.com. dsn=5.0.0, stat=Service unavailable

DNS not found, is any demon need to run for this.. i guess not
is any where specialy we need to specify that sendmail should look for DNS?
Steven E. Protter
Exalted Contributor

Re: Sendmail issue

Shalom,

Few more things to do.

1) You might want to configure the DS to use an IP address and bypass DNS.

Make change.

/sbin/init.d/sendmail stop

/sbin/init.d/sendmail start

2) You need to configure the relay host or have the administrator configure the relay host to accept relay mail. How this is done depends on the type of mail server we are dealing with.

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
TTr
Honored Contributor

Re: Sendmail issue

That is NOT DNS. It is dsn (note DSN) and it stands for "Delivery Status Notification".

If you have acess to the abc.xxx.xx.com relay server, check the logs to see if anything from your server gets there and what the status is. Usually the relay server needs to be set to allow your server to relay.
bullz
Super Advisor

Re: Sendmail issue

Hello all,

I did lot more googling, but no luck. I spent enough time on this issue
I found one thing after check at the exact error log .i.e. (dsn=5.0.0, stat=Service unavailable)

For many of them, it got resolved after changing hostname at /etc/hosts
And in many of the forum I found that it exactly depends on /etc/hosts, /etc/hosts.allow & /etc/hosts.deny it seems

But no one has posted anything after this issue is resolved.. so sad

I am posting my /etc/hosts file. Could someone tell me what changes need to be made further


/etc/hosts.
127.0.0.1 localhost
xxx.xxx.x.x myhstname loghost myhstname.

/etc/hosts.allow
sendmail : ALL : allow

/etc/hosts.deny
ALL:ALL
Steven E. Protter
Exalted Contributor

Re: Sendmail issue

Shalom,

netstat -an | grep ":25 "
# See if sendmail is even listening.

Perhaps with a Linux box do a port scan and see if port 25 is listening on the HP-UX system.

The only thing I see that has not been done is that the target relay server has not been configured for relay.

What is the OS and mail package running on the relay server.

Post the netstat results please.

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
TTr
Honored Contributor

Re: Sendmail issue

Let's see if we can clear some facts.

"your server" is the server that you are trying to make sendmail work.

"relay server" is the sendmail relay server that you have for your site. Based on the log records it is abc.xxx.xx.com

Are these correct?

Maybe there are more details that you have not given here. Is abc.xxx.xx.com the official sendmail server for your site?

> Working server:- mailer=relay, pri=30061, relay=[127.0.0.1] [127.0.0.1],
This does not say much. It is using itself a a relay server. This is either an email to a local account or there are more lines below this one with more information.

Based on the initial posting your server is connecting to the relay server but the status is "service unavailable".

Did you check what happens on the relay server abc.xxx.xx.com? Were any connections made from your server. "telnet abc.xxx.xx.com 25" is not enough. It shows that the sendmail service is running but it does NOT prove that it would accept email messages.
Does abc.xxx.xx.com allow your server to relay?

Steven Schweda
Honored Contributor

Re: Sendmail issue

> I am posting my /etc/hosts file. Could
> someone tell me what changes need to be
> made further

Yes, change all those "xxx" values to real
numbers, and all the "myhstname" things to
real names. Do you expect real help based on
complete fiction?

> I did lot more googling, but no luck. [...]

When I searched for this message, what I
found suggested that the problem was at the
other end.

> Oct 5, 2009 12:56:03 GMT 10 pts

You gave that response ten points. Did you
read it?
bullz
Super Advisor

Re: Sendmail issue

Hee heee.. I usually respect response moreâ ¦thatâ s y I am giving 10pts always

Guys
Unfortunately I do not have access to the mail server (abc.xxx.xx.com)
I think I need to contact the mail server team and check for itâ ¦

Any way.. Great help guysâ ¦
Hopefully see u all againâ ¦.
bullz
Super Advisor

Re: Sendmail issue

Thanx all