Special Instructions for UNIFadval or UNIFmsglg
First-Time Installations of the UNIFadval or UNIFmsglg Packages
Release 2.1.0
After UNIFadval or UNIFmsglg is installed on a system, the handling of SMTP requests is handled by the new UNIFI software. This handling requires some manual alterations to the /etc/inetd.conf file.
- Make two backup of copies of the /etc/inetd.conf file in a safe location (not /tmp or /etc)
- Type "cp /etc/inetd.conf /<backup directory>/inetd.conf.old" and press [ENTER]
- Type "cp /etc/inetd.conf /<backup directory>/inetd.conf.new" and press [ENTER]
- Type "chmod -w /<backup directory>/inetd.conf.old" and press [ENTER]. This makes one copy read-only to prevent accidental changes.
- Use vi or a similar editor to make the changes to /<backup directory>/inetd.conf.new
- Above the SMTP handling line which reads "smtp stream tcp nowait root /usr/sbin/mhs/SMTPresponder SMTPresponder", insert:
# The following line was how smtp requests were processed before
# installing Unifi's adval/msglg packages.
# Commented out <date> by <installer name>- Comment out the old SMTP line by adding a "#" in front of the line reading "smtp stream tcp nowait root /usr/sbin/mhs/SMTPresponder SMTPresponder"
- After the SMTP handling line, add:
# The following line is how smtp requests are processed with the software
# installed with Unifi's adval/msglg packages.
# Added <date> by <installer name>
#
smtp stream tcp nowait root /usr/sbin/mhs/SMTPresponder SMTPresponder -I SMTP-in_UNIFI"- Save the file and exit
- Compare the old and new configuration files
- Type "diff /<backup directory>/inetd.conf.old /<backup directory>/inetd.conf.new" and press [ENTER]
- The only differences should be those listed above, if there were no mistakes or accidental changes. If there are other changes, fix them using the vi editor.
- Type "cp /<backup directory>/inetd.conf.new /etc/inetd.conf" and press [ENTER] to copy the edited copy of the configuration file into the correct location
- Signal the inetd daemon to use the new configuration file
- Type "ps -aef | grep inetd" and press [ENTER] to get the pid of the inetd daemon
- Type "kill -HUP <pid of the inetd daemon>" and press [ENTER] to send a hangup signal to the daemon
- If there are no errors, it is safe to remove the temporary files
- Type "rm /<backup directory>/inetd.conf.old /<backup directory>/inetd.conf.new" and press [ENTER]
Removing the UNIFadval or UNIFmsglg package for an Upgrade
To upgrade UNIFadval or UNIFmsglg, the older version of the package must be removed and the newer version installed. Some manual alterations to the inetd.conf file are required BEFORE the old packages can be removed..
- DISABLE THE "SMTP-in_UNIFI" QUEUE. This is necessary to avoid misprocessing any incoming messages during the interim time of the package being removed and then added.
- Type "pkgrm <package name>" and press [ENTER] to remove the UNIFadval or UNIFmsglg package
- Go to the installation instructions for UNIFadval or UNIFmsglg
- Once the new installation is complete, the SMTP-in_UNIFI queue can be enabled.
Removing the UNIFadval or UNIFmsglg Package Permanently
Some manual alterations to the inetd.conf file are required BEFORE the packages can be removed..
- Make two backup of copies of the /etc/inetd.conf file in a safe location (not /tmp or /etc)
- Type "cp /etc/inetd.conf /<backup directory>/inetd.conf.old" and press [ENTER]
- Type "cp /etc/inetd.conf /<backup directory>/inetd.conf.new" and press [ENTER]
- Type "chmod -w /<backup directory>/inetd.conf.old" and press [ENTER]. This makes one copy read-only to prevent accidental changes.
- Use vi or a similar editor to make the changes to /<backup directory>/inetd.conf.new
- Remove the "#" in front of the old (commented-out) SMTP handling line ("#smtp stream tcp nowait root /usr/sbin/mhs/SMTPresponder SMTPresponder")
- Comment out the old SMTP line by adding a "#" in front of the line reading "smtp stream tcp nowait root /usr/sbin/mhs/SMTPresponder SMTPresponder -I SMTP-in_UNIFI"
- Save the file and exit
- Compare the old and new configuration files
- Type "diff /<backup directory>/inetd.conf.old /<backup directory>/inetd.conf.new" and press [ENTER]
- The only differences should be those listed above, if there were no mistakes or accidental changes. If there are other changes, fix them using the vi editor.
- Type "cp /<backup directory>/inetd.conf.new /etc/inetd.conf" and press [ENTER] to copy the edited copy of the configuration file into the correct location
- Signal the inetd daemon to use the new configuration file
- Type "ps -aef | grep inetd" and press [ENTER] to get the pid of the inetd daemon
- Type "kill -HUP <pid of the inetd daemon>" and press [ENTER] to send a hangup signal to the daemon
- If there are no errors, it is safe to remove the temporary files
- Type "rm /<backup directory>/inetd.conf.old /<backup directory>/inetd.conf.new" and press [ENTER]
- Type "pkgrm <package name>" and press [ENTER] to remove the UNIFadval or UNIFmsglg package
Status: Second draft
Author: Judy McLaughlin