Workaround for user account only for email but domainand normal mail is in other server cPanel

castris

Verified User
Joined
Apr 16, 2021
Messages
122
Location
Arcenillas
Scenario

A client needs an alternative mail server to the one they have on another machine with cPanel. This new email sending service is set up with the domain domain.tld in DirectAdmin.

Authoritative DNS in cPanel

  • domain.tld has a single MX record pointing to mail.domain.tld.
  • The DNS zone for domain.tld has an SPF record authorizing the use of the IP address of the DirectAdmin server.
  • The DKIM created by DirectAdmin is inserted into the DNS zone of domain.tld.
  • There is an A record for mail2.domain.tld.
In DirectAdmin

  • A subdomain mail2.domain.tld has also been created for the user to manage the Let's Encrypt DNS.
Testing has been conducted with mail.tester.com for sending from domain.tld using an account [email protected].

Score: 100/100

However, what I am missing is that when the user connects to mail2.domain.tld to send email, the server presents the correct certificate for mail2.domain.tld.

Any ideas?
 
This new email sending service is set up with the domain domain.tld in DirectAdmin.
I don't quite understand why you create some mail2.domain.tld in Directadmin.

If you have DNS on cPanel and mail on Directamin, just create domain.tld on directadmin, then in the cPanel DNS, point A record for mail to the Directadmin ip address and SPF record as you've done already.

So why the the mail2? If you do it like I wrote, there is no need for any mail2 subdomain.
 
Back
Top