initial commit of file from CVS for smeserver-autodiscover on Sat Sep 7 20:08:09 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:08:09 +10:00
parent 9379997240
commit d6803694bc
35 changed files with 403 additions and 2 deletions

View File

@@ -0,0 +1,30 @@
{
$OUT=<<'string_ending_delimiter';
<Protocol>
<Type>SMTP</Type>
<Server><?php echo $_SERVER['SERVER_NAME']; ?></Server>
<Port>25</Port>
<SPA>off</SPA>
<Encryption>TLS</Encryption>
<SSL>on</SSL>
<AuthRequired>on</AuthRequired>
<?php echo $LoginName; ?>
</Protocol>
string_ending_delimiter
#if we start support for port 587 submisison we would need to alter this
return $OUT unless $sqpsmtpd{'status'} eq "enabled";
$OUT=<<'string_ending_delimiter';
<Protocol>
<Type>SMTP</Type>
<Server><?php echo $_SERVER['SERVER_NAME']; ?></Server>
<Port>465</Port>
<SPA>off</SPA>
<SSL>on</SSL>
<AuthRequired>on</AuthRequired>
<?php echo $LoginName; ?>
</Protocol>
string_ending_delimiter
}