Operating System - HP-UX
1832986 Members
2436 Online
110048 Solutions
New Discussion

Not able to send the mail

 
Salman Ahmed Qureshi
Frequent Advisor

Not able to send the mail

Hi,
I am using HP Unix 11.11 and everything is configured but still i am not able to send email. I am able to send from another server which has architecture.

Please see following configuration which is same as the server where mail works fine.

1)
#grep DS /etc/mail/sendmail.cf
intsmtp.utac.com.sg


2)
In /etc/rc.config.d/mailsvrs, i see following.
export SENDMAIL_SERVERS=1

3)
# telnet intsmtp.utac.com.sg 25
Trying...
Connected to oa2h.utac.com.sg.
Escape character is '^]'.
220 oa-2h.utac.com.sg ESMTP Service (Lotus Domino Release 8.5) ready at Wed, 24 Jun 2009 13:10:39 +0800

Mail daemon is also running.
Please see result of follwoing test.

# /usr/sbin/sendmail -v -s "test msg" salman@sg.utacgroup.com < /etc/issue
msg... User unknown
test... Connecting to local...
test... Sent
salman@sg.utacgroup.com... Connecting to intsmtp.utac.com.sg via relay...
salman@sg.utacgroup.com... Deferred: Connection refused by intsmtp.utac.com.sg
root... aliased to michael_lim@sg.utacgroup.com
/dead.letter... Saved message in /dead.letter

Thanks in advance
9 REPLIES 9
Salman Ahmed Qureshi
Frequent Advisor

Re: Not able to send the mail

Please see the result of test on the server from where i can send the mail

# /usr/sbin/sendmail -v -s "test msg" salman@sg.utacgroup.com < /etc/issue
msg... User unknown
test... User unknown
salman@sg.utacgroup.com... Connecting to intsmtp.utac.com.sg via relay...
220 oa-2h.utac.com.sg ESMTP Service (Lotus Domino Release 8.5) ready at Wed, 24 Jun 2009 13:22:18 +0800
>>> EHLO ods-prim.utac.com.sg
250-oa-2h.utac.com.sg Hello ods-prim.utac.com.sg ([168.232.220.61]), pleased to meet you
250-HELP
250-DSN
250-SIZE
250 PIPELINING
>>> MAIL From: SIZE=53
250 root@ods-prim.utac.com.sg... Sender OK
>>> RCPT To:
250 salman@sg.utacgroup.com... Recipient OK
>>> DATA
354 Enter message, end with "." on a line by itself
>>> .
250 Message accepted for delivery
salman@sg.utacgroup.com... Sent (Message accepted for delivery)
root... aliased to michael_lim@utac.com.sg
/dead.letter... Saved message in /dead.letter
Closing connection to intsmtp.utac.com.sg
>>> QUIT
221 oa-2h.utac.com.sg SMTP Service closing transmission channel
Steven Schweda
Honored Contributor

Re: Not able to send the mail

> # /usr/sbin/sendmail -v -s "test msg" salman@sg.utacgroup.com < /etc/issue
> msg... User unknown
> test... Connecting to local...
> test... Sent

Does sendmail have a "-s" option?
Perhaps mailx does.

> salman@sg.utacgroup.com... Connecting to intsmtp.utac.com.sg via relay...
> salman@sg.utacgroup.com... Deferred: Connection refused by intsmtp.utac.com.sg

How many firewalls are there between these
systems? Can you do:
telnet intsmtp.utac.com.sg 25
from either of these systems?
Salman Ahmed Qureshi
Frequent Advisor

Re: Not able to send the mail

Yes i think it does have -s option, i can send email using this command from my other server.

I mentioned in point "3" in my first post that i can telnet from my both servers.
Mel Burslan
Honored Contributor

Re: Not able to send the mail

>salman@sg.utacgroup.com... Deferred: Connection refused by intsmtp.utac.com.sg

This above statement from relay server generally means your server is not authorized for mail forwarding by this forwarder.

Do you have any other mail relay servers in your organization ? Or did you change name or IP address of this server lately ? Mail relays decide if you are worthy of mail forwarding by looking at your IP address.
________________________________
UNIX because I majored in cryptology...
Salman Ahmed Qureshi
Frequent Advisor

Re: Not able to send the mail

No we dont have any change made to our mail server and we have only one mail server. Actually i am a DBA and i was given this server for setting up Oracle Database and i changed the name of this server. I am not sure whether mail was working on it before i changed the name of this server. Do you think i need to update some configurations after changing the name of this server?
Thanks

Salman
Mel Burslan
Honored Contributor

Re: Not able to send the mail

first contact the administrators of the mail relay server and let them know about the name change and ask them to reauthorize this machine for mail forwarding. Every shop's policy for mail forwarding is different. Make sure your machine is allowed for this.
________________________________
UNIX because I majored in cryptology...
Steven Schweda
Honored Contributor

Re: Not able to send the mail

> Yes i think it does have -s option [...]

What does _your_ "man sendmail" say? Mine
does not agree with you.

Don't you wonder why you get the messages:

msg... User unknown
test... Connecting to local...
test... Sent

when you say '-s "test msg"'?
Salman Ahmed Qureshi
Frequent Advisor

Re: Not able to send the mail

Hi,
I just copied this statement with -s switch from a thread on this forum. I have removed -s but problem is still the same.
IP address of my this server is already registered on the mail server and also authorised to send email.

Salman
Patrick Wallek
Honored Contributor

Re: Not able to send the mail

So what is the output you are getting now? Is it the same as before? Specifically the "Deferred: Connection refused by intsmtp.utac.com.sg" message. If so then the problem still lies with intsmtp.utac.com.sg not wanting to relay from the server you are sending from.