wdes / mail-autodiscover-autoconfig

A docker image to deploy to have a dynamic autodiscover XML and autoconfig XML host. Supports Outlook, Thunderbird, Apple, some Android apps, and more..
https://hub.docker.com/r/wdes/mail-autodiscover-autoconfig
Mozilla Public License 2.0
23 stars 1 forks source link

Specify server ports #7

Open lekr74 opened 10 months ago

lekr74 commented 10 months ago

Hello,

I deployed your container, and it’s working great for both iOS and thunderbird. In the meantime I have an issue with outlook (the old way to configure via Control Panel) : It does detect that it’s an IMAP server, but fails to configure it properly (port and authentication) for IMAp and SMTP. So, is there a way to specify ports for both protocols, and that the submission server needs authentication ? I tried adding port to the server details on the compose file, but it doesn’t seems to change anything Here's my compose file :

version: "3"
services:
  mail-autodiscover-autoconfig:
    image: wdes/mail-autodiscover-autoconfig:latest
    mem_limit: 120M
    mem_reservation: 50M
    restart: on-failure:40
    ports:
      - 8088:80
    environment:
      ROCKET_PROFILE: production
      ROCKET_ADDRESS: 0.0.0.0
      ROCKET_PORT: "80"
      # https://www.uuidgenerator.net/
      # Re-generate the two UUIDs below
      APPLE_MAIL_UUID: 6761f511-ffd8-4c01-bf1e-1563182044ca
      APPLE_PROFILE_UUID: 856ac4fe-af7f-4290-802f-975e9df962fa
      # CUSTOM_DOMAINS: foo.tld
      # (optional: CUSTOM_DOMAINS) List of domains that will use {imap,pop,smtp}.domain.tld instead of the hosts below
      IMAP_HOSTNAME: mail.domain.fr:993
      POP_HOSTNAME: mail.domain.fr
      SMTP_HOSTNAME: mail.domain.fr:465
networks: {}

Thanks in advance

williamdes commented 10 months ago

Hi @lekr74

This is a good request, and maybe the simplest way wound indeed be to specify the port like you did.

That said I am not sure this is needed anyway, as you can see the ports are already there: https://github.com/wdes/mail-autodiscover-autoconfig/blob/main/templates/xml/autodiscover.xml.tera

I would advise you to debug to be sure the request hits the server, and if yes on what path. Microsoft Outlook was the one that does not want to work correctly in my tests. It only wants to understand active sync, but using the old mode it should work.

IIRC, this is the config you may neeed:

ROCKET_PROFILE: debug

Maybe I missed something, or you did in your DNS. Outlook is complicated, but let me know what you can find out. See: https://www.howto-outlook.com/howto/autodiscoverconfiguration.htm