1834931 Members
3138 Online
110071 Solutions
New Discussion

Sendmail problem

 
Stojcevski Dejan
Regular Advisor

Sendmail problem

Hy to all,
I think that this is a known problem but still ...
My sendmail is not working properly: When I try to send a mail outside the HP-UX 11 an error is occuring (attachment). Relay host in sendmail.cf is configured and it's hostname can be resolved (ping by histname to that server works). Still sendmail wont send the mail. It is complaining about "Service Unavailable"!
Please help !
Carpe Diem
6 REPLIES 6
Joseph Loo
Honored Contributor

Re: Sendmail problem

hi,

is the SMTP server up?

# telnet 25
to check.
# sendmail -v

regards.
what you do not see does not mean you should not believe
Stojcevski Dejan
Regular Advisor

Re: Sendmail problem

Of course! Everything is working:
# sendmail -v myadress@mydomain.com
some text
... Connecting to SMTPServer via relay...
220 SMTPServer Microsoft ESMTP MAIL Service, Version: 5.0.2195.6713 ready at Wed, 26 May 2004 14:29:08 +0200
>>> HELO myhost.
501 5.5.4 Invalid Address
>>> HELO myhost.
501 5.5.4 Invalid Address
>>> QUIT
221 2.0.0 SMTPServer Service closing transmission channel
myadress@mydomain.com... Service unavailable
/home/sample/dead.letter... cannot open: Permission denied
myhost... Connecting to local...
myhost... Sent
MAILER-DAEMON... Closing connection to SMTPServer
Carpe Diem
KapilRaj
Honored Contributor

Re: Sendmail problem

hv u updated the relay-domains on the relay server ?.

Kaps
Nothing is impossible
RAC_1
Honored Contributor

Re: Sendmail problem

Check if your hp-ux host is allowed to send emails to smart relay.

Do telnet smart_relay 25 from hp-ux box and check.

Anil
There is no substitute to HARDWORK
Stojcevski Dejan
Regular Advisor

Re: Sendmail problem

About the relay domains on the mail server:
Yes they are up to date.
About conectivity to mail server:
Yes:
# telnet sntpserver 25
Trying...
Connected to sntpserver.
Escape character is '^]'.
220 sntpserver.domain Microsoft ESMTP MAIL Service, Version: 5.0.2195.6713 ready at Wed, 26 May 2004 14:45:10 +0200
Carpe Diem
Stojcevski Dejan
Regular Advisor

Re: Sendmail problem

Hi to all,
I think I have found the solution:
In the /etc/hosts file the name of the host is as follows:
xxx.xxx.xxx.xxx host host. (WITH DOT AT THE END!)
For some reason sendmail takes the second name (the one with a dot!) and that name is not listed in the external SMTP server as a trusted host from which it can accept mails!Probably this is done because someone did not want the mail.log to be filled with the "can not qualify my own domain name" text over time!?
So this is just to watch over the same problem if it ppears in the future.
Anyway thanks to you all!
Carpe Diem