Chapter 5: Configuring Mail Routing

Previous Page Next Page

5.2.4 Changing the From: Headers

While the steps listed above in sections 5.2.1, 5.2.2 and 5.2.3 will allow your system to process in-bound mail that contains your domain name, it will not automatically rewrite out-bound mail generated by your users’ mail clients. In order to label out-bound mail as being from your domain, you must:

  1. Update your mail clients to use user@domain.com addresses in the From: and Reply-To: fields of the mail that they generate.

  2. Modify the "User-defined macro $M (DM)" macro so that out-bound mail headers contain your domain name instead of the hostname.

Since there are a tremendous variety of mail clients on the market, it is impossible to describe how to update them with any measurable amount of accuracy. Refer to the documentation that came with your mail client to determine how to change the From: and Reply-To: fields in the client software.

The "User-defined macro $M (DM)" macro defines a variable that identifies the hostname to append to the From: address of any non-local mail. By default, the $M macro is undefined and so the mail server will append the fully-qualified hostname to the From: e-mail address. In our case, mail sent from user@unoverica.com will get rewritten as mail from user@greywolf.unoverica.com. To change this behavior you must define the $M macro to contain the domain name.

This is achieved through the use of the "$m" macro, which defines the domain name in use on this system. The "$m" macro contains the fully-qualified name of this host, minus the hostname (or everything after the first "."), and is automatically built when Unoverica Message Transport loads, although it is not associated with the $M macro by default.

"Macros" are used by SENDMAIL (and derivatives of SENDMAIL such as Unoverica Message Transport) to define variables that can be used throughout the system configuration. For more information on SENDMAIL macros, refer to section F.3 Defining Macros.

Associating the $M macro with the $m macro is achieved through the use of Unoverica Message Transport’s UCMCON.NLM management tool. To load UCMCON, type the following command at the NetWare console prompt:

:LOAD UCMCON <Enter>

You will be presented with a screen similar to the following:

Undisplayed Graphic

Figure 5.13: UCMCON's main menu

Select the "Configuration" menu item and press <Enter>. You will then be presented with a set of configuration menu choices similar to the following:

Undisplayed Graphic

Figure 5.14: UCMCON's Configuration menu.

Select the "Macros" menu item and press <Enter>. You will then be presented with a set of user-definable macros similar to the following:

Undisplayed Graphic

Figure 5.15: UCMCON's currently-defined macros.

Select the "User-defined macro $M (DM)" item and press <Enter>. You will be presented with an edit box for defining the $M macro, similar to the following:

Undisplayed Graphic

Figure 5.16: Defining the $M macro.

Type "$m" (without the quote marks) and press <Enter>, and then press <Esc> to close the edit box. The $M macro should now contain an entry of "$m". Continue pressing <Esc> until you are returned to the NetWare console prompt. Your system will now mark out-bound mail as being from your domain name.

For more information about the $M macro, refer to section F.3.12 User-defined macro $M (DM). For more information about the $m macro, refer to section F.3.5 Domain part of hostname $m (Dm).

STEP: To learn more about Unoverica Message Transport’s advanced configuration options, go to Chapter 6: Advanced Configuration Options.

Previous Page Next Page

Copyright 1997 Unoverica Corporation, All Rights Reserved page
Send comments to docs@unoverica.com