Sentrion Overview Sentrion Platform Sentrion C3E Suite Hard Appliances Virtual Appliances
Overview Policy Compliance Secure Content Filtering Outbound Delivery Partner Enterprise Community
Overview Download Security Support News Documentation Tips & Tricks DKIM FAQ
Overview Directory Synchronization Messaging Architecture Review High Volume Mail HIPAA Policy QUICKStart Implementation Performance Tuning Training Services Overview Message Routing and
Configuration
Message Policy
Management
Connection Control /
Attack Prevention
Directory Configuration
and Management
Overview Sendmail Partners Milter Community Industry Organizations System Integrators & Distributors
Overview Silver Support Gold Support Platinum Support Open Source Support Security Advisories Contact Support
Overview Customers Events Press Room Board & Investors Management Careers Contact Us
Overview Ask the Experts Security Chalk Talks Collateral Product Reviews & Awards IP Reputation Check Real-time Outbreak Monitor
Sendmail Inc.

HOME | CUSTOMER LOGIN
Sentrion Message Processors
Sentrion Application Store
Services
Partners
Support
Company
Resources
Open Source

Useful links

Table of Contents
home
linuxdoc.org

Further Reading

Sendmail Operation Guide (doc/op/op.*), ch. 5
Sendmail, Costales and Allman, O'Reilly, ch. 28, ch. 29
Linux Network Administrators Guide (linuxdoc.org) ch. 18.6
 

TWEAKING RULESETS

For more complex configurations, you can define special rules. The macro LOCAL_RULE_3 introduces rules that are used in canonicalizing the names. Any modifications made here are reflected in the header.

A common use is to convert old UUCP addresses to SMTP addresses using the UUCPSMTP macro. For example:

LOCAL_RULE_3
UUCPSMTP(`decvax', `decvax.dec.com')
UUCPSMTP(`research', `research.att.com')

will cause addresses of the form "decvax!user" and "research!user" to be converted to "user@decvax.dec.com" and "user@research.att.com" respectively.

This could also be used to look up hosts in a database map:

LOCAL_RULE_3
R$* < @ $+ > $*     $: $1 < @ $(hostmap $2 $) > $3

This map would be defined in the LOCAL_CONFIG portion, as shown below.

Similarly, LOCAL_RULE_0 can be used to introduce new parsing rules. For example, new rules are needed to parse hostnames that you accept via MX records. For example, you might have:

LOCAL_RULE_0
R$+ <@ host.dom.ain.>     $#uucp $@ cnmat $: $1 < @ host.dom.ain.>

You would use this if you had installed an MX record for cnmat.Berkeley.EDU pointing at this host; this rule catches the message and forwards it on using UUCP.

You can also tweak rulesets 1 and 2 using LOCAL_RULE_1 and LOCAL_RULE_2. These rulesets are normally empty.

A similar macro is LOCAL_CONFIG. This introduces lines added after the boilerplate option setting but before rulesets.

Do not declare rulesets in the LOCAL_CONFIG section. It can be used to declare local database maps or whatever.

For example:

LOCAL_CONFIG
Khostmap hash /etc/mail/hostmap
Kyplocal nis -m hosts.byname

Back to Table Of Contents cf/README for Sendmail 8.12.11 Eric Allman of the Sendmail Consortium Rev: 1.1.1.1, Updated 2006/10/11 Back to Top


Site Map | Privacy Policy | Terms & Conditions | Copyright © 1998-2012 Sendmail, Inc. All Rights Reserved.