电子邮件到根 – 在maildir文件上的CentOS和Postfix的permssion错误

我正在尝试设置一个新的邮件中继服务器,仅通过TLS从内部服务器发送电子邮件。 我已经按照这个指南http://www.krizna.com/centos/setup-mail-server-centos-7/到第10步。我只需要发送电子邮件没有收到。

反正我不断收到以下错误,并不知道如何更正根邮件文件夹的权限问题。

有任何想法吗? 先谢谢了!

错误:

Sep 25 11:38:39 mx postfix/local[2894]: warning: perhaps you need to create the maildirs in advance Sep 25 11:38:39 mx postfix/local[2894]: C16AA4BE1A: to=<[email protected]>, orig_to=<postmaster>, relay=local, delay=0.06, delays=0.03/0.01/0/0.02, dsn=5.2.0, status=bounced (maildir delivery failed: create maildir file /root/mail/tmp/1443199119.P2894.mx.mydomain.com: Permission denied) Sep 25 11:38:39 mx postfix/bounce[2895]: warning: C16AA4BE1A: undeliverable postmaster notification discarded Sep 25 11:38:39 mx postfix/qmgr[2806]: C16AA4BE1A: removed Sep 25 11:38:45 mx postfix/submission/smtpd[2888]: connect from mydesktop.mydomain.local[192.168.1.180] Sep 25 11:38:45 mx postfix/submission/smtpd[2888]: NOQUEUE: reject: RCPT from mydesktop.mydomain.local[192.168.1.180]: 554 5.7.1 <[email protected]>: Recipient address rejected: Access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<ops-001> Sep 25 11:38:45 mx postfix/submission/smtpd[2888]: disconnect from mydesktop.mydomain.local[192.168.1.180] 

处理电子邮件到root

应该使用别名将电子邮件redirect到root到正常(非特权)操作系统用户邮箱。
[这是非常强大的,但你可以使用其他手段redirect]

一般来说:
尽量less用root权限。
不需要root权限(出于安全原因)。