Postfix Relay 的设置

我想让我的Postfix smtpd允许转发任意的来自$mydestination的用户的邮件.

Postfix默认转发是来自$my_networks和$replay_domains的邮件.

应该在main.cf里面如何设置?

vi /usr/local/etc/postfix/main.cf
smtpd_recipient_restrictions = permit_mynetworks,check_sender_access hash:/usr/local/etc/postfix/
sender_access,check_relay_domains

然后
vi /usr/local/etc/postfix/sender_access
your.domain.com OK

然后
/usr/local/sbin/postmap /usr/local/etc/postfix/sender_access

然后
/usr/local/sbin/postfix reload

即可

注意:your.domain.com设置成你的邮件域名,相应路径自己修改。

缺点:别人可以利用你的服务器,用户名设置成你的用户,然后到处发垃圾邮件。

解决:建议采用sasl

Related posts:

  1. VPS Ubuntu 上安装配置 Postfix + Courier (初级篇)
此条目发表在 Linux-Server 分类目录,贴了 , , 标签。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已被标记为 *

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word