From dbe252d56cbb87bf749c108299f99d831c388241 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 28 Mar 2017 15:58:14 +0200 Subject: Configure routers and transports, with DKIM and SSL --- conf.d/040_transports.conf | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) (limited to 'conf.d/040_transports.conf') diff --git a/conf.d/040_transports.conf b/conf.d/040_transports.conf index 3a885d4..af605d5 100644 --- a/conf.d/040_transports.conf +++ b/conf.d/040_transports.conf @@ -17,8 +17,13 @@ begin transports # enforce this is a red herring. remote_smtp: - driver = smtp + driver = smtp message_size_limit = ${if > {$max_received_linelength}{998} {1}{0}} + dkim_domain = $sender_address_domain + dkim_selector = SHORT_HOSTNAME + dkim_private_key = DKIMDIR/$dkim_selector._domainkey.$dkim_domain.pem + dkim_canon = relaxed + dkim_strict = yes # This transport is used for local delivery to user mailboxes in traditional @@ -28,16 +33,22 @@ remote_smtp: # particular group instead of using the sticky bit. The commented options below # show how this can be done. -local_delivery: - driver = appendfile - file = /var/mail/$local_part - delivery_date_add - envelope_to_add - return_path_add +#local_delivery: +# driver = appendfile +# file = /var/mail/$local_part +# delivery_date_add +# envelope_to_add +# return_path_add # group = mail # mode = 0660 +dovecot_lmtp: + driver = smtp + protocol = lmtp + port = 24 + + # This transport is used for handling pipe deliveries generated by alias or # .forward files. If the pipe generates any standard output, it is returned # to the sender of the message as a delivery error. Set return_fail_output @@ -47,7 +58,7 @@ local_delivery: # section above. address_pipe: - driver = pipe + driver = pipe return_output @@ -55,7 +66,7 @@ address_pipe: # generated by aliasing or forwarding. address_file: - driver = appendfile + driver = appendfile delivery_date_add envelope_to_add return_path_add @@ -64,5 +75,5 @@ address_file: # This transport is used for handling autoreplies generated by the filtering # option of the userforward router. -address_reply: - driver = autoreply +#address_reply: +# driver = autoreply -- cgit v1.2.3