Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I configure AIX to send mail to a Lotus Notes Server?

AIX Commands

How do I configure AIX to send mail to a Lotus Notes Server?

by  PSD  Posted    (Edited  )
Ensure that æsendmailÆ is running on the system:

Run both commands:

lssrc ûs sendmail

ps ûef |grep sendmail

- If æsendmailÆ is not running start via:

startsrc -s sendmail -a "-bd -q30m"

- Ensure that æsendmailÆ is running:

ps ûef |grep sendmail

This should echo:

root 5704 1 0 11:08:42 - 0:00 sendmail: accepting connections on port 25

- Ensure that the æsendmailÆ daemon is started on reboot, comment in the æsendmailÆ startup line in æ/etc/rc.tcpipÆ

vi /etc/rc.tcpip

Comment in the following line:

start /usr/lib/sendmail "$src_running" "-bd -q${qpi}"

- Create an æ/etc/netsvc.confÆ file, this is to tell sendmail to use æ/etc/hostsÆ for name resolution not DNS (default):

vi /etc/netsvc.conf

Add the following:

hosts=local

- Change the permissions on the æ/etc/netsvc.confÆ file to lock down root only access:

chmod 600 /etc/netsvc.conf

- Add into the æ/etc/hostsÆ file the IP address and hostname of the Lotus Notes server. If you wish to check the hostname of the server use telnet to connect to port 25 of the server:

telnet <IP address of Lotus Notes server> 25

N.B. Type: quit to close the session

Add the IP and hostname into æ/etc/hostsÆ:

vi /etc/hosts

- Copy away the original æ/etc/sendmail.cfÆ file

cp /etc/sendmail.cf /etc/sendmail.cf.orig

- Edit the æ/etc/sendmail.cfÆ and make the following changes:

Vi /etc/sendmail.cf

Change:

#DwYourHostName

To:

Dw<hostname of local server>

Change:

# "Smart" relay host (may be null)
# Relay host to forward outgoing mail not in the local domain to.
# To forward ALL mail to this relay host, uncomment the appropriate
# rule in ruleset 0, as indicated by the ruleset's comments.
#DSmailer:relayhostname
DS

To:

# "Smart" relay host (may be null)
# Relay host to forward outgoing mail not in the local domain to.
# To forward ALL mail to this relay host, uncomment the appropriate
# rule in ruleset 0, as indicated by the ruleset's comments.
#DSmailer:relayhostname
DS<hostname of Lotus Notes Server>

Save the file.

- Refresh the æsendmailÆ daemon to pick up the new changes to the æ/etc/sendmail.cfÆ file

refresh ûs sendmail

It will take a few minutes for the æpsÆ process to return:

root 5704 1 0 11:08:42 - 0:00 sendmail: accepting connections on port 25

In the interim period the following will be displayed via æpsÆ:

root 5704 1 0 11:08:42 - 0:00 /usr/lib/sendmail ûbd ûq30

- If there is only one recipient per mail the configuration is complete, test via:

echo ôtestö |sendmail ûv <email address of recipient>

i.e.

echo ôtestö |sendmail ûv paulsharpe-deacon@test.com

N.B. Any non local mail is sent to the relayhost i.e. the notes server for processing.

- If there is more than one recipient per mail, configure a æsendmailÆ alias:

- Configure the æ/etc/aliasesÆ file with the e-mail addresses of all recipients of the e-mail:

vi /etc/aliases

TEST:paul@test.com,steve@test.com

- Get the æsendmailÆ daemon to re-read the æ/etc/aliasesÆ file:

sendmail ûbi

- Now test the handshaking between the server and the Lotus Notes server:

echo ôtestö |sendmail ûv <alias name>@<hostname of local machine>

i.e.

echo ôtestö |sendmail ûv TEST@notesserver

Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top