smeserver-autodiscover/root/etc/e-smith/templates/var/www/Autodiscover/Mozilla.php/20POP3

27 lines
958 B
Plaintext
Raw Normal View History

{
return " <!-- no POP3 server available-->\n" if $pop3s{'status'} eq "disabled" && $pop3s{'status'} eq "disabled";
$port=$pop3s{'TCPPort'} || '995';
$socket="SSL";
if ($pop3s{'status'} eq "disabled" && $pop3{'status'} eq "enabled") {
$port=$pop3{'TCPPort'} || '25';
$socket="STARTTLS";
}
$OUT=<<"string_ending_delimiter";
<incomingServer type="pop3">
<hostname><?php echo \$_SERVER['SERVER_NAME']; ?></hostname>
<port>$port</port>
<socketType>$socket</socketType>
<username>\%EMAILLOCALPART\%</username>
<authentication>password-cleartext</authentication>
<pop3>
<leaveMessagesOnServer>true</leaveMessagesOnServer>
<downloadOnBiff>true</downloadOnBiff>
<daysToLeaveMessagesOnServer>14</daysToLeaveMessagesOnServer>
</pop3>
<!-- <password>optional: the user's password</password>-->
</incomingServer>
string_ending_delimiter
}