1

Topic: Auto-configure Issues

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version: 1.5.2
- Deployed with installer (IIRC)
- Linux/BSD distribution name and version: Ubuntu 20.04.4 LTS
- Store mail accounts in which backend: PostgreSQL
- Web server: Nginx
- Manage mail accounts with iRedAdmin-Pro? No
====

I recently set up a secondary domain on my iRedMail server and decided to try implementing auto-configuration for the users' mail clients. I found a repo on GitHub from Earl0fPudding titled Outlook autodiscover with nginx with a PHP script for implementing it in Nginx and followed the directions to add the DNS entries and the vhost configuration settings. I added the PHP files to the site folder, used certbot to get a new SSL, and restarted Nginx, Postfix, and Dovecot. Everything seems to be working great for this secondary domain and I was able to have my Thunderbird mail client automatically detect the server settings.

I then tried to implement the same settings for the "primary" domain on the same iRedMail server. However, when I tried to set up an email address for that domain in Thunderbird, it can't seem to find the server settings, then it takes me to the manual configuration settings page.

I initially thought the problem might simply be due to a DNS propagation issue, so I waited several hours to test again, but still no luck. I cleared Thunderbird's cache and tried again, but it still fails. I even tried from a completely different workstation with a fresh install of Thunderbird, but it can't find the mail server settings.

I've gone over all of the files I've had to work with, as well as the DNS records on my host with a fine-toothed comb, but I'm coming up empty.

One thing I realized when going through my initial setup was that the information on GitHub was telling me to configure the Nginx site to use a Unix socket for communication with PHP, but when I looked at the configuration settings to confirm what I needed to put there, I realized it was just using a TCP port, so I tweaked the vhost server block to use that instead of the socket.

Like I said, I've gone over and over all of these files and settings, looking for differences between the "working" domain and the one that won't detect the settings. Whatever the problem is, I'm sure I'm just overlooking it, but I'm still pretty new to the Linux world in general and I'm having difficulty figuring out where to look now.

Since I can't seem to post the actual contents of files b/c the forum system thinks I'm trying to post links and the fact that I'm a complete newbie when it comes to working in Linux, I've attached some of the files in an effort to "clarify" anything I wasn't clear about. Please let me know if there's any other information I can provide to help. Thank you.

Post's attachments

my_settings.zip 4.98 kb, 2 downloads since 2023-02-06 

You don't have the permssions to download the attachments of this post.

----

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

2

Re: Auto-configure Issues

BTW: Auto-configuration settings might be a nice option to include during the iRedMail installation. Just sayin'. wink

3

Re: Auto-configure Issues

I'm afraid that you have to contact the author of this solution for support.

4

Re: Auto-configure Issues

Okay, thank you. I was hoping that it might be something "obvious" that I was overlooking, but I'll repost my question on the GitHub repo's issues page.

5

Re: Auto-configure Issues

Quick update: Even though I realize this isn't an iRedMail issue, I wanted to report that I was able to track down the problem. It was a stupid, simple copy/paste error on my part in the config.xml file. One of the comment tags wasn't closed properly, so the PHP wasn't able to parse the configuration settings properly.

Sorry for bothering you about it, but I figured I'd pass it along.