我需要实现以下function:
用户发送电子邮件至[email protected],现在不存在电子邮件。 我购买这个域(example1.com),并希望自动将所有传入[email protected]的电子邮件redirect到其他公司的[email protected]。 域example1.com将仅用于此电子邮件别名。
我有VPS服务器与Ubuntu,Nginx安装,例如,与IP 80.70.60.50。
我如何configuration该function? 我应该select哪种types的DNSlogging?
其实有两个select:
example2.com邮件服务器时: [email protected]邮箱相应的电子邮件地址[email protected]也将被接受[email protected]送到那里。 您将需要使用dig MX example.2.com查找example.2.com现有MX DNSlogging,并为example.1.com域设置相同的logging。 这会导致类似的东西
example1.com. IN MX 5 smtp.example2.com. example1.com. IN MX 10 relay.example2.com.
然后configuration那些现有的邮件服务器( [smtp | relay].example2.com. )接受新的别名域的邮件。
example2.com邮件服务器时: 您将需要创buildDNS MXlogging,以将@ example1.com的传入电子邮件传送到您的VPS:
example1.com. IN MX 5 smtp.example1.com. smtp.example1.com. IN A <ip-address of your VPS>
然后用postfix设置实例: 如何在Postfix中将所有邮件从一个域redirect到另一个域?