| | |
| | | |
| | | var $postfix_config_dir = '/etc/postfix'; |
| | | |
| | | //* This function is called during ispconfig installation to determine |
| | | // if a symlink shall be created for this plugin. |
| | | function onInstall() { |
| | | global $conf; |
| | | |
| | | if($conf['services']['mail'] == true) { |
| | | return true; |
| | | } else { |
| | | return false; |
| | | } |
| | | |
| | | } |
| | | |
| | | /* |
| | | This function is called when the plugin is loaded |
| | | */ |
| | |
| | | exec("postconf -e 'relayhost ='"); |
| | | } |
| | | |
| | | exec("postconf -e 'mailbox_size_limit = ".intval($mail_config["mailbox_size_limit"])."'"); |
| | | exec("postconf -e 'message_size_limit = ".intval($mail_config["message_size_limit"])."'"); |
| | | exec("postconf -e 'mailbox_size_limit = ".intval($mail_config["mailbox_size_limit"]*1024*1024)."'"); |
| | | exec("postconf -e 'message_size_limit = ".intval($mail_config["message_size_limit"]*1024*1024)."'"); |
| | | |
| | | } |
| | | |