Notes:

If a user listed in the Excluded Users List field or contained in the file specified in the Excluded Users File field sends mail to a local user, the sending user's name will be masqueraded.

7.To use the masquerading host name in all recipients' addresses, check Use Masquerading Hostname in Recipient Addresses. (Recipient addresses include those on the To: and Cc: lines in the message header.)

8.To exclude your system's host aliases from masquerading, check Exclude Host Aliases From Masquerading. When this item is checked, only the host and domain names specified in Masquerading Hosts/Domains List and in the file specified by Masquerading Hosts/Domains File will be masqueraded.

9.If you want hosts and subdomains within the domains specified in the Masquerading Hosts/Domains List and Masquerading Hosts/Domains File fields to assume the masquerading host name, check Enable Masquerading for Subdomains. For example, in Figure 21, mail from server.xyzcorp.com (a host within the xyzcorp.com domain) will assume the xyzcorp.com masquerading host name.

10.To masquerade the envelope addresses, check Enable Masquerading for the Envelope. By default, the header addresses are masqueraded; however, by checking this item, the envelope addresses are also masqueraded.

11.Click on Submit to change the server configuration (or click on Cancel to cancel the changes and return to the Configure Sendmail Server menu).

The Administration utility displays a message confirming that the configuration has been changed, and indicates that the Sendmail server has been restarted. Click on OK to return to the Configure Sendmail Server menu.

If there were any errors in the configuration, the Administration utility displays a list of the errors. Click on OK to return to the Configure Masquerading form.

Configuring Virtual Domains

Virtual domains allow multiple aliases to be hosted on a single system. To use virtual domains on your system, you must first create a virtual domain table. The Administration utility expects this file to be named /var/adm/sendmail/virtusertable, but you can override this default when you enable virtual domains. Example 4 shows a sample virtual domain table.

Example 4 Sample Virtual Domain Table

info@foo.com foo-info info@bar.com bar-info

@baz.org jane@elsewhere.net

The virtual domain table in Example 4 specifies the following:

Mail addressed to info@foo.com is delivered to foo-info.

Mail addressed to info@bar.com is delivered to bar-info.

Mail addressed to anyone at baz.org is delivered to jane@elsewhere.net.

The user name from the original address is passed as %1 (for example,

@foo.org%1@elsewhere.net). This allows mail sent to someone@baz.org to be delivered to someone@elsewhere.net.

All the host names on the left-hand side of the table (in Example 4, foo.com, bar.com, and baz.org) must be in the host alias list (see Section : Creating and Deleting Host Aliases for a Mail Server).

Sendmail Server Administration 101