smeserver-autodiscover/root/etc/e-smith/templates/var/www/Autodiscover/Autodiscover.php/30SMTP

31 lines
824 B
Plaintext

{
$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
}