 |
» |
|
|
|
|  |  |
This section discusses how to use Sendmail 8.13.3 with the AUTH feature. Follow this procedure if you use Sendmail 8.13.3 only to transfer
mail from your local computer to a mail server that requires SMTP AUTH authentication: Follow this procedure to generate the /etc/mail/sendmail.cf file:  |  |  |  |  | NOTE: Ensure that you obtain a backup of the existing Sendmail 8.13.3
configuration files (/etc/mail/sendmail.cf and /etc/mail/submit.cf) so that you can revert to the original
state if you encounter any configuration issues and you do not loose
any site-specific customized configuration. |  |  |  |  |
To change the directory to the /usr/newconfig/etc/mail/cf/cf directory, enter the following command: cd /usr/newconfig/etc/mail/cf/cf To copy the generic-hpux10.mc file to the generic-hpux10.mc.ORIG file, enter
the following command: cp generic-hpux10.mc generic-hpux10.mc.ORIG Add the following entries to the generic-hpux10.mc file and enter the sendmail-sasl server name: define(`SMART_HOST',<` sendmail-sasl server name'>dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM
- MD5 LOGIN PLAIN')dnl
FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl
|
To generate the sendmail.cf.gen file, enter the following command and select the "5: Generate
sendmail.cf" option in the main menu: To copy the /etc/mail/sendmail.cf file to the /etc/mail/sendmail.cf.PREVIOUS file,
enter the following command: cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.PREVIOUS To copy the sendmail.cf.gen file
to the /etc/mail/sendmail.cf file, enter the
following command: cp sendmail.cf.gen /etc/mail/sendmail.cf To restore the generic-hpux10.mc file, enter the following command: cp generic-hpux10.mc.ORIG generic-hpux10.mc
Follow this procedure to set up Sendmail 8.13.3 as
a SASL client: To change directory to the location where the Sendmail
8.13.3 configuration files are located (usually the /etc/mail/. directory), enter the following command: To create a safe subdirectory called auth under the /etc/mail/ directory, enter the following
commands: mkdir auth
chmod 700 auth To create a file called client-info under the /etc/mail/auth directory, enter the
following command: Enter your authentication information in the client-info file using the following syntax: AuthInfo: <server_name> "U:root"
"I: <username>" "P: <password>" “M: <auth_mech>” where: - server_name
Specifies the Sendmail 8.13.3 SASL server name. - username
Specifies the user name to which the authentication
information applies. - password
Specifies the password that is configured using the saslpasswd2 command in the Sendmail 8.13.3 SASL server. - auth_mech
Specifies the list of client preferred authentication
mechanisms in the ascending order.
To update the DefaultAuthInfo option
in the /etc/mail/sendmail.cf file, use the following
entry: #O DefaultAuthInfo=/etc/mail/auth/client-info
|
To generate the authentication database and to provide
readable permission only to the superuser, enter the following commands: # cd auth
# makemap hash client-info
# chmod 600 client-info*
# cd .. To restart the Sendmail 8.13.3 server, enter the following
commands: /sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
|