2002-12-25 00:37:43 +03:00
|
|
|
# $NetBSD: sample-rewrite.cf,v 1.2 2002/12/24 21:37:46 perry Exp $
|
|
|
|
#
|
2000-04-30 22:52:26 +04:00
|
|
|
# DO NOT EDIT THIS FILE. EDIT THE MAIN.CF FILE INSTEAD. THE STUFF
|
|
|
|
# HERE JUST SERVES AS AN EXAMPLE.
|
|
|
|
#
|
|
|
|
# This file contains example settings of Postfix configuration
|
|
|
|
# parameters that control address rewriting.
|
|
|
|
|
|
|
|
# The allow_percent_hack parameter controls the rewriting of the form
|
|
|
|
# "user%domain" to "user@domain". This is enabled by default.
|
|
|
|
#
|
2002-02-03 02:10:24 +03:00
|
|
|
#allow_percent_hack = no
|
2000-04-30 22:52:26 +04:00
|
|
|
allow_percent_hack = yes
|
|
|
|
|
|
|
|
# The append_at_myorigin controls the rewriting of the form "user" to
|
|
|
|
# "user@$mydomain". This should not be turned off.
|
|
|
|
#
|
|
|
|
append_at_myorigin = yes
|
|
|
|
|
|
|
|
# The append_dot_mydomain controls the rewriting of the form
|
|
|
|
# "user@host" to "user@host.$mydomain". This is enabled by default.
|
|
|
|
#
|
2002-02-03 02:10:24 +03:00
|
|
|
#append_dot_mydomain = no
|
2000-04-30 22:52:26 +04:00
|
|
|
append_dot_mydomain = yes
|
|
|
|
|
|
|
|
# The empty_address_recipient specifies the destination for mail from
|
|
|
|
# <> that is undeliverable (typically, bounce notifications and
|
|
|
|
# other notifications). By default, such mail is sent to MAILER-DAEMON.
|
|
|
|
#
|
|
|
|
empty_address_recipient = MAILER-DAEMON
|
|
|
|
|
2002-02-03 02:10:24 +03:00
|
|
|
# The masquerade_classes parameter controls what addresses are
|
|
|
|
# subject to address masquerading.
|
|
|
|
#
|
|
|
|
# By default, address masquerading is limited to envelope recipient
|
|
|
|
# addresses, and to header sender and header recipient addresses.
|
|
|
|
# This allows you to use address masquerading on a mail gateway while
|
|
|
|
# still being able to forward mail to users on individual machines.
|
|
|
|
#
|
|
|
|
# Specify zero or more of: envelope_sender, envelope_recipient,
|
|
|
|
# header_sender, header_recipient
|
|
|
|
#
|
|
|
|
masquerade_classes = envelope_sender, header_sender, header_recipient
|
|
|
|
|
2002-12-24 22:39:42 +03:00
|
|
|
# The masquerade_domains parameter specifies an optional list of
|
|
|
|
# domains that must have their subdomain structure stripped off.
|
|
|
|
#
|
|
|
|
# The list is processed left to right, and processing stops at the
|
|
|
|
# first match. Thus,
|
|
|
|
#
|
|
|
|
# masquerade_domains = foo.example.com example.com
|
|
|
|
#
|
|
|
|
# strips any.thing.foo.example.com to foo.example.com, but strips
|
|
|
|
# any.thing.else.example.com to example.com.
|
|
|
|
#
|
|
|
|
# A domain name prefixed with ! means do not masquerade this domain
|
|
|
|
# or its subdomains. Thus,
|
|
|
|
#
|
|
|
|
# masquerade_domains = !foo.example.com example.com
|
|
|
|
#
|
|
|
|
# does not change any.thing.foo.example.com and foo.example.com,
|
|
|
|
# but strips any.thing.else.example.com to example.com.
|
2000-04-30 22:52:26 +04:00
|
|
|
#
|
|
|
|
# By default, address masquerading is disabled.
|
|
|
|
#
|
2002-02-03 02:10:24 +03:00
|
|
|
#masquerade_domains = $mydomain
|
2000-04-30 22:52:26 +04:00
|
|
|
masquerade_domains =
|
|
|
|
|
|
|
|
# The masquerade_exceptions parameter gives an optional list of user
|
|
|
|
# names that are not subjected to address masquerading.
|
|
|
|
#
|
|
|
|
# By default, address masquerading makes no exceptions.
|
|
|
|
#
|
2001-03-13 20:45:02 +03:00
|
|
|
#masquerade_exceptions = root,mailer-daemon
|
2000-04-30 22:52:26 +04:00
|
|
|
#masquerade_exceptions = root
|
|
|
|
masquerade_exceptions =
|
|
|
|
|
|
|
|
# The swap_bangpath parameter controls the rewriting of the form
|
|
|
|
# "site!user" to "user@site". This is necessary if your machine is
|
|
|
|
# connected to UUCP networks. It is enabled by default.
|
|
|
|
#
|
2002-02-03 02:10:24 +03:00
|
|
|
#swap_bangpath = no
|
2000-04-30 22:52:26 +04:00
|
|
|
swap_bangpath = yes
|