ACCUWEBHOSTING.COM
Live Chat
Sales / Billing / Support
Support
FAQ, Help Desk
Affiliate
Earn $20.00 / Sale
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    John_Accuwebhosting is offline Senior Member John_Accuwebhosting is on a distinguished road
    Join Date
    Jun 2006
    Posts
    124
    Blog Entries
    16
    Rep Power
    0

    Default How to change CPanel mail server IP address?



    Quite few times your server's main/shared IP address may get black listed by most of RBLs due to x reasons.

    In such situations, it would be very difficult to receive/send some important emails due to this black list.

    In such situation a quick solution is to route the emails through a secondary IP address on the same server which is not black listed under those RBLs.

    The mail server on cpanel i.e exim allows you to change the default IP address used by the mail server so that you would be able to route all emails through this new secondary IP address.

    Here are the step by step instructions for you to configure your exim mail server to use new IP address.

    Step 1 : Shutdown the exim service.
    # service exim stop or /etc/init.d/exim stop

    Step 2 : Edit your exim configuration file.
    # vi /etc/exim.conf

    Step 3: go to "remote_smtp" section under "TRANSPORTS CONFIGURATION".
    By default it would look like below:
    Quote:
    remote_smtp:
    driver = smtp
    interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch{/etc/mailips}{$value}{}}}{}}
    helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch{/etc/mailhelo}{$value}{$primary_hostname}}}{$primary_ho stname}}

    Step 4 : Remove or comment line containing "interface" and "helo_data" and add new "interface" to match with that of your new IP address. It should look like as follows:
    Quote:
    remote_smtp:
    driver = smtp
    interface = 12.12.12.12 # Your IP address.

    Step 5 : Save your changes and exit out from your exim configuration file.

    Note : Dont forget to set read only attributes on exim configuration file, so that it wont get reset to default automatically.

    You can do it using following command:
    # chattr +aui /etc/exim.conf

    Step 6 : start exim service on your server.
    # service exim restart or /etc/init.d/exim restart

    Step 7 : Make sure to set reverse DNS for this new IP address to point a valid FQDN.

    Step 8 : Try sending a test email and you will find that, it was sent using this new IP address configured under your exim configuration.

    You can verify it by checking the header of new email under exim's log file i.e /var/log/exim_mainlog

  2. #2
    doncamillo is offline Junior Member doncamillo is on a distinguished road
    Join Date
    Jul 2010
    Posts
    1
    Rep Power
    0

    Default Re: How to change CPanel mail server IP address?

    Should i add a new line for both "interface" and "helo_data" or i changed them to

    remote_smtp:
    driver = smtp
    interface = x.x.x.x
    {${lookup{$sender_address_domain}lsearch{/etc/mailips}{$value}{}}}{}}
    helo_data = x.x.x.x

  3. #3
    Wajdan is offline Junior Member Wajdan is on a distinguished road
    Join Date
    Jul 2010
    Posts
    1
    Rep Power
    0

    Default Re: How to change CPanel mail server IP address?



    You should remove the entire line which says "helo_data".

    remote_smtp:
    driver = smtp
    interface = x.x.x.x - Your IP address
    {${lookup{$sender_address_domain}lsearch{/etc/mailips}{$value}{}}}{}} - > Remove this
    helo_data = x.x.x.x - Remove this too

    should be like this:

    remote_smtp:
    driver = smtp
    interface = x.x.x.x #your ip address
    RegencyHost Web Hosting Solutions
    Affordable Shared, Reseller, VPS & Dedicated Hosting, 99.9% Uptime Guarantee
    www.regencyhost.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
© Copyright 2010 - 2020 AccuWebHosting.Com. All rights reserved. AccuWebHosting.com,
48 Bi-State Plaza #185 Old Tappan, NJ 07675, United States of America

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45