Add SSL options to GETMAIL section so getmail can be used with gmail and others that force SSL
Add SSL options to GETMAIL section so getmail can be used with gmail and others that force SSL:
Solution:
/usr/local/interface/web/mail/form/mail_get.tform.php
change line 76 from:
'value' => array('pop3' => 'POP3','imap'=>'IMAP')
to
'value' => array('pop3' => 'POP3','imap'=>'IMAP','pop3ssl' => 'POP3SSL','imapssl'=>'IMAPSSL')
/usr/local/ispconfig/server/plugins-enabled/getmail_plugin.inc.php
starting at line 112 change:
// Set the data retriever
if($data["new"]["type"] == 'pop3') {
tpl = str_replace('{TYPE}','SimplePOP3Retriever',
tpl);
} elseif ($data["new"]["type"] == 'imap') {
tpl = str_replace('{TYPE}','SimpleIMAPRetriever',
tpl);
}
to:
// Set the data retriever
if($data["new"]["type"] == 'pop3') {
tpl = str_replace('{TYPE}','SimplePOP3Retriever',
tpl);
} elseif ($data["new"]["type"] == 'imap') {
tpl = str_replace('{TYPE}','SimpleIMAPRetriever',
tpl);
} elseif ($data["new"]["type"] == 'pop3ssl') {
tpl = str_replace('{TYPE}','SimplePOP3SSLRetriever',
tpl);
} elseif ($data["new"]["type"] == 'imapssl') {
tpl = str_replace('{TYPE}','SimpleIMAPSSLRetriever',
tpl);
}