Re: [foxboro] Sendmail error

  • From: "Audenaert, Sven" <Sven.Audenaert@xxxxxxxxxxxxxxxx>
  • To: <foxboro@xxxxxxxxxxxxx>
  • Date: Wed, 20 Sep 2006 07:48:51 -0400

Tim,

Rene has pointed you to get rid of this error but just in case you would
like to use sendmail to really send mail from your AW to your personal
email adress here's a procedure how to set this up.
I once gathered all the info found in previous topics in this procedure.

Enable email from your AW to your mail server

Your AW must be connected via the second ethernet port to your corporate
LAN and your mail server MUST have the SMTP protocol enabled. Ask your
IT department for help.
Add the IP address and the name of the mail server to the /etc/hosts
file.
Your /etc/hosts file may look like this.

#
# Internet host table
#
127.0.0.1       localhost       loghost hw1197
10.32.11.210    foxtools
10.155.18.87    smtpmail.yourhost.com    mailhost
#*****************************************************
# Start of I/A hosts
# created Fri Jun 25 15:37:11 GMT 2004
#*****************************************************
#
# The following host entries were created by the I/A
# Software Install sub-system. Any additional entries
# should be placed AFTER the End delimiter.
#
151.128.8.66    1AWB01
151.128.8.67    1AWE01 1AWE01.
151.128.8.68    1AWE02
151.128.8.65    1WPB02
10.32.11.70     CR0001
#*****************************************************
# End of I/A hosts
#*****************************************************

Make sure you add `mailhost` after the IP address and the name of your
mail server.
The order should be: IP address<tab>NAME_OF_YOUR_MAILSERVER<tab>mailhost

Try to ping your mailhost.

1AWE01# ping mailhost
smtpmail.yourhost.com is alive

If you did not succeed, check your connection to the LAN.
Check if the sendmail daemon is running.

1AWE01# ps -ef |grep sendmail
root   990     1  0   Aug 13 ?     0:00 /usr/lib/sendmail -bd -q15m

If the sendmail daemon is not running, start it manually.

1AWE01# cd /etc/rc2.d
1AWE01# S88sendmail start

Try to telnet to the mailhost via TCP/IP port 25.

1AWE01# telnet mailhost 25
Trying 10.155.18.87...
Connected to smtpmail.yourhost.com.
Escape character is '^]'.
220 ips-dc87-xch.yourhost.com ESMTP Server (Microsoft Exchange Internet
Mail Service 5.5.2657.72) ready

Type HELO and the mailhost should return with 250 OK.

HELO
250 OK

Type QUIT to close your telnet session.

QUIT
221 closing connection
Connection closed by foreign host.

If you do not succeed in the precedent steps, contact your IT
department. Maybe a router has been put in between your AW and the
mailhost.
Check what's printed on the screen if you sent a "debug mail". If the
output is similar to the one down here your mail server has SMTP
enabled.

1AWE01# /usr/lib/sendmail -v saudenae@xxxxxxxxxxx </dev/null
saudenae@xxxxxxxxxxxxxx Connecting to mailhost. via relay...
220 ips-dc87-xch.yourhost.com ESMTP Server (Microsoft Exchange Internet
Mail Service 5.5.2657.72) ready
>>> EHLO 1AWE01.
250-ips-dc87-xch.yourhost.com Hello [10.32.11.210]
250-XEXCH50
250-HELP
250-ETRN
250-DSN
250-SIZE 10485760
250-AUTH LOGIN
250 AUTH=3DLOGIN
>>> MAIL From:<root@1AWE01>
250 OK - mail from <root@1AWE01>
>>> RCPT To:<saudenae@xxxxxxxxxxx>
250 OK - Recipient <SAUDENAE@xxxxxxxxxxx>
>>> DATA
354 Send data.  End with CRLF.CRLF
>>> .
250 OK
saudenae@xxxxxxxxxxxxxx Sent (OK)
Closing connection to mailhost.
>>> QUIT
221 closing connection

However, if I try the same via a non SMTP enabled mail server you'll see
the following. In this case ask your IT people to enable SMTP on the
mail server if possible.

1AWE01# /usr/lib/sendmail -v saudenae@xxxxxxxxxxx </dev/null
saudenae@xxxxxxxxxxxxxx Connecting to mailhost. via relay...
220 ips-apvcra-not1.anotherhost.com ESMTP Service (Lotus Domino Release
5.0.9a) ready at Fri, 13 Aug 2004 14:15:47 +0100
>>> EHLO 1AWE01.
250-ips-apvcra-not1.anotherhost.com Hello 1AWE01. ([10.32.11.210]),
pleased to meet you
250-SIZE 15360000
250 PIPELINING
>>> MAIL From:<root@1AWE01>
250 root@xxxxxxxxx Sender OK
>>> RCPT To:<saudenae@xxxxxxxxxxx>
250 saudenae@xxxxxxxxxxxxxx Recipient OK
>>> DATA
354 Enter message, end with "." on a line by itself
>>> .
250 Message accepted for delivery
saudenae@xxxxxxxxxxxxxx Sent (Message accepted for delivery)
Closing connection to mailhost.
>>> QUIT
221 ips-apvcra-not1.apv.invs.com SMTP Service closing transmission
channel

Finally you can try to sent an email to your personal mail address.

# mailx -s "test mail server" yourmailadres@xxxxxxxxxx </etc/hosts

This will sent the contents of the /etc/hosts file to
yourmailadres@xxxxxxxxxx with " test mail server" in the subject field.

If you can send an email to somebody in your domain but you can't (and
would like) sent an email to an external email address check your
/etc/mail/sendmail.cf file. The most important settings are:

# my official domain name
# ... define this only if sendmail cannot automatically determine your
domain
#Dj$w.Foo.COM

CP.

# "Smart" relay host (may be null)
DSmailhost.$m

regards,

Sven Audenaert=20
Service Engineer
Invensys Systems N.V./S.A.
Kontichsesteenweg 54
B-2630 Aartselaar - Belgium
T: +32 (0)3 205 14 15 F: +32 (0)3 232 17 98

sven.audenaert@xxxxxxxxxxxxxxxx / www.invensys-systems.be

Foxboro * SimSci * Triconex * Wonderware
=20

> -----Original Message-----
> From: foxboro-bounce@xxxxxxxxxxxxx=20
> [mailto:foxboro-bounce@xxxxxxxxxxxxx] On Behalf Of Lowell, Tim:
> Sent: woensdag 20 september 2006 13:35
> To: foxboro@xxxxxxxxxxxxx
> Subject: Re: [foxboro] Sendmail error
>=20
> Rene,
>=20
> It works!  I didn't even think to look in the HH files.  I=20
> figured =3D Invensys disavowed all knowledge of sendmail.
>=20
> Thanks,
>=20
> Tim Lowell
> Control Systems Engineer
> ConocoPhillips Trainer Refinery
> (610) 364-8362
> tim.c.lowell@xxxxxxxxxxxxxxxxxx
>=20
>=20
> -----Original Message-----
> From: foxboro-bounce@xxxxxxxxxxxxx=20
> [mailto:foxboro-bounce@xxxxxxxxxxxxx] =3D On Behalf Of Bakker, =
Ren=3DE9
> Sent: Wednesday, September 20, 2006 7:31 AM
> To: foxboro@xxxxxxxxxxxxx
> Subject: Re: [foxboro] Sendmail error
>=20
> Tim,
>=20
> Please refer to Helpful Hint 1035 for the solution.
>=20
> Regards,
>=20
> Rene Bakker - Invensys EMEATAC - Baarn - the Netherlands=3D3D20
>=20
> -----Original Message-----
> From: foxboro-bounce@xxxxxxxxxxxxx=20
> [mailto:foxboro-bounce@xxxxxxxxxxxxx] =3D =3D3D On Behalf Of Lowell, =
Tim:
> Sent: September 20, 2006 13:24
> To: foxboro@xxxxxxxxxxxxx
> Subject: [foxboro] Sendmail error
>=20
> List,
> =3D3D20
>=20
> Whenever I e-mail anything from my AW51G box with Solaris 8,=20
> I keep =3D3D getting a sendmail error that says "unable to=20
> qualify my own domain name
> (AWNAME) - using short name".
>=20
> =3D3D20
>=20
> I looked this up on Google, and they keep telling you to put=20
> an entry in =3D =3D3D the /etc/hosts file with the IP address and=20
> domain name, but they are =3D =3D3D assuming that you have a=20
> valid domain name (in DNS I suppose) , which I =3D =3D3D really=20
> don't.  Has anybody figured out how to get rid of this error=20
> =3D3D message?
>=20
> =3D3D20
>=20
> Tim Lowell
>=20
> Control Systems Engineer
>=20
> ConocoPhillips Trainer Refinery
>=20
> (610) 364-8362
>=20
> tim.c.lowell@xxxxxxxxxxxxxxxxxx
>=20
> =3D3D20
>=20
>=20
> =3D3D20
> =3D3D20
> ______________________________________________________________
> _________
> This mailing list is neither sponsored nor endorsed by=20
> Invensys Process =3D =3D3D Systems (formerly The Foxboro=20
> Company). Use the info you obtain here at =3D =3D3D your own=20
> risks. Read http://www.thecassandraproject.org/disclaimer.html
> =3D3D20
> foxboro mailing list:            =20
> //www.freelists.org/list/foxboro
> to subscribe:         =3D3D
> mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3D3Djoin
> to unsubscribe:      =3D3D
> mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3D3Dleave
> =3D3D20
>=20
> =3D20
> =3D20
> ______________________________________________________________
> _________
> This mailing list is neither sponsored nor endorsed by=20
> Invensys Process Systems (formerly The Foxboro Company). Use=20
> the info you obtain here at your own risks. Read=20
> http://www.thecassandraproject.org/disclaimer.html
> =3D20
> foxboro mailing list:            =20
> //www.freelists.org/list/foxboro
> to subscribe:         =3D
> mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3Djoin
> to unsubscribe:      =3D
> mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3Dleave
> =3D20
> =20
> =20
> ______________________________________________________________
> _________
> This mailing list is neither sponsored nor endorsed by=20
> Invensys Process Systems (formerly The Foxboro Company). Use=20
> the info you obtain here at your own risks. Read=20
> http://www.thecassandraproject.org/disclaimer.html
> =20
> foxboro mailing list:            =20
> //www.freelists.org/list/foxboro
> to subscribe:        =20
> mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Djoin
> to unsubscribe:     =20
> mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Dleave
> =20
>=20

 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             //www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: