summaryrefslogtreecommitdiff
path: root/gnu/dist/postfix/conf/sample-rewrite.cf
blob: b4073fb4be087a6cd334364608c6de4784d5ac55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 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.
#
# allow_percent_hack = no
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.
#
# append_dot_mydomain = no
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

# The masquerade_domains parameter gives an optional list of domains
# that must have their subdomain structure stripped off.
#
# By default, address masquerading is disabled.
#
# masquerade_domains = $mydomain
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.
# 
#masquerade_exceptions = root,mailer-daemon
#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.
#
# swap_bangpath = no
swap_bangpath = yes