Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify server ports #7

Open
lekr74 opened this issue Jan 13, 2024 · 1 comment
Open

Specify server ports #7

lekr74 opened this issue Jan 13, 2024 · 1 comment
Labels
question Further information is requested

Comments

@lekr74
Copy link

lekr74 commented Jan 13, 2024

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
Copy link
Member

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

@williamdes williamdes added the question Further information is requested label Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants