How fully change IP in WHM for account - centos

I change account IP in WHM panel. Now I can see that server has new IP (in CPanel and in PHP as SERVER_ADDR).
But in SPF CPanel options or when I send remote http request by PHP, I see old IP.
What I do wrong and how fully change IP for account? (For incoming and outgoing requests)

You can change site IP address using "Change Site's IP Address" feature in WHM, here is the link: https://documentation.cpanel.net/display/ALD/Change+Site's+IP+Address
About SPF record, you can "edit dns zone" and can change the SPF record.

Related

Send Email From Application Hosted On Local Server

I have orangescrum installed on both local server and cloud server. When I try to send E-mail to other user from local server the mail is not getting delivered. I have checked the SMTP configurations, all seems fine. I checked email track delivery on cpanel but no email is shown.
I want mail server hosted on cloud to accept those emails originated from my local server and send it to the destination email address. It seems like something is blocking the request. Should I have to configure(DKIM,SPF etc) anything on cpanel so that it accept my mails? Any help is much appreciated.
Looks like you want to use your cpanel server as "smarthost" for your local server.
In cPanel you can do it in this way:
You can add the IP address/hostname of the local server (public IP) to the
following options in "WHM Home » Service Configuration » Exim
Configuration Manager":
"Trusted SMTP IP addresses"
"Backup MX hosts"
In some cases you may need to add the IP address to the
/etc/alwaysrelay file and enable Antirelayd.

How can I setup reverse DNS for a home SMTP server?

I am running Postfix MTA on my home server to send bulk emails.I have setup MX records and DNS but rDNS still needs to be configured as gmail etc. won't accept email from my IP. I don't have a VPS so I can't use cPanel or WHM. Is there any other alternative.
NOTE: I can't use a mail provider like gmail as I need to send more than 500 emails daily.
Thanks a lot!
Reverse IP address is linked with the PTR record set by the owner of the IP address which is mostly your ISP. You need to check with your ISP (Internet Service Provider) on updating the PTR record for the IP address assigned to you.

How to connect my Mac Mail to my domain which his DNS are handled through DigitalOcean?

I bought a domain.
I pointed his name servers to:
ns1.digitalocean.com
ns2.digitalocean.com
I have added a CNAME record point to #
I want to send and receive emails using my Mac mail program.
I know that I should probably build a full mail server which is an awful thing to do.
Therefore, I have another server (not digitalocean) running on cPanel. In this cPanel I have a very powerful cPanel's mail server.
How can I point my digitalocean CNAME to the remote server where the cPanel is?
I hope it's clear enough.
In order to make your domain points to the digital ocean server, you will have to create A record that points to the IP of that server, same goes to any subdomain.
Regarding your mail server, you need to make mail.mydomain.com points to the IP of your cPanel server using A record not CName and also modifying other records like SPF/DKIM records.
For your local mail client you can get the configuration by logging into the cPanel user account and view the mail settings

How to hide origin server behind CloudFlare and still send emails

How do you hide an origin server behind CloudFlare and still be able to send transactional emails via providers like Sendgrid, Mailgun, etc.?
My problem is that when I send an email it seems that a Received: from line is always added to the message, revealing my origin server's real IP.
I tried it with Sendgrid, both via JSON API and SMTP endpoints, but it's visible in both cases.
How do you solve this problem?
Are there some transactional email providers which do not append this line?
Do you use some complicated setup with a distributed message queue and a worker running on a different host with different IP, only for sending emails?
Do you connect to the providers via a proxy / VPN? Is there such a thing as proxy for SMTP?
In your case we recommend running your email through a different server. You can find some guidance in this KB article. If your IP is still leaked you should contact Cloudflare support.
Run email on separate server/service If you are running your mail on
the same server as your website, then the attacker can always find
your origin server IP. To close this possible security gap, you can
use an email service on a separate server than your website, whether
through your hosting provider or an outside service (e.g., Google
Apps).
For Mac users:
You can run this command in Terminal to see what IP is being reported
with your MX records:
dig +short $(dig mx +short WEBSITE) For example, if I was concerned
about example.com, I would enter:
dig +short $(dig mx +short example.com) The output will be an IP
address. This is the IP address that an attacker can always find. You
want to make sure this IP address is different that the IP address for
your web server. Otherwise, no matter how many times you change your
web server, if your email is also on the same server, then the
attacker can always find the new IP.
For PC users:
You can run this command in command prompt to see what IP is being
reported with your MX records:
nslookup -q=mx WEBSITE For example, if I was concerned about
example.com, I would enter:
nslookup -q=mx example.com The output will be an IP address. This is
the IP address that an attacker can always find. You want to make sure
this IP address is different that the IP address for your web server.
Otherwise, no matter how many times you change your web server, if
your email is also on the same server, then the attacker can always
find the new IP.

Set up mail.mydomain.com to point to dedicated server

I currently have a domain name which is set to point to Amazon Cloudfront's nameservers. I also have a dedicated server which uses WHM/cPanel that I want to use for all mail.
On Amazon:
The A record for the domain is set to point to the server IP
The MX record is set up as well
On Server:
I have an A record for "mail" that points to the server IP
However, when I log into cPanel webmail, I can send mail but cannot receive it.
Any help would be greatly appreciated. Some type of routing issue I am assuming? When I send an email via Gmail to myemail#mydomain.com, it does not bounce back.
I fixed it by changing the MX record from mydomain.com. to mail.mydomain.com. and then having the A record for mail point to the server IP.