Multiple domains on one IP

Hello,

I was needing some help on how to get this panel to work where there is 1 ptr record for 1 main domain for multi domains:

The example is as follows:
domain1 .com.xyz
domain2 .xyz
domain3 .com
Then I have as a example: somethinghere-mail.domain .com

In simple terms: How can I config this so I can have 1 domain for the ptr record that every other domain uses instead of each getting there own and so it can auto add it as well with account creation?

Extra info: I am not needing to use a relay or anything since I can change the ptr record, Yet the amount of IP’s I have, I don’t want to be giving new IP’s every time a domain is added for a ptr record when it can work the other way easier.

It would be a + if I could put the mail server/1 domain with multiple domain’s for the mail server on one IP allowing me to keep the ptr record away from the websites on the IP lookup, Yet this is not too important vs what I am needing done.
”This one would be say: everything runs via the main IP as a example: 172.0.0.1 & then for the mail server only to where it auto adds the DNS Record fully for it: 172.0.0.5” “With the somethinghere-mail.domain .com”

Thank you!
I look forward to a reply.

Hi,

Why you want to add somethinghere-mail.domain .com as MX for all the mail domains?

Just create the mail domains in Hestia and let them to use their own records.

You can do all what you want but this part:

Hestia uses the IP assigned to the web domain for the mail domain as well, and there is no option to specify a different IP for the mail domain.

As a workaround, you could manually modify the configuration file /home/user/conf/mail/domain/ip and then set the immutable attribute (chattr +i /home/user/conf/mail/domain/ip so it cannot be modified or deleted. It’s a rather dirty workaround, but it should work.

Also, the PTR record of the IP address (or addresses) that Exim uses to send mail must resolve to the hostname that Exim identifies itself with (usually the server hostname) not the hostname used in MX records.

Hi,

Thank you,
So in regards to getting the host mail domain to work, I am not too sure I understand over all with what you said there.
So if we put aside for now the 2 different IP’s part,
The main reason is due to the fact that I have a WHMCS module that auto makes the accounts and so on, So for me to have to give everyone there own IP or to sort out changing there mail part around, it becomes a lot & if I can also automate the host mail domain “somethinghere-mail.domain .com” I would be better off having it point to my own one since then it stops the ptr record issue’s for multiple domains as right now they will be getting rejected emails and so on every so often.

So how can I make this possible?
As there records and so on still remain the same, It is more just them saying “Hey we are using this domain for the main/ptr record to go via, Yet my domain & Other parts for my stuff is still valid for me in a sense”.

I think the somethinghere-mail.domain .com would be a A record only and have nothing else valid since it is only for them other domains to use instead so they have a ptr record that is valid.

Sorry, but I still don’t understand why you think using somethinghere-mail.domain.com is a good idea.

Maybe I didn’t explain it clearly enough, but the IP address (or addresses) used to send outgoing mail from your server must point only to the hostname that Exim uses to identify itself. That’s all, your mail domains would have their own MX with mail.domain1.com, mail.domain2.com, etc.

Show the output of:

telnet yourserverpublicip 25

That is alright,
That is correct on how it is setup to do it now, Yet wouldn’t it create a issue with say things like google and so on since the ptr record is not set then? “They would start to reject it due to the IP ptr record “Reverse DNS” not being set”
I was trying to do this as a work around so that all domains can have a valid ptr record under one IP address instead of them sending emails and it fails due to a lack of a ptr record, as for 1 IP I can not set one for each domain.

The PTR must be set to the hostname used by Exim but it is the same for all the domains.