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,23 @@
|
||||
{
|
||||
return " <!-- no SMTP server available-->" if $sqpsmtpd{'status'} eq "disabled" && $qpsmtpd{'status'} eq "disabled";
|
||||
$port=$sqpsmtpd{'TCPPort'} || '465';
|
||||
$socket="SSL";
|
||||
|
||||
if ($sqpsmtpd{'status'} eq "disabled") {
|
||||
$port=$qpsmtpd{'TCPPort'} || '25';
|
||||
$socket="STARTTLS";
|
||||
}
|
||||
|
||||
$OUT=<<"string_ending_delimiter";
|
||||
<outgoingServer type="smtp">
|
||||
<hostname><?php echo \$_SERVER['SERVER_NAME']; ?></hostname>
|
||||
<port>$port</port>
|
||||
<socketType>$socket</socketType>
|
||||
<username>\%EMAILLOCALPART\%</username>
|
||||
<authentication>password-cleartext</authentication>
|
||||
<!-- <restriction>client-IP-address</restriction> -->
|
||||
<addThisServer>true</addThisServer>
|
||||
<useGlobalPreferredServer>true</useGlobalPreferredServer>
|
||||
</outgoingServer>
|
||||
string_ending_delimiter
|
||||
}
|
Reference in New Issue
Block a user