diff options
Diffstat (limited to 'conf.d/040_transports.conf')
-rw-r--r-- | conf.d/040_transports.conf | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/conf.d/040_transports.conf b/conf.d/040_transports.conf new file mode 100644 index 0000000..3a885d4 --- /dev/null +++ b/conf.d/040_transports.conf | |||
@@ -0,0 +1,68 @@ | |||
1 | ###################################################################### | ||
2 | # TRANSPORTS CONFIGURATION # | ||
3 | ###################################################################### | ||
4 | # ORDER DOES NOT MATTER # | ||
5 | # Only one appropriate transport is called for each delivery. # | ||
6 | ###################################################################### | ||
7 | |||
8 | # A transport is used only when referenced from a router that successfully | ||
9 | # handles an address. | ||
10 | |||
11 | begin transports | ||
12 | |||
13 | |||
14 | # This transport is used for delivering messages over SMTP connections. | ||
15 | # Refuse to send any message with over-long lines, which could have | ||
16 | # been received other than via SMTP. The use of message_size_limit to | ||
17 | # enforce this is a red herring. | ||
18 | |||
19 | remote_smtp: | ||
20 | driver = smtp | ||
21 | message_size_limit = ${if > {$max_received_linelength}{998} {1}{0}} | ||
22 | |||
23 | |||
24 | # This transport is used for local delivery to user mailboxes in traditional | ||
25 | # BSD mailbox format. By default it will be run under the uid and gid of the | ||
26 | # local user, and requires the sticky bit to be set on the /var/mail directory. | ||
27 | # Some systems use the alternative approach of running mail deliveries under a | ||
28 | # particular group instead of using the sticky bit. The commented options below | ||
29 | # show how this can be done. | ||
30 | |||
31 | local_delivery: | ||
32 | driver = appendfile | ||
33 | file = /var/mail/$local_part | ||
34 | delivery_date_add | ||
35 | envelope_to_add | ||
36 | return_path_add | ||
37 | # group = mail | ||
38 | # mode = 0660 | ||
39 | |||
40 | |||
41 | # This transport is used for handling pipe deliveries generated by alias or | ||
42 | # .forward files. If the pipe generates any standard output, it is returned | ||
43 | # to the sender of the message as a delivery error. Set return_fail_output | ||
44 | # instead of return_output if you want this to happen only when the pipe fails | ||
45 | # to complete normally. You can set different transports for aliases and | ||
46 | # forwards if you want to - see the references to address_pipe in the routers | ||
47 | # section above. | ||
48 | |||
49 | address_pipe: | ||
50 | driver = pipe | ||
51 | return_output | ||
52 | |||
53 | |||
54 | # This transport is used for handling deliveries directly to files that are | ||
55 | # generated by aliasing or forwarding. | ||
56 | |||
57 | address_file: | ||
58 | driver = appendfile | ||
59 | delivery_date_add | ||
60 | envelope_to_add | ||
61 | return_path_add | ||
62 | |||
63 | |||
64 | # This transport is used for handling autoreplies generated by the filtering | ||
65 | # option of the userforward router. | ||
66 | |||
67 | address_reply: | ||
68 | driver = autoreply | ||