Alias Nonlocal Addresses

As distributed, a normal configuration file will disallow certain addresses on the left side of the aliases file. Consider the following two addresses:

Bob@our.host:           bob
Bob@another.host:       bob@home.isp

In both examples, the intention is for mail to bob at the local host (our.host) to be delivered to the local mailbox for the user bob. This will happen in the first example (assuming a normal configuration file) because the @our.host part of the address will be removed by rule sets:

canonify           input: Bob @ our.host
Canonify2          input: Bob < @ our.host >
Canonify2        returns: Bob < @ our.host . >
canonify         returns: Bob < @ our.host . >
parse              input: Bob < @ our.host . >
Parse0             input: Bob < @ our.host . >
Parse0           returns: Bob < @ our.host . >
ParseLocal         input: Bob < @ our.host . >
ParseLocal       returns: Bob < @ our.host . >
Parse1             input: Bob < @ our.host . >
Parse1           returns: $# local $: Bob
parse            returns: $# local $: Bob
2                  input: Bob
2                returns: Bob
EnvToL             input: Bob
EnvToL           returns: Bob
final              input: Bob
final            returns: Bob
mailer local, user Bob

Because the local delivery agent was selected, and because that delivery agent has the F=A flag set (F=A on page 767), mail to Bob@our.host will be aliased for local delivery to the user bob.

The second address, , however, selects an esmtp delivery agent:

canonify input: Bob @ another . host Canonify2 input: Bob < @ another . host > Canonify2 returns: Bob < @ another . host > canonify returns: Bob < @ another . host > parse ...

Get sendmail, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.