Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Member
    Join Date
    Jun 2009
    Posts
    12

    Default Multiple IPs/Mail servers

    Hi there,

    I have a VPS server with 10 IPs.

    I have allocated each IP to 10 different domains/accounts

    When sending email from any account, in the email headers it shows that email is always sent from the main IP/hostname.

    How can I set it up so that each domain/IP combination acts as its own mailserver so each IP/hostname shows in the headers as being the IP that sent the email? This being the IP that I have allocated to it through WHM.

    Also is it possible to do the same thing with the SPF and Domain Keys?

    Cheers!

    Dave
    Last edited by compliancelc; 06-23-2009 at 08:44 AM.

  2. #2
    Member
    Join Date
    Jun 2009
    Posts
    12

    Default Multiple IPs/Mail servers

    Hi there,

    I have a VPS server with 10 IPs.

    I have allocated each IP to 10 different domains/accounts

    When sending email from any account, in the email headers it shows that email is always sent from the main IP/hostname.

    How can I set it up so that each domain/IP combination acts as its own mailserver so each IP/hostname shows in the headers as being the IP that sent the email? This being the IP that I have allocated to it through WHM.

    Also is it possible to do the same thing with the SPF and Domain Keys?

    Cheers!

    Dave

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2003
    Location
    NC
    Posts
    725
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    WHM -> exim configuration editor -> then enable:
    Automatically send outgoing mail from the account's IP address instead of the main IP address. Warning: If you turn this setting on you should make sure reverse DNS entries match the ones in /etc/mail_reverse_dns.

    SPF just depends on the records you create. Domainkeys will also be fine if you are using the normal install for that

  4. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    ** Merged Duplicate Threads **

  5. #5
    Member
    Join Date
    Jun 2009
    Posts
    12

    Default

    great thanks for your help!

  6. #6
    Member
    Join Date
    Jul 2009
    Posts
    5

    Default

    WHM -> exim configuration editor -> then enable:
    Automatically send outgoing mail from the account's IP address instead of the main IP address. Warning: If you turn this setting on you should make sure reverse DNS entries match the ones in /etc/mail_reverse_dns.

    Hi i am having the same problem i have set the above but i can’t seem to be able edit /etc/mail_reverse_dns.
    I have a root account xx.xxx.xxx.150
    And another account mail xx.xxx.xxx.153
    Both accounts are used to run mailers but both accounts send mail from xx.xxx.xxx.150
    And i can’t get it to work
    I am reasonably new to WHM so be gentle
    Thanks

  7. #7
    Member
    Join Date
    Jul 2009
    Posts
    5

    Default

    as posted above

    I am looking for a solution so that emails are sent from there correct Ip address
    any help in this matter please

  8. #8
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2003
    Location
    NC
    Posts
    725
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    That is what the solution above was posted for, did you even try it out? If so is it not working?

  9. #9
    Member
    Join Date
    Jul 2009
    Posts
    5

    Default

    I have tryed the above but with that setting the mail headers all come from xx.xxx.xxx.150

    although the domain ip is xx.xxx.xxx.153

  10. #10
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Exclamation

    Quote Originally Posted by scissorman View Post
    I have a root account xx.xxx.xxx.150
    And another account mail xx.xxx.xxx.153
    Both accounts are used to run mailers but both accounts send mail from xx.xxx.xxx.150
    What you say doesn't make any sense ....

    Is 153 and 150 on the same server machine?

    If so, you root login at "150" is the login you use for configuring things
    and would work at any IP on the machine unless configured otherwise.

    Root is the master administrator login for the entire server.

    You need to enable IP sending from account IPs, have your individual
    accounts setup as dedicated IP accounts, add the references to
    /etc/mail_reverse_dns so that your physical server machine knows
    which domains to map to which sending IP addresses, and then
    you need to contact your server provider (or whoever controls the
    IP - do an ARIN lookup on your IP) and have them add a reverse (PTR)
    record for each IP mapping back to those same domains.

    Everything but the last part is done on your own server with root.
    The last part is done in the controlling DNS of the IP licensee which
    is almost always the upstream provider who provided you the server.

    PS: Don't forget the local zones on your server for the dedicated IP domains
    must also point to the dedicated IP address and not the shared IP address
    for the server for the mail exchange for the domain in your DNS resolution
    of those domain names as well.

  11. #11
    Member
    Join Date
    Jul 2009
    Posts
    5

    Default

    Hi thanks for your response
    Yes both are on the same server 150 is the root and 153 is a client

    The domain names as such are not on my server but pointed at the IP
    I have made the changes suggested
    Is this the correct format for
    /etc/mail_reverse_dns

    xx.xxx.xxx.150: host-xx-xxx-xxx-150.rsclientdns.com
    xx.xxx.xxx.153: host-xx-xxx-xxx-153.rsclientdns.com

  12. #12
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Lightbulb

    Quote Originally Posted by scissorman View Post
    The domain names as such are not on my server but pointed at the IP
    That could be a major problem depending on what you meant by that
    statement exactly. You don't necessary have to have the zones for
    the domains directly hosted by your server but for what you are doing,
    you must have an "A" record in each domain leading the IPs of each hosting
    account respectively and the mail server address that will be used for each
    domain plus an "MX" record that also leads you back to the domain host of
    each of those mail server records.

    I have made the changes suggested
    Is this the correct format for
    /etc/mail_reverse_dns

    xx.xxx.xxx.150: host-xx-xxx-xxx-150.rsclientdns.com
    xx.xxx.xxx.153: host-xx-xxx-xxx-153.rsclientdns.com
    Yes except you don't put the reverse DNS that is currently shown
    for the IP here but the domain that is using the IP and you contact
    your upstream provider and have them create an identical PTR record
    in the resolution of the IP address.

Similar Threads & Tags
Similar threads

  1. Single Mail Server for Multiple cPanel Servers?
    By cwalke32477 in forum New User Questions
    Replies: 1
    Last Post: 03-21-2011, 03:43 PM
  2. Multiple domains on multiple IPs
    By wanted4life in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-20-2010, 11:19 AM
  3. Multiple IPs/Mail servers
    By compliancelc in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-23-2009, 09:15 AM
  4. Multiple Shared IPs *without having to use multiple reseller accounts?
    By thedevilman in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-20-2008, 09:43 PM
  5. Need multiple mail-servers for one domain, how with cPanel?
    By Skal Tura in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-22-2005, 02:16 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube