|
|
Installing and Administering Internet Services: HP 9000 Networking > Chapter 4 Installing and Administering sendmailModifying the Default sendmail Configuration File |
|
The sendmail configuration file that is supplied with HP-UX will work correctly for most sendmail configurations, so you probably do not need to modify it. However, certain modifications to the file are supported. This section describes examples of modifications that you may want to make. The configuration file itself also contains instructions for making the supported modifications. This section contains the following subsections: The default configuration file is located in /usr/newconfig/etc/mail/sendmail.cf and is installed in /etc/mail/sendmail.cf. We recommend that you leave the copy in /usr/newconfig unmodified, in case you need to reinstall the default configuration. The sendmail configuration file performs the following functions:
You must restart sendmail if changes are made to any of the following: Mail that is being sent to a domain other than the sender's domain can be forwarded to a mail gateway. To have non-domain mail forwarded to a mail gateway, edit the DS line in the /etc/mail/sendmail.cf file to specify the host name of the mail gateway:
The sendmail configuration options to set mail header lengths and limit message recipients have been added or enhanced. You can set a limit for the mail header. The maximum header length by default is 32768. To change the mail header length:
If a mail header exceeds the maximum value, an error message
will be displayed for the user who sent the message, which reads: By default, the maximum number of recipients is 100. You can limit the number of users allowed to receive a single mail message. This helps discourage the flow of spam on the mail server.
After a message has been sent to the maximum number of recipients allowed, sendmail sends the error message "452 Too many recipients" to the sender of the message. Note that this will work only when all the recipients of the mail message have their mailboxes on the same machine. |
|