后缀:中继来自特定域的邮件 [英] Postfix: Relay mails from specific domain

查看:156
本文介绍了后缀:中继来自特定域的邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Postfix与Zarafa结合使用作为群件(本地服务器),并将邮件从外部服务器导入本地服务器上的邮箱.我这样做是因为外部服务器上的资源有限.

I'm using postfix in combination with Zarafa as Groupware (local server) and import mails from an external server to a mailbox on my local server. I do this, because of restricted resources on the external server.

因此,外部服务器上的传入邮件将重定向到我的本地服务器-但是发送邮件是在本地服务器上完成的.问题在于,外部邮件服务器的域的rx-Record没有指向我的服务器-因此,我的发送邮件被标记为垃圾邮件,尤其是在GMail中.

So incoming mails at the external server are redirected to my local server - but sending mails is done on the local server. The problem is, that the rx-Record of the domain of the external mail server does not point to my server - so my send mails are marked as spam, especially in GMail.

因此,我想将本地邮箱的传出邮件中继到外部服务器以解决此问题.我想将此中继限制为单个域-本地服务器上还有其他域不需要中继,因为这些域归我所有并且MX记录正确.

Therefore I want to relay the outgoing mails of the local mailbox to the external server to fix this issue. I want to restrict this relaying to this single domain - there are other domains on the local server witch don't need to be relayed, because the domains are owned by me and the MX record is correct.

推荐答案

使其与中继服务器一起使用:

Got it to work with relay server:

main.cf

sender_dependent_relayhost_maps = hash:/etc/postfix/relaymaps
smtp_sender_dependent_authentication = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_type = cyrus
smtp_sasl_security_options = noanonymous

...并创建中继映射和sasl_passwd文件

... and creating relaymaps and sasl_passwd file

这篇关于后缀:中继来自特定域的邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆