Clarification needed - How to set up account so mail is sent from own IP?

electric

Well-Known Member
Nov 5, 2001
742
5
318
Hello,

Currently our cpanel servers are configured so that all email is sent using the same "server" IP address. Consequently, if that "server IP" gets blacklisted, then it affects every customer.

My understanding is that it is possible to setup cpanel so that individual cpanel accounts are able to send mail using their own dedicated IP address. So this way, if the "server IP" gets blacklisted it will not affect these "dedicated IP" customers, since they would be sending their email using their own IP. (And if their dedicated IP gets blacklisted, it will not effect any other customers.)

Is this correct?

I found this page here in the cpanel documentation: Changing the Sending IP for Outbound Email in Exim

The documentation is a little confusing for me, though. (My wife says I'm slow...)

Can someone explain *exactly* what settings are needed to enable our servers so that a customer with their own dedicated IP address will send mail through their dedicated IP and *not* be effected when the regular "server IP" is blacklisted?

Specifically, what should these three options be set to?

- Send mail from account’s dedicated IP address: on/off (I'm pretty sure this one must be ON.)
- Reference /etc/mailhelo for outgoing SMTP HELO: on/off
- Reference /etc/mailips for outgoing SMTP connections: on/off

If I enable this feature, would I still need to manually edit these two files?


/etc/mailhelo (Currently exists, but is just an empty file.)
/etc/mailips (Does not currently exist.)

Thanks for any help!
 

jimlongo

Well-Known Member
Mar 20, 2008
237
16
68
Re: Clarification needed - How to set up account so mail is sent from own I

I just set that up and verified it is working.

Set those 3 to:

OFF
ON
ON


And edit the 2 files as described in that document.

mailhelo

xyz.com: xyz.com
subdomain.xyz.com: xyz.com
abc.com: abc.com
etc.com: etc.com
*: hostname.domain.com (for any you don't have listed above)

mailips

xyz.com: 12.34.56.78
abc.com: 12.34.56.79
etc.com: 12.34.56.77
*: 12.34.56.70
 
Last edited:

electric

Well-Known Member
Nov 5, 2001
742
5
318
Re: Clarification needed - How to set up account so mail is sent from own I

I just set that up.
OFF
ON
ON


And edit the 2 files as described in that document.
So you are saying that we must manually edit the 2 files? This is what I don't understand.

The documentation page says:


Note: These instructions are not needed for either of those two scenarios. These instructions are only needed if you wish to manage the outgoing IP addresses manually. To do so, you will need to create and edit 2 files from the command line and properly set 3 options in WHM's Exim Configuration Editor interface.
This is why I am confused.

I would have thought it would be the opposite:

ON
OFF
OFF

Maybe someone from cpanel could step in and let us know...

What is the proper settings if we want this to be automated. So if we switch a customer to or from dedicated IP, we don't have to manually edit files, etc...

Thanks.
 

electric

Well-Known Member
Nov 5, 2001
742
5
318
Re: Clarification needed - How to set up account so mail is sent from own I

Anyone from cpanel care to chime in? My question is pretty specific. Should I submit a support ticket?

Thanks.
 

Infopro

Well-Known Member
May 20, 2003
17,113
507
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
Re: Clarification needed - How to set up account so mail is sent from own I

...

The documentation is a little confusing for me, though. (My wife says I'm slow...)

...
Yours too? :)

That message you quote from the docs, concerns the 2 items above that message in the doc. To do what you seek, follow the instructions below that. jimlongo has it right in his post. Of those 3 settings mentioned, the first one says this at the start: "Disable this option to manually manage the files." So, this one, off. The other 2, on.


HTH!
 

electric

Well-Known Member
Nov 5, 2001
742
5
318
Re: Clarification needed - How to set up account so mail is sent from own I

Is there any way to do this (allow customer to send mail from dedicated IP) without having to manually manage those files?

What I am looking for is something very simple. Basically, if we switch the customer to their own IP address... cpanel will "figure it out" and mail the customer sends will be sent from their dedicated IP.

Is this sort of simple solution possible? Or do we have to manually manage/edit those two files every time we switch an IP?

Thanks.