Now Hiring: Are you a driven and motivated 1st Line IT Support Engineer?

Blog

EXIM 多IP发送Email邮件解决方案 DA/CP版

EXIM 多IP发送Email邮件解决方案 DA/CP版

DirectAdmin官方论坛解决方案

Thanks for your advices, I have put this lines into exim.conf and it works now:

local_interfaces = a.a.a.a : b.b.b.b : c.c.c.c : d.d.d.d
smtp_active_hostname = ${lookup{$interface_address}lsearch{/etc/virtual/smtp_active_hostnames}{$value}}
smtp_banner = "$smtp_active_hostname ESMTP $tod_full"

create new file smtp_active_hostname with ip: hostname compare for every domain and ip address

remote_smtp:
driver = smtp
interface = "${lookup{$sender_address_domain}lsearch{/etc/virtual/domainips}{$value}}"
helo_data = "mail.$sender_address_domain"

and create file domainips with domain: ip address compare for every domain and ip address

cPanel官方解决方案
==========================================
/etc/exim.pl
sub randinet {
@inet = ("x.x.x.1", "x.x.x.2", "x.x.x.3", "x.x.x.4");
return $inet[int rand($#inet+1)];
}

查找 "interface="
remote_smtp:
driver = smtp
interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch*{/etc/mailips}{$value}{}}}{}}
替换为
interface = "{perl{randinet}}"

列表模式
================================

Leave your thought here

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
Click outside to hide the comparison bar
Compare