March 2014 - Webx Networks

Setup Email Account on iPhone / iPad on iOS 7

The steps below explain how you can configure and setup email account on iPhone on iOS7. This tutorial assumes you have already created your email account in cPanel. Start the Settings app in iPhone and tap on Mail, Contacts, Calendars. The screen will look like this after that:

Add Email Account in iPhone
Tap on Add Account and then tap on Other as shown below:

Other Email Account
On the next screen tap on Add Mail Account:

Add Mail Account
The screen will present you to type your name, email and password and short name for description.

New Email Account in iPhone

Tap Next to move to next screen.

New Account IMAP or POP
Now you have choice to Select IMAP or POP. With IMAP your emails will stay on the server and you can access them from other devices and computers. Continue with entering INCOMING MAIL SERVER

Host Name: You can find this in your cPanel under Configure Email Account screen.
User Name: This is your email address.
Password: This is your email password.

Incoming Mail Server for iPhone
After this move on to enter the OUTGOING MAIL SERVER information.

Outgoing Mail Server for iPhone
Host Name: You can find this in your cPanel under Configure Email Account screen.
User Name: This is your email address.
Password: This is your email password.

Tap Next to move to next screen.

Save Email Account in iPhone
Tap Save to save the email account settings on your iPhone. The phone will add the account:

Adding Account on iPhone

Now you can send and receive emails from your iPhone. You can use the same exact settings on iPod or iPad.

If for some reason you are unable to send email from iPhone, please make sure that you have configured SMTP authentication and using SSL connection. To check the settings, start the Settings app, tap on Mail, Contacts, Calendars. Tap on your email account from the list. Tap on Account. Tap on SMTP under OUTGOING MAIL SERVER. Tap on the PRIMARY SERVER. Make sure it is active and is similar to this screen below with Use SSL selected, Server Port set to 465 or 587, and Authentication is Password.

Outgoing Mail Server Settings Check in iPhone
Enjoy your business email account on your iOS devices on the go.

How to Protect WordPress Admin Login

wordpress protected web hosting
WordPress hosting has becoming very popular because of its flexibility and ease of use. WordPress is as secure as your login to its admin interface (if you keep all plugins/themes and core engine to latest stable release). Since WordPress requires the admin login for management, it is available by default on public Internet for access. There are many techniques and plugins used by WordPress users to protect their websites and admin login. Some of them are

  1. Use secure password
  2. Use another username for admin instead of “admin”
  3. Use additional plugins to protect against attacks

These are all good measures, but what if your password is leaked through other means? If your own computer is hacked and you enter your correct WordPress admin username and password, then a hacker will have access to it. In this case, there is no need for any brute force attack. Your password can be very strong but if hacker has it, they can login easily.

Apache mod_rewrite Protection

Here is a simple technique that you can use to protect the admin login and restrict it to your IP addresses. Even if hacker gains access to your admin username/password, they cannot login to WordPress unless they hijack your computer as well.

All you have to do is edit .htaccess file in WordPress root folder and right above the Permalink WordPress mod_rewrite rules, add these rules:

#Restrict WP Login IPs
RewriteEngine On
RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)?wp-admin
RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123$
RewriteRule ^(.*)$ [R=301,L]

RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$
RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123$
RewriteRule ^(.*)$ - [F]

In the above code, replace with your own IP address. If you have multiple admin users that need access, you can repeat that line to add more IP addresses one after the other. And replace with your own website. That will redirect unauthorized users to your website home. Or you can use another web page that you want to show such users.

This file can be edited via FTP or cPanel. If you do not have a static IP address from your ISP, you can change the IP in .htaccess file when you need to work in admin interface. If your FTP or cPanel access is leaked, then you have a bigger problem to handle.

We hope this is useful for you and if you have any comments or questions, you can leave them here. Thank you.

Simple DNS Guide for cPanel Web Hosting Service

Note: This is a very simple DNS guide and explanation for easy understanding of DNS use for web hosting customers. It does not go into advanced terminologies to avoid confusion.

Name Servers

For a domain name to work for website and email, it requires properly configured DNS (Domain Name System). Without that Internet users cannot load the website from the correct server or send you email. When you register a domain, you have to configure DNS servers (also called name servers) at the domain registrar. These are typically two hostnames in the format of and This basically delegates the DNS service for your domain to those name servers from where every aspect of domain, subdomains, and email can be controlled.

DNS ZoneDNS Zone File

Those name servers keep records of your domain in a DNS Zone file. The DNS Zone can tell which server hosts or a subdomain etc.

When someone tries to load your website in the browser, the browser first asks the root name servers about the delegated name servers so it can find where it is hosted. The root name servers provide your hosting company’s name servers that you have configured at the domain registrar. Then your browser asks one of the name servers, where is the website hosted? If it cannot reach one, it will try and ask the second one. Once the response is received, the browser will connect to your web hosting server and request it to send web page.

Record Types

There are different types of records in a DNS Zone file. The following three are most common that you may encounter, especially if you move your website or email from one server to another.

A: This record points the domain or subdomain to an IP address of server.

CNAME: This record points the domain or subdomain to another hostname as an alias. This way if the original hostname’s IP changes, you do not have to change any record in your DNS Zone. There is a restriction on how you can use CNAME. CNAME cannot be used for your domain that also needs A record and MX record. Example: you can create CNAME record for but you cannot create CNAME for because you have to create MX and A record for it as well. This is why typically CNAME records are used for subdomains only.

MX: This is called mail exchanger record and tells which server can receive email. This cannot have an IP address. It must be a fully qualified hostname. There can be multiple MX records with different priority settings.

cPanel Web Hosting

When your account is created on a cPanel web hosting service, your domain’s DNS Zone file is created automatically with all the necessary records in DNS Zone file that resides in your web hosting company’s name servers. Typically your website and email is hosted on the same server, therefore the records are setup like this:

  • A record is setup for the domain using the web hosting server IP.
  • www (subdomain) is setup using CNAME of your domain. Which means that will point to same as hosting server.
  • Another A record is setup for using your web hosting server IP (which also hosts your email). And then that subdomain is used as MX record (because an MX cannot use direct IP address). Here’s a screen shot showing these records in cPanel’s Advanced DNS Zone Editor.
  • DNS Records

    The MX record is not shown here. It is listed under Mail > MX Entry in cPanel.

    Moving Website

    If you need to move your website away from your hosting company’s website, the other company will provide you IP address of the new web hosting server. You can simply change the A record of your domain (first record shown in the above screen shot). This will automatically update because of CNAME (alias). After making this change, and allowing a couple of hours for DNS propagation, your website will start pointing to the new IP while your email will stay on the current hosting server. Make sure your MX record points to and is set as an A record for your hosting server IP where you want to receive email.

    Moving Email Server

    When you need to move your email to another provider, they will typically give you one or more MX records. You can change the MX Records of your domain by going to cPanel > Mail > MX Entry. Here’s a screen shot how this is setup:

    MX Record

    You can edit the record and also add more MX records on this screen. If they provide you with the IP address instead of fully qualified hostname, then you must first create an A record with that IP in Advanced DNS Zone Editor and then use that for the MX. MX record cannot use IP address. It must always use a hostname. Once you configure the MX, also make sure Email Routing shows that now you are using Remote Mail Exchanger. This is important because it will update the necessary configuration on the local mail server on your cPanel web hosting service to either receive mail or send it to remote server for the domain.

    Spam Filtering Service

    If you are using a third party email filtering service that requires you to change your MX record but still receive email on your cPanel web hosting server after they process your email, then you can change the MX records in MX Entry screen but keep Email Routing to Local Mail Exchanger by selecting the radio button and forcing that setting. Otherwise when you change the MX, cPanel will automatically change it to Remote Mail Exchanger, which will disable any incoming email for your domain.

    Hope this is useful. Please leave a comment below and feel free to ask any question you may have.

    Back to Top

    © 2022 Webx Networks.