diff options
author | jim-p <jimp@pfsense.org> | 2011-03-29 10:23:53 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-03-29 10:23:53 -0400 |
commit | 585837f2a0e69bf29feb56b155562e96396e3933 (patch) | |
tree | e4d981babfb806f09dc98f91694dc69a04f41b67 /config/postfix/postfix.inc | |
parent | 3158f08f146b6f2834bf0291048adf6b2dd49303 (diff) | |
download | pfsense-packages-585837f2a0e69bf29feb56b155562e96396e3933.tar.gz pfsense-packages-585837f2a0e69bf29feb56b155562e96396e3933.tar.bz2 pfsense-packages-585837f2a0e69bf29feb56b155562e96396e3933.zip |
Add a field to the postfix forwarder package to set the max message size.
Diffstat (limited to 'config/postfix/postfix.inc')
-rw-r--r-- | config/postfix/postfix.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/postfix/postfix.inc b/config/postfix/postfix.inc index f100a937..cf470c8f 100644 --- a/config/postfix/postfix.inc +++ b/config/postfix/postfix.inc @@ -35,9 +35,12 @@ function sync_package_postfix() { $relay_domains = ""; $transport = ""; + $message_size_limit = "10240000"; if (is_array($config['installedpackages']['postfix']['config'])) { foreach ($config['installedpackages']['postfix']['config'] as $postfix_config) { + if (isset($postfix_config['message_size_limit'])) + $message_size_limit = $postfix_config['message_size_limit']; if (is_array($postfix_config['row'])) { foreach ($postfix_config['row'] as $postfix_row) { $relay_domains .= ' ' . $postfix_row['domain']; @@ -53,7 +56,8 @@ function sync_package_postfix() { "transport_maps = hash:/usr/local/etc/postfix/transport\n" . "local_recipient_maps =\n" . "mydestination =\n" . - "mynetworks_style = host\n"; + "mynetworks_style = host\n" . + "message_size_limit = {$message_size_limit}\n"; conf_mount_rw(); |