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.

Exim & PHP & Domains & Ip's & /etc/mailips

Discussion in 'E-mail Discussions' started by NemoXP, May 12, 2010.

  1. NemoXP

    NemoXP Active Member

    Joined:
    Feb 25, 2010
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Constanta, Romania, Romania
    cPanel Access Level:
    Root Administrator
    Hello

    I have about 100 accounts on my server
    I grouped them on 16 ip's

    Some domains have dedicated ip, some not.

    I want each account to send emails just through the ip the domain is set on.

    Let's take a example:
    ip A with domain1.tld, domain2.tld and domain3.tld
    ip B with domain4.tld
    ip C with domain5.tld and domain6.tld

    and the servers main shared ip id D

    What can i do? How can i do this automatically so that at any update, account create, etc, not to require actions from me.


    What i red on forums, "Send outgoing mail from the ip that matches the domain name in /etc/mailips" might be a solution, but in /etc/mailips i have the server main shared IP address set for all domains, and all emails are sent from that ip (in my example, ip D).
    If i change to "Automatically send outgoing mail from the account's IP address instead of the main IP address.", all emails were sent from exim's ip address, not from each domain's ip address.
     
  2. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    When enabling the automatic option are you seeing the file "/etc/mailips" updated or modified, or does the file stay the same (e.g., as seen via time stamps shown by the command "stat")?

    When the automatic option is enabled, are you able to trigger an update to the file "/etc/mailips" via the following command (via root SSH access)?
    Code:
    # /scripts/updateuserdomains --verbose
    Via root SSH access, what is the output from the following commands?
    Code:
    # egrep -i "mailhelo|mailips" /etc/exim.conf.localopts
    # lsattr /etc/mailhelo /etc/mailips
    # stat /etc/mailhelo /etc/mailips /var/cpanel/custom_mailhelo /var/cpanel/custom_mailips /var/cpanel/per_domain_mailips
     
    #2 cPanelDon, May 12, 2010
    Last edited: May 12, 2010
  3. NemoXP

    NemoXP Active Member

    Joined:
    Feb 25, 2010
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Constanta, Romania, Romania
    cPanel Access Level:
    Root Administrator
    hello

    When enabling the automatic option nothing happened to /etc/mailips file
    BUT
    i went and changed a domain ip, and then the file was updated

    i think is a bug in exim's configuration editor
    after changing those settings, all files (mailips, mailhelo, and other files) must be updated.

    thanks for your reply.

    conclusion: it is working with the auto option (just after a domain ip change)
     
Loading...

Share This Page