Page 2 of 2

Re: SMTP don't work with multiple domains and IPs?

Posted: Sat Jan 28, 2017 3:54 am
by vestingpanel
Hi!

How can I include a wildcard in domainips file? I mean, I want all domains but one to use IP X.X.X.X and that single domain to use Y.Y.Y.Y

Also, how can I link a SSL certificate for SMTP server for those domains?

Re: SMTP don't work with multiple domains and IPs?

Posted: Thu Nov 16, 2017 9:01 pm
by cthemudo
logger wrote:work )

Code: Select all

remote_smtp:
  driver = smtp
  helo_data = $sender_address_domain
  dkim_domain = DKIM_DOMAIN
  dkim_selector = mail
  dkim_private_key = DKIM_PRIVATE_KEY
  dkim_canon = relaxed
  dkim_strict = 0
  interface = <;${lookup{$sender_address_domain}lsearch{/etc/exim/domainips}}

Code: Select all

[root@srv exim]# cat /etc/exim/domainips
domain1.ru:178.208.1.9;
domain2.ru:178.208.2.12;
+1

Re: SMTP don't work with multiple domains and IPs?

Posted: Thu Nov 16, 2017 9:04 pm
by cthemudo
vestingpanel wrote:Hi!

How can I include a wildcard in domainips file? I mean, I want all domains but one to use IP X.X.X.X and that single domain to use Y.Y.Y.Y

Also, how can I link a SSL certificate for SMTP server for those domains?
I use:

Code: Select all

cat /etc/exim/domainips 
domain.es: 11.22.33.44;
*:55.66.77.88;
and it's work!