These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Virtualmin auto Mail client configuration on the new forum.
Bonjour,
L'auto mail client configuration doesn't work for me ! I have activated it in EMAIL SETTINGS in System settings I want the imap and smtp server to be the name of my server (FQDN) in my client's outlook: --> so I edit the autoconfig.cgi file of my Vhosts to replace the variables as follows:
# These variables get replaced when the script is copied
OWNER ="";
US$ER ='customer_domain';
$SMTP_HOST ='server_name_FQDN';
$SMTP_PORT ='465';
$SMTP_TYPE ='SSL';
$SMTP_SSL ='yes';
$SMTP_ENC ='password-cleartext';
$IMAP_HOST ='server_name_FQDN';
$IMAP_PORT ='993';
$IMAP_TYPE ='SSL';
$IMAP_SSL ='yes';
$IMAP_ENC ='password-cleartext';
PREFIX = "customer_domain";
$STYLE ='6';
and this part I didn't edit:
# Outlook
print <<<EOF;
<?xml version="1.0" encoding="utf-8" ?>
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
<Account>
<AccountType>email</AccountType>
<Action>settings</Action>
<Protocol>
<Type>IMAP</Type>
<TTL>24</TTL>
<Server>$IMAP_HOST</Server>
<Port>$IMAP_PORT</Port>
<LoginName>$SMTP_LOGIN</LoginName>
<DomainRequired>off</DomainRequired>
<SSL>$IMAP_SSL</SSL>
<AuthRequired>on</AuthRequired>
</Protocol>
<Protocol>
<Type>SMTP</Type>
<TTL>24</TTL>
<Server>$SMTP_HOST</Server>
<Port>$SMTP_PORT</Port>
<LoginName>$SMTP_LOGIN</LoginName>
<DomainRequired>off</DomainRequired>
<SSL>$SMTP_SSL</SSL>
<AuthRequired>on</AuthRequired>
</Protocol>
</Account>
</Response>
</Autodiscover>
EOF
and despite that the names of the imap and smtp servers remain mail.customer_domain. and SSL is not even activated! What could be the problem?
In firefox https://customer_domain/cgi-bin/autoconfig.cgi?emailaddress=name@customer_domain the information is correct, however
Thanks for help !