The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Multiple IPs/Mail servers

Discussion in 'E-mail Discussions' started by compliancelc, Jun 23, 2009.

  1. compliancelc

    compliancelc Member

    Joined:
    Jun 23, 2009
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    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
     
    #1 compliancelc, Jun 23, 2009
    Last edited: Jun 23, 2009
  2. compliancelc

    compliancelc Member

    Joined:
    Jun 23, 2009
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    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. eth00

    eth00 Well-Known Member
    PartnerNOC

    Joined:
    Mar 30, 2003
    Messages:
    723
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    NC
    cPanel Access Level:
    Root Administrator
    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. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    ** Merged Duplicate Threads **
     
  5. compliancelc

    compliancelc Member

    Joined:
    Jun 23, 2009
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    great thanks for your help!
     
  6. scissorman

    scissorman Member

    Joined:
    Jul 4, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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. scissorman

    scissorman Member

    Joined:
    Jul 4, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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. eth00

    eth00 Well-Known Member
    PartnerNOC

    Joined:
    Mar 30, 2003
    Messages:
    723
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    NC
    cPanel Access Level:
    Root Administrator
    That is what the solution above was posted for, did you even try it out? If so is it not working?
     
  9. scissorman

    scissorman Member

    Joined:
    Jul 4, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    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. scissorman

    scissorman Member

    Joined:
    Jul 4, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    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.

    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.
     
Loading...

Share This Page