Hello,
I'm trying to setup my new server with 2 IPs to send emails using account's IP in SMTP and Exim banner. I read How to Configure the Exim Outgoing IP Address - cPanel Knowledge Base - cPanel Documentation but I cannot accomplish what I need. Please, can you help me?
Send mail from the account’s IP address is enabled.
Scenario:
- server's hostname: first.mydomain.com
- first IP: 1.1.1.1 PTR first.mydomain.com
- second IP: 2.2.2.2 PTR second.mydomain.com
Reason: accounts on 1.1.1.1 will not have IMAP access (basic plan). Accounts on 2.2.2.2 will (pro plan). IMAP ports blocked on iptables (and like --dport 143 -d 2.2.2.2 -j ACCEPT).
I don't want users know the server is the same. Means, everything in basic plan will refer to 1.1.1.1 and first.mydomain.com, and everything in pro plan 2.2.2.2 and second.mydomain.com. Including SMTP outgoing IP, SMTP HELO and SMTP/POP/IMAP banner (if possible).
If one user realize that he can "telnet 2.2.2.2 587" and see "first.mydomain.com" as hostname will see that it's the same server. That's not my main problem, but if possible is highly appreciate. My main problem is outgoing SMTP IP.
I've created 2 DNS zones (on WHM), for each subdomain,
first.mydomain.com IN A 1.1.1.1
first.mydomain.com. IN PTR first.mydomain.com.
----
second.mydomain.com IN A 2.2.2.2
second.mydomain.com. IN PTR second.mydomain.com.
Exim is always using the correct IP to outgoing connection, but not considering the DNS zones.
So, from where Exim exaclty get the hostname to use as SMTP HELO?
Any help is appreciated.
I'm trying to setup my new server with 2 IPs to send emails using account's IP in SMTP and Exim banner. I read How to Configure the Exim Outgoing IP Address - cPanel Knowledge Base - cPanel Documentation but I cannot accomplish what I need. Please, can you help me?
Send mail from the account’s IP address is enabled.
Scenario:
- server's hostname: first.mydomain.com
- first IP: 1.1.1.1 PTR first.mydomain.com
- second IP: 2.2.2.2 PTR second.mydomain.com
Reason: accounts on 1.1.1.1 will not have IMAP access (basic plan). Accounts on 2.2.2.2 will (pro plan). IMAP ports blocked on iptables (and like --dport 143 -d 2.2.2.2 -j ACCEPT).
I don't want users know the server is the same. Means, everything in basic plan will refer to 1.1.1.1 and first.mydomain.com, and everything in pro plan 2.2.2.2 and second.mydomain.com. Including SMTP outgoing IP, SMTP HELO and SMTP/POP/IMAP banner (if possible).
If one user realize that he can "telnet 2.2.2.2 587" and see "first.mydomain.com" as hostname will see that it's the same server. That's not my main problem, but if possible is highly appreciate. My main problem is outgoing SMTP IP.
I've created 2 DNS zones (on WHM), for each subdomain,
first.mydomain.com IN A 1.1.1.1
first.mydomain.com. IN PTR first.mydomain.com.
----
second.mydomain.com IN A 2.2.2.2
second.mydomain.com. IN PTR second.mydomain.com.
Exim is always using the correct IP to outgoing connection, but not considering the DNS zones.
So, from where Exim exaclty get the hostname to use as SMTP HELO?
Any help is appreciated.