Author Topic: Mail server different as Hostname  (Read 57545 times)

0 Members and 2 Guests are viewing this topic.

Offline
*****
Re: Mail server different as Hostname
« Reply #15 on: October 25, 2020, 07:00:49 PM »
So in the client mail, I want the possibility to put the SSL parameters as : mail server : mail.tartempion.org, not centos.xxxxx.com

You got it? I'm going crazy....
mail_version = 3.4.7

The current version of CWP 0.9.8.1020 on CentOS 8 it's working OK.
Before installing CWP I setup the Dovecot Repo.

You just have to make sure you have the SSL certificate create a mail.domainname

As long as your DNS is setup correctly, the mail client (I use Thunderbird) will touch the domain and server and auto set it to mail.domainname

Offline
*
Re: Mail server different as Hostname
« Reply #16 on: November 26, 2020, 08:04:55 PM »
ok, I'll look at the Dovecot Repo, I use Postfix Mail Server that comes in CWP.
But I can't uninstall CWP, so I'll see how to fix it with Dovecot Repo.

Thanks a lot

Offline
*****
Re: Mail server different as Hostname
« Reply #17 on: November 27, 2020, 12:32:16 AM »
mail.domainname has been working for several revisions also, at least it has on our setup using the repo.

You might also have to rebuild the mail server.

Offline
*
Re: Mail server different as Hostname
« Reply #18 on: January 19, 2021, 08:19:29 PM »
I'm having this same issue with SSL and Outlook.

Have the Inbound & outbound email server setup as mail.domain.com, but Outlook comes up with a certificate error and shows self signed certificate for the host name.

And you have to accept every time you open Outlook.
cPanel doesn't have this problem.

How do you fix this problem with CWP?


Thanks,
David

I am using CWP Pro and I have the same issue. I get a popup indicating the usage of a certificate than can't be verified. So, it is not possible to fix this and use Outlook just like it works with cPanel?

Offline
*****
Re: Mail server different as Hostname
« Reply #19 on: January 19, 2021, 10:11:18 PM »
Quote

I am using CWP Pro and I have the same issue. I get a popup indicating the usage of a certificate than can't be verified. So, it is not possible to fix this and use Outlook just like it works with cPanel?

We haven't had this issue for awhile now with CWPpro. Even worked with the CWP DNS defaults and the Free SSL certificate.

We are using the Dovecot from their own repo though.

Offline
*
Re: Mail server different as Hostname
« Reply #20 on: February 23, 2021, 09:58:20 PM »
Hello,

I also have a problem with CWP Pro and mail SSL certificates.

I have created the domain example.com and created email account for the same as user@domain.com. Here, domain.com has its own SSL certificate.
When I add the same in mail client (Outlook in my case), I have entered incoming mail server as domain.com and selected all the available options for security (like SSL/TLS, SSL/TLS (Accept all certificates), STARTTLS, STARTTLS (Accept all certificates)). But, the server is rendering only the main hostname certificate instead of the mail address's domain certificate.

Does anyone know how to fix this so when I configuring Outlook it will use certs for domain.com and not from hostname?

Thanks and best regards

CWPpro version: 0.9.8.1047
mail_version = 3.4.7
« Last Edit: February 23, 2021, 10:01:03 PM by mbdoms »

Offline
*
Re: Mail server different as Hostname
« Reply #21 on: March 27, 2021, 01:37:03 PM »
CentOS Web Panel (CWP) is a free web hosting control panel that offers easy managemet of multiple servers (both Dedicated and VPS) without the need to access server through SSH for every small task that you need to complete and if want to watch movies on online best site is https://www.ghdsports.net/download/

Offline
*****
Re: Mail server different as Hostname
« Reply #22 on: March 27, 2021, 06:36:08 PM »
hi don't update postfix version we'll update it when necessary

Offline
*
Re: Mail server different as Hostname
« Reply #23 on: April 29, 2021, 08:33:40 AM »
So I too have this issue and I have a partial fix until postfix 3.x arrives, but there is one little issue left.

I have found that adding a cname record to the users dns zone will receive emails but not send. Adding an account on Android and Thunderbird will not give any certificate errors, will setup the account with no issue. On sending Thunderbird gives the certificate error, if you accept the exception, mail will send with no issue. On Android it says it sent but never arrives.

The CNAME record is from your hostname server to your user domain.
example:

RECORD NAME        TTL                RECORDS             
srv.myserver.com.     14400           mail.bobsdomain.com

the issue is the sending through smtp.bobsdomain.com:587

Offline
*
Re: Mail server different as Hostname
« Reply #24 on: April 29, 2021, 08:47:40 AM »
Ok, I got it working!!! You need to have two CNAME records added to the users DNS ZONE, "hostname and domain name".

RECORD NAME           TTL                RECORDS             
srv.myserver.com.     14400           mail.bobsdomain.com

myserver.com.          14400           mail.bobsdomain.com

now mail.bobsdomain.com will work with sending and receiving with no certificate errors
« Last Edit: April 29, 2021, 09:22:20 AM by joaomach »

Offline
*****
Re: Mail server different as Hostname
« Reply #25 on: April 30, 2021, 01:01:57 AM »
Actually you need to spilt off the mail, and not have it as a CNAME.

So you would change your MX to point to mail.domainname
And then create an A record for mail.

Then make sure you have a SSL certificate with the mail. prefix

Offline
*
Re: Mail server different as Hostname
« Reply #26 on: May 29, 2021, 04:53:06 PM »
@Starburst so if I may, let me understand correctly, because I want to learn this.

CWP7 serverName: server.com
CWP7 user acct: myuser.com

in DNS zone for myuser.com, create an MX record to point to mail.myuser.com
Then create an A record for mail, correct?

Offline
*****
Re: Mail server different as Hostname
« Reply #27 on: May 30, 2021, 02:36:14 AM »
@Starburst so if I may, let me understand correctly, because I want to learn this.

CWP7 serverName: server.com
CWP7 user acct: myuser.com

in DNS zone for myuser.com, create an MX record to point to mail.myuser.com
Then create an A record for mail, correct?

Correct

Then when it connects, as long as you checked the box for mail in the SSL certs, it will read that certificate on connection.
« Last Edit: May 30, 2021, 02:38:16 AM by Starburst »

Offline
**
Re: Mail server different as Hostname
« Reply #28 on: June 22, 2021, 08:43:57 AM »
Good thread this for me.
But for me, not work.
Hostname: server.mydomain.com
MX record: mail.mydomain.com
A record: mail.mydomain.com

Can't connect to mail with SSL, appears a certificate of CWP not of my domain.

If I configured my client mail with hostname, then, works fine, if configured with mail.mydomain.com appears a certificate of CWP.

SAN create for mail,.mydomain.com

This is my thread: http://forum.centos-webpanel.com/index.php?topic=10971.new;topicseen#new

Offline
**
Re: Mail server different as Hostname
« Reply #29 on: March 05, 2023, 07:26:03 AM »
Hello,
Wanna bring this up again to see is this fixed?
Had same issue but I used my hostname for client configs.

Thank u