Results 1 to 9 of 9
  1. #1
    Join Date
    May 2007

    Question Send mail from a different IP other than server IP

    I own a dedicated server with a few IP addresses.

    When one of my domains ( which has a dedicated IP, sent out mail through phpmailer, the mail header tells that the mail originates from my server main IP address.

    How can I make send mail from the assigned dedicated IP address, not the server main IP address?

    I have set this because Yahoo thinks I am a spammer.

  2. #2
    Join Date
    May 2009
    On a Speck!!!!!
    What mail server are you using?

  3. #3
    Join Date
    May 2007
    I am on Exim.

    OS: CentOS 5 and WHM.
    Last edited by vivianmark; 07-29-2009 at 09:07 PM.

  4. #4
    Join Date
    May 2003
    Melbourne, Australia

    Arrow Response

    1) Put your domain on a dedicated IP (different to the server main IP)

    2) In WHM go to "Exim Configuration Editor", under the "Domains and IPs" heading check the box.

    Now mail will be sent from your domain from the dedicated IP rather than server main IP. Australia & USA Hosting - cPanel, WHM, VPS
    Software - WHMreseller - WHMexec - KVZcloud
    Host Repo - The Linux Web Host Knowledge Repository - Host Search Australia

  5. #5
    Join Date
    May 2007
    I checked on the box, "Automatically send outgoing mail from the account's IP address instead of the main IP address.".

    I have made an entry in /etc/mail_reverse_dns.

    But the mail header still show the main server IP i.e. Received.

    Am I missing something?

    Thank you for the time.

  6. #6
    Join Date
    May 2007
    By the way, I am refering to sendmail and phpmailer in my CMS, Drupal.

    Main email is on Google Apps.

  7. #7
    you have to specify the ip in config file using whm's advanced editor page in whm change the local_interfaces = : to what you need.

  8. #8
    Join Date
    May 2007
    Quote Originally Posted by icyshout View Post
    you have to specify the ip in config file using whm's advanced editor page in whm change the local_interfaces = : to what you need.
    I went to Exim Advance Editor, exim.conf, put under the first text field.

    local_interfaces = :

    I tried two way,

    local_interfaces = server IP : hosted domain IP


    local_interfaces = hosted domain IP : server IP

    Still, header shows IP of the server's IP.

    Am I missing something?

  9. #9
    13.2 Special IP listening addresses

    The addresses and ::0 are treated specially. They are interpreted as “all IPv4 interfaces” and “all IPv6 interfaces”, respectively. In each case, Exim tells the TCP/IP stack to “listen on all IPvx interfaces” instead of setting up separate listening sockets for each interface. The default value of local_interfaces is

    local_interfaces =

    when Exim is built without IPv6 support; otherwise it is:

    local_interfaces = <; ::0 ;

    Thus, by default, Exim listens on all available interfaces, on the SMTP port.
    30.2 Use of the $host and $host_address variables

    At the start of a run of the smtp transport, the values of $host and $host_address are the name and IP address of the first host on the host list passed by the router. However, when the transport is about to connect to a specific host, and while it is connected to that host, $host and $host_address are set to the values for that host. These are the values that are in force when the helo_data, hosts_try_auth, interface, serialize_hosts, and the various TLS options are expanded.
    Just some quotes from the documentation that may help to understand the cnofig file.

    try just one ip in the local_interfaces =

  10. Newsletters

    Subscribe Now & Get The WHT Quick Start Guide!

Similar Threads

  1. Mail Server Problem / Can't Send Or Receive Mail
    By SupportRep911 in forum Hosting Security and Technology
    Replies: 3
    Last Post: 07-20-2008, 06:29 PM
  2. New VPS server, can't send mail to myself
    By Goldfiles in forum Hosting Security and Technology
    Replies: 5
    Last Post: 07-11-2008, 02:15 AM
  3. How to secure email/send mail in cpanel so only internal can send mail?
    By Dann2 in forum Hosting Security and Technology
    Replies: 11
    Last Post: 07-07-2003, 01:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts