2 require_once(
"../class/config_nochk.php");
4 header (
"Content-Type:text/xml");
7 # wget -O - -q http://FQDN/mailautoconfig_thunderbird.php?emailaddress=test@example.tld
9 if (empty($_GET[
'emailaddress'])) die(_(
"Error: Missing GET of emailaddress"));
12 if (empty(
$emailDomain)) die(_(
'Error: Empty $emailDomain'));
14 <clientConfig version=
"1.1">
15 <emailProvider
id=
"<?php echo $L_FQDN ?>">
17 <displayName><?php echo $L_FQDN ?></displayName>
18 <displayShortName><?php echo $L_FQDN ?></displayShortName>
19 <incomingServer type=
"imap">
20 <hostname><?php echo $mail->srv_imap ;?></hostname>
22 <socketType>SSL</socketType>
23 <authentication>password-cleartext</authentication>
24 <username>%EMAILADDRESS%</username>
26 <incomingServer type=
"pop3">
27 <hostname><?php echo $mail->srv_imaps;?></hostname>
29 <socketType>SSL</socketType>
30 <authentication>password-cleartext</authentication>
31 <username>%EMAILADDRESS%</username>
33 <outgoingServer type=
"smtp">
34 <hostname><?php echo $mail->srv_smtp;?></hostname>
36 <socketType>STARTTLS</socketType>
37 <username>%EMAILADDRESS%</username>
38 <authentication>password-cleartext</authentication>
40 <outgoingServer type=
"smtp">
41 <hostname><?php echo $mail->srv_smtps;?></hostname>
43 <socketType>SSL</socketType>
44 <authentication>password-cleartext</authentication>
45 <username>%EMAILADDRESS%</username>