We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
output ip for mail server and fopen
output ip for mail server and fopen
Hello
I installed a vestacp and I have several ip failovers on my server.
I settuped 1 user per ip; ip not shared; and install my failovers; 1 domain per ip and user.
The apache entrance work perfectely; curl with ip interface also.
But when I do a fopen or get_file_content() or when I send email from a specific domain linked to a specific failover the request is still sent throught the main server ip.
How to solve this?
Thanx
Alban
I installed a vestacp and I have several ip failovers on my server.
I settuped 1 user per ip; ip not shared; and install my failovers; 1 domain per ip and user.
The apache entrance work perfectely; curl with ip interface also.
But when I do a fopen or get_file_content() or when I send email from a specific domain linked to a specific failover the request is still sent throught the main server ip.
How to solve this?
Thanx
Alban
Re: output ip for mail server and fopen
You need to do additional exim configuration for this... DirectAdmin have a proper configuration for this.
http://files1.directadmin.com/services/ ... 4.5.12.txt
So you need edit this section like:
Then create file /etc/exim/domainips with content:
More information: https://www.exim.org/exim-html-3.20/doc ... tml#SEC560
I'm not tested this configuration with vesta, so try to test and write freedback here :)
http://files1.directadmin.com/services/ ... 4.5.12.txt
Code: Select all
#COMMENT#61:
remote_smtp:
driver = smtp
headers_add = "${if def:authenticated_id{X-Authenticated-Id: ${authenticated_id}}}"
interface = <; ${if exists{/etc/virtual/domainips}{${lookup{$sender_address_domain}lsearch*{/etc/virtual/domainips}}}}
helo_data = ${if exists{/etc/virtual/helo_data}{${lookup{$sending_ip_address}iplsearch{/etc/virtual/helo_data}{$value}{$primary_hostname}}}{$primary_hostname}}
hosts_try_chunking =
Code: Select all
remote_smtp:
driver = smtp
#helo_data = $sender_address_domain
interface = <; ${if exists{/etc/exim/domainips}{${lookup{$sender_address_domain}lsearch*{/etc/exim/domainips}}}}
dkim_domain = DKIM_DOMAIN
dkim_selector = mail
dkim_private_key = DKIM_PRIVATE_KEY
dkim_canon = relaxed
dkim_strict = 0
Code: Select all
*:MAIN_IP
domain.tld:192.168.0.1
domain2.tld:192.168.0.2
etc...
I'm not tested this configuration with vesta, so try to test and write freedback here :)