| | |
| | | |
| | | if($mail_config["relayhost"] != '') { |
| | | exec("postconf -e 'relayhost = ".$mail_config["relayhost"]."'"); |
| | | exec("postconf -e 'smtp_sasl_auth_enable = yes'"); |
| | | if($mail_config["relayhost_user"] != '' && $mail_config["relayhost_password"] != '') { |
| | | exec("postconf -e 'smtp_sasl_auth_enable = yes'"); |
| | | } else { |
| | | exec("postconf -e 'smtp_sasl_auth_enable = no'"); |
| | | } |
| | | exec("postconf -e 'smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd'"); |
| | | exec("postconf -e 'smtp_sasl_security_options ='"); |
| | | |
| | |
| | | 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)."'"); |
| | | |
| | | } |
| | | |