
Originally Posted by
NemoXP
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