SYSTEM INFORMATION |
|
OS type and version |
Almalinux 9 |
Webmin version |
2.202 |
Virtualmin version |
7.20.2 Pro |
Webserver version |
Apache 2.4 |
Related packages |
|
When Virtualmin generates the autoconfig.cgi file, the $IMAP_HOST variable does not include the domain part. For instance:
# These variables get replaced when the script is copied
$OWNER = "";
$USER = 'domain.com';
$SMTP_HOST = 'mail.domain.com';
$SMTP_PORT = '587';
$SMTP_TYPE = 'STARTTLS';
$SMTP_SSL = 'no';
$SMTP_SSL2 = 'off';
$SMTP_ENC = 'password-cleartext';
$IMAP_HOST = 'mail.';
$IMAP_PORT = '993';
$IMAP_TYPE = 'SSL';
$IMAP_SSL = 'yes';
$IMAP_ENC = 'password-cleartext';
$PREFIX = 'domain.com';
$STYLE = '6';
Maybe I’ve something wrong in my Virtualmin configuration, but I don’t know where to look. Any clues?
Regards
@RobertoPastor,
Send us the content from:
*** There should be a “Thunderbird” and “Outlook” version shown on screen ***
This is the Thunderbird configuration:
<?xml version="1.0" encoding="UTF-8"?>
<clientConfig version="1.1">
<emailProvider id="$SMTP_DOMAIN">
<domain>$SMTP_DOMAIN</domain>
<displayName>$OWNER</displayName>
<displayShortName>$OWNER</displayShortName>
<incomingServer type="imap">
<hostname>$IMAP_HOST</hostname>
<port>$IMAP_PORT</port>
<socketType>$IMAP_TYPE</socketType>
<authentication>$IMAP_ENC</authentication>
<username>$SMTP_LOGIN</username>
</incomingServer>
<incomingServer type="pop3">
<hostname>$IMAP_HOST</hostname>
<port>$POP3_PORT</port>
<socketType>$IMAP_TYPE</socketType>
<authentication>$POP3_ENC</authentication>
<username>$SMTP_LOGIN</username>
</incomingServer>
<outgoingServer type="smtp">
<hostname>$SMTP_HOST</hostname>
<port>$SMTP_PORT</port>
<socketType>$SMTP_TYPE</socketType>
<authentication>$SMTP_ENC</authentication>
<username>$SMTP_LOGIN</username>
</outgoingServer>
</emailProvider>
</clientConfig>
And the Outlook one:
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
<User>
<DisplayName>$OWNER</DisplayName>
</User>
<Account>
<AccountType>email</AccountType>
<Action>settings</Action>
<Protocol>
<Type>IMAP</Type>
<Server>$IMAP_HOST</Server>
<Port>$IMAP_PORT</Port>
<DomainRequired>off</DomainRequired>
<SPA>off</SPA>
<SSL>$IMAP_SSL2</SSL>
<Encryption>auto</Encryption>
<AuthRequired>on</AuthRequired>
<LoginName>$SMTP_LOGIN</LoginName>
</Protocol>
<Protocol>
<Type>SMTP</Type>
<Server>$SMTP_HOST</Server>
<Port>$SMTP_PORT</Port>
<DomainRequired>off</DomainRequired>
<SPA>off</SPA>
<SSL>$SMTP_SSL2</SSL>
<Encryption>auto</Encryption>
<AuthRequired>on</AuthRequired>
<LoginName>$SMTP_LOGIN</LoginName>
</Protocol>
</Account>
</Response>
</Autodiscover>
In both sections the Automatically generated option is checked.
@RobertoPastor,
Thanks.
So just to clarify, “SMTP_HOST” gets set correctly, but “IMAP_HOST” does not.
Ex.
@Ilia perhaps there’s a bug? Could you take a look, and provide some insights when you have a moment?
Ilia
5
I believe this bug has been fixed in the upcoming Virtualmin 7.30.0 release.
1 Like
Hi,
Thanks for your replies.
I’ll wait for the next Virtualmin release and test if it has been resolved.