Operating System - HP-UX
1824099 Members
3982 Online
109668 Solutions
New Discussion юеВ

Re: Hp-Ux email connection to Lotus notes

 
Nalin Uduwawala
Advisor

Hp-Ux email connection to Lotus notes

I need to be able to send an e-mail with an attachment from a nightly batch process (on a hp-ux 10.2) through a Lotus notes server (running on win NT on the same network).

How can I ensure the proper connections are made between the hp-ux email process and the notes server ?
Life long Learning
8 REPLIES 8
Bill Hassell
Honored Contributor

Re: Hp-Ux email connection to Lotus notes

Just enable sendmail. You do this (like other subsystems in HP-UX) by editing the config file in /etc/rc.config.d/mailservs and set the SENDMAIL_SERVER=1. Then start the mail service with:

/sbin/init.d/sendmail start

To verify that incoming mail is working OK, telnet to the HP-UX machine using port 25 and issue the commands EXPN ROOT and then type the command QUIT to end the session. sendmail recognizes both UPPERCASE and lowercase commands. You can even telnet to yourself on the same system:

telnet barney.com 25

assuming barney.com is your machine's name.


Bill Hassell, sysadmin
Rick Garland
Honored Contributor

Re: Hp-Ux email connection to Lotus notes

You can set the Smart Hosts to be equal to to the Lotus mail server. This way, mail is routed from the HP to the Lotus mail server and the Lotus does the work of finding 'who's who'.
Nalin Uduwawala
Advisor

Re: Hp-Ux email connection to Lotus notes

First many thanks for the responses. Because I am new to hp-ux in both responses I did not see any instructions which gave each machine or the mail processes the means to recognise each other.

Can you both please elaborate a bit more.

Apologies for being a pain there . (acting a real dud here I am ).

Thanks again.
Life long Learning
Rick Garland
Honored Contributor

Re: Hp-Ux email connection to Lotus notes

On the HPUX system in the /etc/mail/sendmail.cf file is a line that defines the Smart Host. You would input the system name like so:
DS.domain.com

This will route mail to the lotus mail server.

Caution! The sendmail.cf is cryptic and you can spend many nights learning about it. A suggestion would be to learn the m4 preprocessor as well. This will enable you to compile new sendmail.cf files and not have to modify directly.
Andreas Voss
Honored Contributor

Re: Hp-Ux email connection to Lotus notes

Hi,

to add a smart relay host do the following:

edit /etc/mail/sendmail.cf
search within this file for a line that begins with:
DS
Now determine the hostname of your lotus box (e.g. lotus_srv)
Append this hostname to the DS statement:
DSlotus_srv
Save the file, stop and restart the sendmail:
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
Now test the mail delivery
You can look at /var/adm/syslog/mail.log
to see what sendmail does.

Greetings
Andrew
Geert Stappers
Occasional Advisor

Re: Hp-Ux email connection to Lotus notes

usally HP-UX already has sendmail started.

The Lotus server should be enable the receive smtp mail. This can been check by the telnet test. ( telnet notesvr 25 )
Wij maken IT succesvol
Alan Riggs
Honored Contributor

Re: Hp-Ux email connection to Lotus notes

Once you have sendmail configured to reach tour lotus server, you will still (if I am iunderstanding your post correctly) need to send your file as an attachment rather than as the body of the text. There are many ways to do this, but I generally use:

sendmail user@abc.com << END
`cat mail.txt`
`uuencode `
END

Where mail.txt holds the subject line and body of the message I wish to send with the file attachment.
Nalin Uduwawala
Advisor

Re: Hp-Ux email connection to Lotus notes

Many thanks to all of you again.
Please continue the contributions.
Life long Learning