Skip to Content
Sendmail, 3rd Edition
book

Sendmail, 3rd Edition

by Bryan Costales
December 2002
Intermediate to advanced
1232 pages
56h 38m
English
O'Reilly Media, Inc.
Content preview from Sendmail, 3rd Edition

Name

$u

Synopsis

The parse rule set 0 (Section 19.5) is used to resolve the recipient address into a triple: the delivery agent (with $#), the host part of the address (with $@), and the recipient’s address (with $:). The recipient’s address is then processed by rule set 2 (the generic rule set for all recipient addresses), then by the rule set indicated by the R= equate of the delivery agent (the custom recipient address processing), and finally by the final rule set 4 (post-processing for all addresses).

If the delivery agent has the F=A flag set (F=A), that rewritten recipient’s address is looked up in the aliases file and replaced with its alias if one exists. If it is not replaced and if the F=5 flag (F=5) is set, the address is rewritten by the localaddr rule set 5 to possibly pick a new delivery agent and repeat this process.[21]

After aliasing, the rewritten recipient’s address is then assigned to $u. If the delivery agent’s F=w flag (F=w) is set,[22] the value of $u is then used to look up information about that user with the method defined by the MailboxDatabase option (MailboxDatabase)[23] The user’s home directory is made the value of $z, which in turn is used to access the user’s ~/.forward and dead.letter files.

For all delivery agents the final value of $u can be used as a component of the delivery agent’s A= (A=) equate. For example:

A=uux - $h!rmail ($u)

Note that $u is special (See this section) in delivery agent A= equates. If it is absent, sendmail speaks SMTP or ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

sendmail, 4th Edition

sendmail, 4th Edition

Bryan Costales, Claus Assmann, George Jansen, Gregory Neil Shapiro
Zabbix Cookbook

Zabbix Cookbook

Patrik Uytterhoeven
sendmail 8.13 Companion

sendmail 8.13 Companion

Bryan Costales, George Jansen, Claus Assmann, Gregory Neil Shapiro

Publisher Resources

ISBN: 1565928393Errata Page