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

    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 (My-Domain.com) 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 My-Domain.com 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
    Location
    On a Speck!!!!!
    Posts
    216
    What mail server are you using?

  3. #3
    Join Date
    May 2007
    Posts
    34
    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
    Location
    Melbourne, Australia
    Posts
    478

    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.
    Deasoft.com Aussie & USA VPS, Reseller & Shared Hosting + WHMreseller & DAreseller
    AutoBillMe.com - The Non-PHP Automated Billing Solution for Web Hosts
    WHMreseller - The first Alpha/Master Reseller Plugin for cPanel
    DAreseller - The first Alpha/Master Reseller Plugin for DirectAdmin

  5. #5
    Join Date
    May 2007
    Posts
    34
    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
    Posts
    34
    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 = xxx.xxx.xxx.xxx : xxx.xxx.xxx.xxx to what you need.

  8. #8
    Join Date
    May 2007
    Posts
    34
    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 = xxx.xxx.xxx.xxx : xxx.xxx.xxx.xxx to what you need.
    I went to Exim Advance Editor, exim.conf, put under the first text field.

    local_interfaces = xxx.xxx.xxx.xxx : xxx.xxx.xxx.xxx

    I tried two way,

    local_interfaces = server IP : hosted domain IP

    and

    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 0.0.0.0 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 = 0.0.0.0

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

    local_interfaces = <; ::0 ; 0.0.0.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 = xxx.xxx.xxx.xxx

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
  •