Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

can not send email to name@cluster_name.com

SOLVED
Go to solution
Gino Castoldi_2
Honored Contributor

can not send email to name@cluster_name.com

Hi,

We a HPUX 11.11 MC/SG cluster (two nodes).
When we send email locally to a user
ex. "root@cluster_name.com" it works ok.
However, when we try to send mail from MS Outlook to that address it fails.
These are the error msgs:

----- The following addresses had permanent fatal errors -----
(reason: 550 ... Relaying denied)

----- Transcript of session follows -----
... while talking to ovonysg.tfn.com.:
>>> RCPT To: NOTIFY=FAILURE,DELAY
<<< 550 ... Relaying denied
550 5.1.1 ... User unknown

Any ideas as to what could be wrong?

10 points to any good answers or ideas.
TIA, Gino


18 REPLIES
Naveej.K.A
Honored Contributor
Solution

Re: can not send email to name@cluster_name.com

hi gino,

YOu need to have an MTA installed in the server for MUAs like outlook to communicate and send mails. Any MTA(message/mail transfer agent) like sendmail or postfix will work.

telnet hostname/ipaddress 25

and check whether it is connecting

I don't know whether sendmail has been setup. http://www.sendmail.org has got lot of information on setting up sendmail and configuring it. some of the important parameters u need to setup in sendmail.cf (the configuration file for sendmail which is found in /etc/mail/sendmail.cf) is
Dj$w - for specifying local hostname
DS - for specifying smart host

revert back with your observations

regds
naveej
practice makes a man perfect!!!
Gino Castoldi_2
Honored Contributor

Re: can not send email to name@cluster_name.com

Hi,

Naveej:
I can connect to the cluster hostname
using telnet & SMTP port 25. It seems to work from my desktop pc which is running MS Outlook. Here is the output below:

> telnet ovonysg.tfn.com 25

220 ovonys1.tfn.com ESMTP Sendmail 8.9.3 (PHNE_26305)/8.9.3; Thu, 1 Jul 2004 08:25:36 -0400 (EDT)
vrfy
501 Argument required
vrfy root@ovonysg.tfn.com
252

10 points to any good answers or ideas.
TIA, Gino
Jose Mosquera
Honored Contributor

Re: can not send email to name@cluster_name.com

Hi,

You need make reference to your smtp engine mail server (Relay Server). So, you need define in /etc/mail/sendmail.cf the DS variable with a reachable Realy Serner name, in your case:
DS

To ensure that are reachable define it into /etc/hosts file.

Then you need restart sendmail service:
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

Also ensure that your resolution path defined in /etc/nsswitch.conf is appropriate.

You can test sendmail service by a simple command:

#echo "Test"|sendmail -v oracle@ovonysg.tfn.com

Any unsatisfied delivery will be queued in /var/spool/mqueue dir, you can show any queued delivery by:
#mailq -v

Gino Castoldi_2
Honored Contributor

Re: can not send email to name@cluster_name.com

Hi,

Jose:

>#echo "Test"|sendmail -v oracle@ovonysg.tfn.com
I ran the sendmail comand and it worked fine when I ran it from the active node int he cluster. However, when I ran it from the secondary node in the cluster it failed to
deliver the email message even though it looks like it worked locally on the server itself.

root@ovonys2# echo "Test"|sendmail -v oracle@ovonysg.tfn.com
oracle@ovonysg.tfn.com... Connecting to zerok.tf-ny.com. via relay...
220 zerok.tf-ny.com ESMTP Sendmail 8.12.10/8.12.10; Thu, 1 Jul 2004 09:17:27 -0400 (EDT)
>>> EHLO ovonys2.tfn.com
250-zerok.tf-ny.com Hello root@ovonys2.tfn.com [192.168.223.101], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> MAIL From: SIZE=5
250 2.1.0 ... Sender ok
>>> RCPT To:
250 2.1.5 ... Recipient ok
>>> DATA
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 i61DHRoi011775 Message accepted for delivery
oracle@ovonysg.tfn.com... Sent (2.0.0 i61DHRoi011775 Message accepted for delivery)
Closing connection to zerok.tf-ny.com.
>>> QUIT
221 2.0.0 zerok.tf-ny.com closing connection

10 points to any good answers or ideas.
TIA, Gino


Naveej.K.A
Honored Contributor

Re: can not send email to name@cluster_name.com

hi,

what does mailq on the secondary server shows???

do a sendmail -v -d8.99 -d38.99 oracle@ovonysg.tfn.com

and post the output

regds
naveej
practice makes a man perfect!!!
Geoff Wild
Honored Contributor

Re: can not send email to name@cluster_name.com

You need to add the ip's of all servers into /etc/mail/access - then rebuild the map file:

127.0.0.1 relay
192.168.2.1 relay
ovonysg.tfn.com relay

makemap hash /etc/mail/access
Then restart sendmail...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Steven E. Protter
Exalted Contributor

Re: can not send email to name@cluster_name.com

What you may find is:

relaying of mail id denied in the /etc/mail/access file

It could be the setup on the two servers involved.

It could also be in sendmail.cf you have the DS directive set to a mail server that does not allow relay.

The diagnostic post, two posts before mine leads me to believe that to be the case.

mailq should show the mail is piling up on the server trying to send the mail.

sendmail -v -q should confirm the problems and point to a relay issue.

Some of these concepts are explained in the following documents:
http://www.sendmail.org/tips/relaying.html

http://www.sendmail.org/virtual-hosting.html
That one will teach you a lot about how sendmail works.

An itrc search or look at my early linux sendmail questions will provide a lot of insight as well.

I'm betting the target server does not allow relaying. That is what needs to be dealt 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
Steven E. Protter
Exalted Contributor

Re: can not send email to name@cluster_name.com

What you may find is:

relaying of mail id denied in the /etc/mail/access file

It could be the setup on the two servers involved.

It could also be in sendmail.cf you have the DS directive set to a mail server that does not allow relay.

The diagnostic post, two posts before mine leads me to believe that to be the case.

mailq should show the mail is piling up on the server trying to send the mail.

sendmail -v -q should confirm the problems and point to a relay issue.

Some of these concepts are explained in the following documents:
http://www.sendmail.org/tips/relaying.html

http://www.sendmail.org/virtual-hosting.html
That one will teach you a lot about how sendmail works.

An itrc search or look at my early linux sendmail questions will provide a lot of insight as well.

I'm betting the target server does not allow relaying. That is what needs to be dealt 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
Gino Castoldi_2
Honored Contributor

Re: can not send email to name@cluster_name.com

Hi,

Naveej:
The 'mailq -v' command shows queue is empty.
Output from your sendmail command:

root@ovonys2# sendmail -v -d8.99 -d38.99
oracle@ovonysg.tfn.com
seq_map_parse(aliases.files, )
map_init(sequence:aliases.files, NULL, 0)
sequence:aliases.files NULL: valid
map_init(implicit:Alias0, /etc/mail/aliases, 0)
wrong pass (pass = 0, rebuildable = 1)
map_init(host:host, NULL, 0)
host:host NULL: valid
map_init(switch:aliases, aliases, 0)
switch_map_open(aliases, aliases, 0)
switch_map_find => 1 files
map_stack[0] = sequence:aliases.files
switch:aliases aliases: valid
map_init(dequote:dequote, NULL, 0)
dequote:dequote NULL: valid
map_init(host:resolve, NULL, 0)
host:resolve NULL: valid
map_init(sequence:aliases.files, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(implicit:Alias0, /etc/mail/aliases, 1)
impl_map_open(Alias0, /etc/mail/aliases, 0)
hash_map_open(Alias0, /etc/mail/aliases, 0)
impl_map_lookup(Alias0, @)
db_map_lookup(Alias0, @)
implicit:Alias0 /etc/mail/aliases: valid
map_init(host:host, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(switch:aliases, aliases, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(dequote:dequote, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(host:resolve, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
getcanonname(ovonysg.tfn.com), trying files
text_getcanonname(ovonysg.tfn.com)
getcanonname(ovonysg.tfn.com), found

10 points to any good answers or ideas.
TIA, Gino



Gino Castoldi_2
Honored Contributor

Re: can not send email to name@cluster_name.com

Hi,

I checked in /etc/mail/ and found that there is no file named "access" on either server
(that's part of the two node cluster).

I was also told that sending mail for the cluster name as part of the domain name used to work. Not sure what has changed.
AFAIK nothing has changed in regards to sendmail configuration files. I checked our other HPUX (2 node) cluster that also runs OVO and there are no /etc/mail/access files either.

10 points to any good answers or ideas.
TIA, Gino
Naveej.K.A
Honored Contributor

Re: can not send email to name@cluster_name.com

hi,
If the message has been accepted for delivery, and the mailq is empty the mail is delivered....

Please check the file ovonysg.tfn.com:/var/mail/oracle and see whether the mail has arrived

regds
Naveej
practice makes a man perfect!!!
Gino Castoldi_2
Honored Contributor

Re: can not send email to name@cluster_name.com

Hi,

Naveej:

When I send email from MS Outlook using the
address: "oracle@ovonysg.tfn.com" it fails with these error messages in returned mail.

The original message was received at Thu, 1 Jul 2004 10:36:05 -0400 (EDT) from tfsmamsg10.tfn.com [164.179.16.12]

----- The following addresses had permanent fatal errors -----
(reason: 550 ... Relaying denied)

----- Transcript of session follows -----
... while talking to ovonysg.tfn.com.:
>>> RCPT To: NOTIFY=FAILURE,DELAY
<<< 550 ... Relaying denied
550 5.1.1 ... User unknown

10 points to any good answers or ideas.
TIA, Gino
Gino Castoldi_2
Honored Contributor

Re: can not send email to name@cluster_name.com

Hi,

Geoff/Steven:

FYI: There is no /etc/mail/access file
on either server. I don't believe there ever was one.

Does the issue that we're having point to a relaying problem? If so then I'll need to contact our Exchange/Sendmail group to have them look at the problem on there end.

10 points to any good answers or ideas.
TIA, Gino
Naveej.K.A
Honored Contributor

Re: can not send email to name@cluster_name.com

hi,

is the /etc/mail/aliases file setup?

regds
naveej
practice makes a man perfect!!!
Gino Castoldi_2
Honored Contributor

Re: can not send email to name@cluster_name.com

Hi,

Naveej: Yes, the /etc/mail/aliases is setup.

10 points to any good answers or ideas.
TIA, Gino
Sridhar Bhaskarla
Honored Contributor

Re: can not send email to name@cluster_name.com

Hi Gino,

I didn't go through the responses so you can ignore this post if this solution is already given.

Make sure you have /etc/mail/sendmail.cw setup with ovonysg.tftn.com on both nodes of the cluster. The hostnames in this file will be recognized as local and hence sendmail will not think that it is being asked to relay.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Naveej.K.A
Honored Contributor

Re: can not send email to name@cluster_name.com

hi,

or setup the acess file which says your localhost is the relay server

in /etc/mail/access

localhost RELAY
ovonysg.tfn.com RELAY
127.0.0.1 RELAY

regds
Naveej
practice makes a man perfect!!!
Gino Castoldi_2
Honored Contributor

Re: can not send email to name@cluster_name.com

Hi,

I resolved the problem. Here's what I did.

I updated the /etc/mail/sendmail.cw file on
both nodes (that are in the cluster) and I just added the FQDN of the cluster hostname as the last line in the file. I then restarted the sendmail process on both nodes and now it works fine.

Thank you to everyone for all your help!
Gino