diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-01-21 13:12:06 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-01-21 13:12:06 +0100 |
commit | 357f9c831a7b1d01a6f7dfd40f44f77acde15a54 (patch) | |
tree | 5f6ca53a2b2f342754170adfb0f69eced6e5a164 /config/defaults.inc.php | |
parent | bc0afad1b3180c1e8a60a4cc53360db2f5078356 (diff) |
Support SMTP socket context options via new config option 'smtp_conn_options'
Diffstat (limited to 'config/defaults.inc.php')
-rw-r--r-- | config/defaults.inc.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/config/defaults.inc.php b/config/defaults.inc.php index b1e3bc85e..8c9b96f1a 100644 --- a/config/defaults.inc.php +++ b/config/defaults.inc.php @@ -235,6 +235,19 @@ $config['smtp_helo_host'] = ''; // timeout > 0 causes connection errors (https://bugs.php.net/bug.php?id=54511) $config['smtp_timeout'] = 0; +// SMTP socket context options +// See http://php.net/manual/en/context.ssl.php +// The example below enables server certificate validation, and +// requires 'smtp_timeout' to be non zero. +// $config['smtp_conn_options'] = array( +// 'ssl' => array( +// 'verify_peer' => true, +// 'verify_depth => 3, +// 'cafile' => '/etc/openssl/certs/ca.crt', +// ), +// ); +$config['smtp_conn_options'] = null; + // ---------------------------------- // LDAP // ---------------------------------- |