Skip to content

Conversation

@nirvanameow
Copy link

No description provided.

I noticed that the ssl option in the mail configuration UI sets the IMAP port to 993, which is correct for IMAP over SSL/TLS (IMAPS). However, when verifying an email account in Gmail’s "Check mail from other accounts" feature, port 993 didn’t work because Gmail requires POP3 over SSL/TLS on port 995 (POP3S). This caused confusion since the UI labels this as "IMAP Port," but users may need POP3 for certain setups like Gmail.
The logic ensures a valid primary_hostname is set even during initial setup, with appropriate fallbacks for edge cases.
The solution is split between the installer and a dedicated rebuild script, making it easy to maintain and extend.
The logic ensures a valid primary_hostname is set even during initial setup, with appropriate fallbacks for edge cases.
The solution is split between the installer and a dedicated rebuild script, making it easy to maintain and extend.
The logic ensures a valid primary_hostname is set even during initial setup, with appropriate fallbacks for edge cases.
The solution is split between the installer and a dedicated rebuild script, making it easy to maintain and extend.
…d `acl_check_rcpt`

Adding a primary_hostname placeholder in exim4.conf.template, set to mail.<base domain> via vst-install-debian.sh and v-rebuild-exim4-config.

Updating acl_check_rcpt to allow unauthenticated local domain deliveries on port 25, while blocking non-local sends to prevent relaying.
Adding a primary_hostname placeholder in exim4.conf.template, set to mail.<base domain> via vst-install-debian.sh and v-rebuild-exim4-config.

Updating acl_check_rcpt to allow unauthenticated local domain deliveries on port 25, while blocking non-local sends to prevent relaying.
Adding a primary_hostname placeholder in exim4.conf.template, set to mail.<base domain> via vst-install-debian.sh and v-rebuild-exim4-config.

Updating acl_check_rcpt to allow unauthenticated local domain deliveries on port 25, while blocking non-local sends to prevent relaying.
Adding a primary_hostname placeholder in exim4.conf.template, set to mail.<base domain> via vst-install-debian.sh and v-rebuild-exim4-config.

Updating acl_check_rcpt to allow unauthenticated local domain deliveries on port 25, while blocking non-local sends to prevent relaying.
Added Logic to Derive primary_hostname: After the server hostname ($servername) is set, we added code to derive the Exim primary_hostname as mail.<base domain>. This extracts the base domain from the hostname (e.g., server.example.com → example.com, or server.example.co.uk → example.co.uk for multi-part TLDs), sets primary_hostname to mail.<base domain>, and uses a fallback of mail.example.com if the base domain is invalid.

Updated Exim Configuration Section: Modified the "Configure Exim" section to set the derived primary_hostname in /etc/exim4/exim4.conf.template by replacing the placeholder with the calculated value using sed. This ensures Exim uses the correct primary_hostname (e.g., mail.example.com) during initial setup.

These changes automate the primary_hostname setup, improving email delivery reliability by ensuring the HELO matches the rDNS, without requiring additional user input.
automate the primary_hostname setup
@Neustradamus
Copy link

@nirvanameow: Why have you closed your PR?

@myvesta: What do you think?

@myvesta
Copy link
Owner

myvesta commented May 31, 2025

What was the purpose of this mambo-jumbo PR?
Looks like an AI work to me, because 99% of changed lines are comments :)

Yesterday I saw more insane AI PR - outroll#2319 :)))

@Neustradamus
Copy link

@myvesta: I do not think that it is done by AI but I think that it is good to have informations...

@nirvanameow
Copy link
Author

nirvanameow commented May 31, 2025

Yo, I submitted this merge request to the wrong repository, it was meant for my own, and I realized too late. I'm working on a way to create a better looking dashboard, and I plan to share it with others once it's more solid. Isn't that something of interest?

@myvesta
Copy link
Owner

myvesta commented May 31, 2025

@nirvanameow you can share it with us, of course, it will be nice.
But please make a smaller PR, with a clear focus and purpose.
In this PR, 99% of the changed lines are comments.
So, again, what will we get with this PR, except comments?
Even a line with 993 and 995 ports is wrong, because port 993 is for IMAP, and port 995 is for POP3, and it should not be shown on IMAP settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants