initial commit of file from CVS for smeserver-autodiscover on Sat Sep 7 20:08:09 AEST 2024
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
{
|
||||
return " <!-- no IMAP server available-->\n" if $imaps{'status'} eq "disabled" && $imap{'access'} eq "localhost";
|
||||
$port=$imaps{'TCPPort'} || '993';
|
||||
$socket="SSL";
|
||||
|
||||
if ($imaps{'status'} eq "disabled") {
|
||||
$port=$qpsmtpd{'TCPPort'} || '143';
|
||||
$socket="STARTTLS";
|
||||
}
|
||||
|
||||
$OUT=<<"string_ending_delimiter";
|
||||
<incomingServer type="imap">
|
||||
<hostname><?php echo \$_SERVER['SERVER_NAME']; ?></hostname>
|
||||
<port>$port</port>
|
||||
<socketType>$socket</socketType>
|
||||
<username>\%EMAILLOCALPART\%</username>
|
||||
<authentication>password-cleartext</authentication>
|
||||
</incomingServer>
|
||||
string_ending_delimiter
|
||||
}
|
Reference in New Issue
Block a user