Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

output ip for mail server and fopen

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
albanl123
Posts: 3
Joined: Thu Apr 04, 2019 3:42 am

Os: Debian 7x
Web: apache + nginx
output ip for mail server and fopen
  • Quote

Post by albanl123 » Thu Apr 04, 2019 3:51 am

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
Top

dreiggy
Posts: 154
Joined: Thu May 17, 2018 8:05 pm
Contact:
Contact dreiggy
Skype

Os: CentOS 6x
Web: apache + nginx
Re: output ip for mail server and fopen
  • Quote

Post by dreiggy » Fri Apr 05, 2019 5:23 pm

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

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 =
So you need edit this section like:

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
Then create file /etc/exim/domainips with content:

Code: Select all

*:MAIN_IP
domain.tld:192.168.0.1
domain2.tld:192.168.0.2
etc...
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 :)
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password