Operating System - HP-UX
1752866 Members
4018 Online
108791 Solutions
New Discussion юеВ

Re: 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 18
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