Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Feb 2010
    Location
    Romania
    Posts
    22

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

    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. #2
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by NemoXP View Post
    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.
    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
    Last edited by cPanelDon; 05-12-2010 at 07:45 PM.

  3. #3
    Member
    Join Date
    Feb 2010
    Location
    Romania
    Posts
    22

    Default

    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)

Similar Threads & Tags
Similar threads

  1. Automatic cPanel backup (domain & MySQL) with cron & PHP
    By tastaram in forum Data Protection
    Replies: 32
    Last Post: 03-06-2012, 06:43 AM
  2. Exim & PHP & Domains & Ip's & /etc/mailips
    By NemoXP in forum New User Questions
    Replies: 0
    Last Post: 05-12-2010, 08:41 AM
  3. Replies: 12
    Last Post: 08-16-2006, 10:56 PM
  4. Replies: 6
    Last Post: 07-20-2005, 03:28 AM
  5. Mysql 4 & php & horde problem
    By vincento in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-10-2003, 07:52 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube