email - Postfix - relaying specific email addresses within a mydestination domain
问题描述
Having some issues trying to get something working on postfix.
That is, I have a domain abc.com
which is a destination domain on my postfix server 1.2.3.4
, it hosts mailboxes for addresses in this domain locally by default - straight-forward.
However, I would like to be able to "relay" specific email addresses from within this same domain (say: userx@abc.com
) to another postfix server [5.6.7.8]:2525
- yet still retaining the original ability of being able to deliver mail to all other addresses *@abc.com
locally on my original postfix server 1.2.3.4
.
Is anyone able to advise how I can go about doing this?
Thanks in advance!
Update 1:
...still have one issue.
So I have transport
file:
userx@abc.com relay:[5.6.7.8]:2525
*@abc.com local
And main.cf
:
relay_domains = abc.com
This config sends to the relay perfect as I want, but any other addresses (in the wildcard scope) do not get delivered as they try to go straight back out the default relay server (another server altogether), where-as instead I'd like them to hit /etc/aliases
or a local mailbox.
解决方案
推荐阅读
- android - 从 API 25 开始,无法读取 Room DB 数据
- javascript - NgRx 参数化选择器显示空结果
- svn - SVN Repository:如何验证复制的数据与源相同?
- r - 如何进行多重关联?
- python - 计算 Pyspark 中的平均用户存在
- java - 如何用 BigDecimals 进行除法
- java - 线程“主”java.lang.NoClassDefFoundError 中的异常:org/apache/pulsar/client/api/PulsarClient
- java - 将直到运行时才知道的对象转换为其类型
- ios - 基于处理器的计算和计算器的正弦值差异
- ldap - DN-String 属性中的 LDAP 过滤器