auto-configured mailsettings

Discussion in 'General' started by pyte, Nov 28, 2023.

  1. pyte

    pyte Well-Known Member HowtoForge Supporter

    Hi,
    is there any email autoconf functionality built into ISPConfig? I've found the plugin that florian built, but it seems unmaintained.
    If there is no built-in function already, any recommendations whats you guys use?
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Do you mean e-mail client gets server settings automatically?
    It works with ISPConfig, I think I followed instructions by Florian. Problem is it does not work with Outlook, all other e-mail clients I tried did get the server settings correctly.
    So it is pretty much useless, since microsoft e-mail clients are so popular. I did not want to explain to users why they have to type in the settings manually.
     
    ahrasis likes this.
  3. pyte

    pyte Well-Known Member HowtoForge Supporter

    Exactly.
    Well i thought about using https://gitlab.com/onlime/email-autoconf it seems like it supports Autoconfig, Autodiscover and Mobileconfig and you can run it locally and expose it with apache/nginx as a reverse proxy.

    I might test this on a Dev envoirenment and see if it's viable.
     
    Th0m and ahrasis like this.
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  5. pyte

    pyte Well-Known Member HowtoForge Supporter

    Can you provide me the Autodiscover.xml response you get from your server? I'd like to see what change and edit the code to make it work with current versions again. It can't be that hard.

    This is a valid response that should work:

    Code:
    <?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">
        <User>
          <DisplayName>[email protected]</DisplayName>
        </User>
        <Account>
          <AccountType>email</AccountType>
          <Action>settings</Action>
          <Protocol>
            <Type>IMAP</Type>
            <Server>mail.server.tld</Server>
            <Port>143</Port>
            <SPA>off</SPA>
            <Encryption>Auto</Encryption>
            <SSL>on</SSL>
            <AuthRequired>on</AuthRequired>
            <DomainRequired>off</DomainRequired>
            <LoginName>[email protected]</LoginName>
          </Protocol>
          <Protocol>
            <Type>POP3</Type>
            <Server>mail.server.tld</Server>
            <Port>995</Port>
            <SPA>off</SPA>
            <Encryption>Auto</Encryption>
            <SSL>on</SSL>
            <AuthRequired>on</AuthRequired>
            <DomainRequired>off</DomainRequired>
            <LoginName>[email protected]</LoginName>
          </Protocol>
          <Protocol>
            <Type>SMTP</Type>
            <Server>mail.server.tld</Server>
            <Port>587</Port>
            <SPA>off</SPA>
            <Encryption>Auto</Encryption>
            <SSL>on</SSL>
            <AuthRequired>on</AuthRequired>
            <UsePOPAuth>on</UsePOPAuth>
            <SMTPLast>off</SMTPLast>
            <DomainRequired>off</DomainRequired>
            <LoginName>[email protected]</LoginName>
          </Protocol>
        </Account>
      </Response>
    </Autodiscover>
    There can't be that much difference
     
    Last edited: Nov 30, 2023
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Seems automail on my server is not working anymore. I think I removed it, did not want to explain to users why sometimes automail works and sometimes not.
    But I remember now it was the Schaal instructions in #4 I followed when installing.
     
  7. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    The response differs for autoconfig and autodiscover. See the code for automail.
     
  8. pyte

    pyte Well-Known Member HowtoForge Supporter

    Oh i'm aware. I was just talking about autodiscover as Taleman mentioned that that's the part thats broken.
    Still i guess it's easier to come up with a solution myself as i don't need what this offers. I just need 1 config for all, as they all use the same mailserver config. So a little php and some DNS records should do the trick.

    I'll update this with what i've done, if i manage a working solution.
     
    ahrasis and Th0m like this.

Share This Page