Control Web Panel

WebPanel => E-Mail => Topic started by: dgitan on April 24, 2019, 10:23:45 AM

Title: Mail server different as Hostname
Post by: dgitan on April 24, 2019, 10:23:45 AM
I want to host the mail of my clients, but, I want to give to the client parameters as their domain name.

I explain,

CWP is hosted on centos.xxxxx.com
My client's domain name is tartempion.org

So in the client mail, I want the possibility to put the SSL parameters as : mail server : mail.tartempion.org, not centos.xxxxx.com

Is that possible ?
Title: Re: Mail server different as Hostname
Post by: glorency on April 24, 2019, 10:39:43 AM
Yes , Possible
Title: Re: Mail server different as Hostname
Post by: dgitan on April 24, 2019, 11:21:57 AM
Cool, thanks for the answer.
But how ??
Title: Re: Mail server different as Hostname
Post by: Starburst on July 25, 2019, 03:50:06 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
Title: Re: Mail server different as Hostname
Post by: Starburst on August 01, 2019, 09:50:21 AM
I want to host the mail of my clients, but, I want to give to the client parameters as their domain name.

I explain,

CWP is hosted on centos.xxxxx.com
My client's domain name is tartempion.org

So in the client mail, I want the possibility to put the SSL parameters as : mail server : mail.tartempion.org, not centos.xxxxx.com

Is that possible ?

Just found it it is not possible with CWP unlike cPanel.

Unless someone knows a way around it.
Title: Re: Mail server different as Hostname
Post by: pericles on September 26, 2019, 07:07:56 AM
I have the same issue.

I was using CPANEL and all my customers had SSL settings as mail.theirdomain.com.

Now that I moved to CWP for SSL connections I can only have mail.myhostname.com.

This means that all my customers need to reconfigure all their emails.

Has anyone found a solution for this issue? I want to be able to set the SSL settings with the domains of the customers.

Thanks,
Title: Re: Mail server different as Hostname
Post by: CoffeeCup on October 02, 2019, 11:54:37 PM
Considering that cPanel has had a significant price increase in their licensing model, there is the mood in the hosting industry for another 'player' to step forward and claim some of what was previously cPanel's market share.

But for that shift to occur in CWP's direction, CWP is going to have to implement some 'industry standard' feature sets like... allowing virtual hosts to send mail over SSL, via their respective domains (mail.theirdomain.com) and not as it currently stands of solely via the server's FQDN (hostname.myserver.com).

The ramifications of not doing the above are well documented:

If there is indeed a way around this (as glorency suggests), then I am not aware of it but would dearly love to find out.

+1 this feature request
Title: Re: Mail server different as Hostname
Post by: pavlosp on October 05, 2019, 05:38:58 PM
I was looking a way to do this, and i just saw the thread regarding this issue. This feature would be great to usu the same clients url as mail server.
Title: Re: Mail server different as Hostname
Post by: siakbary on October 14, 2019, 04:06:34 AM
is there any way to fix this? whatever manual it is because it's very annoying I can't access my email through the app windows email program because it doesn't have ssl for mall.namadomain.com only mall.hostname.com
Title: Re: Mail server different as Hostname
Post by: adamjedgar on October 14, 2019, 06:20:46 AM
What if you use a third party relay host such as Sendgrid?
Title: Re: Mail server different as Hostname
Post by: bytecanarias on November 22, 2019, 04:31:40 PM
It would be interesting to find a solution to this
Title: Re: Mail server different as Hostname
Post by: cwp_user2018 on November 22, 2019, 09:07:14 PM
In postfix this is posible from 3.4 version with SNI support.
Earlier versions need to reconfigure and use different IP's for all domains.
Title: Re: Mail server different as Hostname
Post by: bytecanarias on November 24, 2019, 12:03:01 PM
So is it possible to upgrade in CWP to postfix version 3.4?
Title: Re: Mail server different as Hostname
Post by: Epic Cow on December 06, 2019, 11:37:04 PM
I believe it's in the making. As there is another post going here in regards to PostFix 3.
http://forum.centos-webpanel.com/e-mail/upgrade-cwp-to-use-postfix-3-x/ (http://forum.centos-webpanel.com/e-mail/upgrade-cwp-to-use-postfix-3-x/)

Current status seems to be that they are in testing... Perhaps soon!? I'm hoping so.
Title: Re: Mail server different as Hostname
Post by: CamposMansi on October 25, 2020, 02:00:16 AM
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
Title: Re: Mail server different as Hostname
Post by: Starburst 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
Title: Re: Mail server different as Hostname
Post by: CamposMansi 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
Title: Re: Mail server different as Hostname
Post by: Starburst 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.
Title: Re: Mail server different as Hostname
Post by: CarlosN 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?
Title: Re: Mail server different as Hostname
Post by: Starburst 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.
Title: Re: Mail server different as Hostname
Post by: mbdoms 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
Title: Re: Mail server different as Hostname
Post by: shannusamosa 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/
Title: Re: Mail server different as Hostname
Post by: Sandeep on March 27, 2021, 06:36:08 PM
hi don't update postfix version we'll update it when necessary
Title: Re: Mail server different as Hostname
Post by: joaomach 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
Title: Re: Mail server different as Hostname
Post by: joaomach 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
Title: Re: Mail server different as Hostname
Post by: Starburst 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
Title: Re: Mail server different as Hostname
Post by: joaomach 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?
Title: Re: Mail server different as Hostname
Post by: Starburst 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.
Title: Re: Mail server different as Hostname
Post by: Wonder 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
Title: Re: Mail server different as Hostname
Post by: zakrpa 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