CHAPTER 4 |
SIMS Configuration Files |
The following SIMS configuration files are covered in this chapter:
![]() |
"The ims.cnf File" on page 255 |
![]() |
"The sims.cnf File" on page 260 |
![]() |
"The imdmc.cnf File" on page 262 |
![]() |
"The imta.cnf File" on page 263 |
The ims.cnf file is the configuration file for the Sun Internet Mail Server (SIMS) Message Store and Message Access components. The ims.cnf file contains configuration parameters for the Message Store and Message Access utilities.
To make configuration changes to the ims.cnf file, you can either edit the file manually or use the SIMS administration console. It is recommended that you use the SIMS administration console rather than editing the ims.cnf file manually.
Any changes made to the Message Store paths should be made when no Message Store utilities are running.
Each entry in the ims.cnf file has the form:
ims-parameter-name: value
The parameters are broken down into the following categories: Message Store paths, Message Store file system parameters, Message Store delivery parameters, and Message Access parameters. The parameters are described in the following sections.
TABLE 4-1 describes the parameters for the Message Store paths.
TABLE 4-2 describes the parameters for the Message Store file system.
TABLE 4-3 describes the parameters for the Message Store delivery utility (ims_master).
TABLE 4-4 describes the parameters for the Message Access utility (imaccessd).
The sims.cnf file contains configuration parameters used by more than one component in the SIMS. The configuration file consists of lines of characters in the ASCII character set, terminated by line-feed characters.
This file has three types of lines:
![]() |
Whitespace. Consists only of spaces, tabs, blank lines, and the terminating line-feed. Whitespace is ignored. |
![]() |
Comment lines. The first character of a comment line is a # character. Comment lines are ignored. |
![]() |
Parameter lines. Consist of a parameter name, and equal sign, and the value for the parameter. Parameter names consist of one or more alphanumeric characters (upper and lower cases permitted) and should not contain any whitespace. The parameter line must begin in column 1. |
Each entry has the form:
parameter-name=valueIf a line begins with whitespace, it must consist only of whitespace. Such a line is not a comment because it a # does not appear in column 1, and is not a parameter line because a parameter name does not start in column 1.
The following is a sample sims.cnf file:
dcRoot=o-internetadminBindDN=uid=ISPAdministrator,dc=isp,dc=com,o=internetloginSeparator=+domainHostingMode=multipleldapServer=ldap1:888,masterldap,lastresort
Note - To change the information in the sims.cnf file, use the imedit utility to prevent concurrent updates from leaving the file in an unexpected state.
The imdmc.cnf file contains configuration parameters used by the Delegated Management component in the Sun Internet Mail Server.
This file has three types of lines:
![]() |
Whitespace. Consists only of spaces, tabs, blank lines, and the terminating line-feed. Whitespace is ignored. |
![]() |
Comment lines. The first character of a comment line is a # character. Comment lines are ignored. |
![]() |
Parameter lines. Consist of a parameter name, and equal sign, and the value for the parameter. Parameter names consist of one or more alphanumeric characters (upper and lower cases permitted) and should not contain any whitespace. The parameter line must begin in column 1. |
Each entry has the form:
parameter-name=valueIf a line begins with whitespace, it must consist only of whitespace. Such a line is not a comment because it a # does not appear in column 1, and is not a parameter line because a parameter name does not start in column 1.
The following is a sample imdmc.cnf file:
spmServer=machine1.eng.sun.comws-port=80document-root=/opt/SUNWmail/htmlcgi-bin=/opt/SUNWmail/cgi-bin
Note - To change the information in the imdmc.cnf file, use the imedit utility to prevent concurrent updates from leaving the file in an unexpected state.
The following is a default IMTA configuration file (imta.cnf) for a system not directly connected to the public internet (stream.bridge.net) that has a routability scope of the mail server domains (bridge.net).
! VERSION=1.2! Modified by SIMS administration server on: Fri Mar 05 10:44:33! PST 1999!! IMTA configuration file!! part I : rewrite rules!! DNS canonicalization rules. Uncomment this line to enable DNS! address canonicalization.! Please refer to the SIMS documentation for details!</etc/opt/SUNWmail/imta//dns_canonical.rules!! Domain Rewrite Rules.! Uncomment this line to use domain rewrite rules! from the configuration file instead of the domain database.! Please refer to the SIMS documentation for details! </tmp/newconfig/domains.rules!! Rules to select local usersstream.bridge.net $U%stream.bridge.net@stream.bridge.netmailhost.eng.company $U%stream.bridge.net@stream.bridge.netmailhost.eng $U%stream.bridge.net@stream.bridge.netmailhost $U%stream.bridge.net@stream.bridge.neteng.company.com $E$U%$D@stream.bridge.neteng $U%eng.company.com@stream.bridge.net!! sims-ms.sims-ms-daemon $E$U%$H.sims-ms-daemon@sims-ms-daemon! native.native-daemon $E$U%$H.native-daemon@native-daemon!! pipe.pipe-daemon $E$U%$H.pipe-daemon@pipe-daemon!! tcp_intranet.eng.company.com $E$U%$H.eng.company.com@tcp_local-daemon* $U%$&0.eng.company.com@tcp_local-daemon.eng $U%eng.company.com@tcp_local-daemon! tcp_default_router! Rules for top level internet domains</etc/opt/SUNWmail/imta//internet.rules. $E$U%$H@tcp-daemon!! reprocessreprocess $E$U%reprocess.stream.bridge.net@reprocess-daemonreprocess.stream.bridge.net $E$U%reprocess.stream.bridge.net@reprocess-daemon!! processprocess $E$U%process.stream.bridge.net@process-daemonprocess.stream.bridge.net $E$U%process.stream.bridge.net@process- daemon!! defragmentdefragment $E$U%defragment.stream.bridge.net@defragment-daemondefragment.stream.bridge.net $E$U%defragment.stream.bridge.net@defragment-daemon!! conversionconversion $E$U%conversion.stream.bridge.net@conversion-daemonconversion.stream.bridge.net $E$U%conversion.stream.bridge.net@conversion-daemon!! bitbucketbitbucket $E$U%bitbucket.stream.bridge.net@bitbucket-daemonbitbucket.stream.bridge.net $E$U%bitbucket.stream.bridge.net@bitbucket-daemon!! deleteddeleted-daemon $E$F%$H@deleted-daemon.deleted-daemon $E$F%$H@deleted-daemon!! inactiveinactive-daemon $E$F%$H@inactive-daemon.inactive-daemon $E$F%$H@inactive-daemon!! holdhold-daemon $E$F%$H@hold-daemon.hold-daemon $E$F%$H@hold-daemon!! part II : channel blocks!! delivery channel to local /var/mail storel noswitchchannel copywarnpost copysendpost postheadonly charset7 us- ascii charset8 iso-8859-1 subdirs 20 immnonurgent logging viaaliasrequired notices 1 2 4 7 serviceallstream.bridge.net!! sims-mssims-ms queue single_job copywarnpost copysendpost postheadonly noswitchchannel charset7 us-ascii charset8 iso-8859-1 subdirs 20 immnonurgent logging serviceall master_debug slave_debugsims-ms-daemon!! nativenative copywarnpost copysendpost postheadonly noswitchchannel charset7 us-ascii charset8 iso-8859-1 subdirs 20 immnonurgent logging serviceallnative-daemon!! pipepipe single subdirs 20 copywarnpost copysendpost postheadonly immnonurgent noswitchchannel logging notices 1 2 4 7 serviceallpipe-daemon!! tcp_intranettcp_local smtp single_sys subdirs 20 copywarnpost copysendpost postheadonly immnonurgent noreverse logging notices 1 2 4 7 master_debug slave_debugtcp_local-daemon stream.bridge.net!! tcp_default_routertcp_default_router smtp daemon smarthost.eng.company.com copysendpost copywarnpost postheadonly subdirs 20 immnonurgent logging notices 1 2 4 7 master_debug slave_debugtcp-daemon stream.bridge.net!! reprocessreprocess copywarnpost copysendpost postheadonlyreprocess-daemon!! processprocess copywarnpost copysendpost postheadonlyprocess-daemon!! defragmentdefragment copywarnpost copysendpost postheadonlydefragment-daemon!! conversionconversion copywarnpost copysendpost postheadonlyconversion-daemon!! bitbucketbitbucket copywarnpost copysendpost postheadonlybitbucket-daemon!! deleteddeleted loggingdeleted-daemon!! inactiveinactive logginginactive-daemon!! holdhold logginghold-daemonThe imta.cnf file defines several channels. The default channels defined in the sample default imta.cnf file are described in TABLE 4-9.
Addresses are rewritten by rewrite rules in the imta.cnf file to convert addresses to fully qualified domain addresses and to determine their corresponding channels. The result of rewriting is a rewritten address and a routing system, that is the system to which the message is to be sent.
The example in this section uses a mail message and takes it through the rewrite rules.
1. | A mail message arrives for jdoe@bridge.net. | |
2. | The imta.cnf file is scanned to find a match for the domain part of the address. If it matches any of the rules in the first rewrite rule section (rules to select local user or l channel), the user is looked up in the alias database. In this example,the address domain part matches rule four in the first section of rewrite rules. | |
3. | The alias cache is searched for the jdoe entry. | |
4. | The imta.cnf file is again scanned to find a match with the domain part of the address returned by the alias database search. |