1

Topic: How to setup autoconfig config-v1.1.xml and others file?

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.1 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 22.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? -
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi everyone!

I want to set up Autodiscover and Autoconfiguration for Thunderbird, Outlook, and mobile email clients to make it easier for users. I’ve been looking at the information here: docs.iredmail.org/iredmail-easy.autoconfig.autodiscover.html

I’m using the free version of iRedMail.

I’m trying to figure out where to add the configuration for Nginx:

location /.well-known/autoconfig/mail/config-v1.1.xml {
    root /var/www/html;
    try_files $uri =404;
}

location /.well-known/autodiscover/ {
    root /var/www/html;
    try_files $uri =404;
}

If I add this code to /etc/nginx/sites-available/00-default-ssl.conf, Nginx throws an error:

2025/01/02 11:29:22 [error] 8257#8257: *4 open() "/opt/www/roundcubemail/autoconfig/config-v1.1.xml" failed (2: No such file or directory), client: 193.189.126.222, server: _, request: "GET /mail/autoconfig/config-v1.1.xml HTTP/2.0", host: "mail.mydomain"

Even if I place config-v1.1.xml in /opt/www/roundcubemail/autoconfig/, it opens but doesn’t seem to work as expected. I don’t understand how it’s supposed to function.

Where should I go from here?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.