FEATURE(redirect)

Add support for address.REDIRECT aliases V8.1 and later

FEATURE(redirect) allows aliases to be set up for retired accounts. Those aliases bounce with an indication of the new forwarding address. A couple of lines from such an aliases(5) file might look like this:

george:   george@new.site.edu.REDIRECT
william:  wc@creative.net.REDIRECT

FEATURE(redirect) causes mail addressed to george, for example, to be bounced with a message such as this:

551 5.7.1 User not local; please try <george@new.site.edu>

Note that the message is bounced and not forwarded. No notification is sent to the recipient’s new address.

The form of FEATURE(redirect) is:

FEATURE(`redirect')

The actual bounce is caused by calling the error delivery agent with an RHS such as this:

$#error $@ 5.1.1 $: "551 User not local; please try " <$1@$2>

The 5.1.1 is a DSN error code (see RFC1893), and the 551 is an SMTP code (see RFC821).

If your site’s policy is to notify and forward, you can use an entry such as this in your aliases database:

george:   george@new.site.edu.REDIRECT, george@new.site.edu

Here, the sender will receiver notification of the new address, and the recipient will receive the original messages.

A problem can arise when spam messages are sent to a REDIRECT address. Because some spam is sent with a fictitious envelope sender, the bounce caused by the REDIRECT will itself bounce too. This creates what is called a double bounce (a bounce notification that bounces). Double bounces are delivered to the address ...

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.