我尝试在 debian squeeze 机器上安装 citadel。
到目前为止,我所做的是:
- 从 repo 安装 citadel
- 创建用户 testuser 并为其分配地址[电子邮件保护]
向 cloudflare 添加 2 mx 记录
3a. mail.mydomain.com 1.2.3.4
3b. MX:mydomain.com mail.mydomain.com 40
编辑我的 /etc/hosts 文件,并添加 myIP mydomain.com\n myIP mail.mydomain.com
然后,我可以向我的 Gmail 帐户发送一封电子邮件,并且我可以在收件人中看到:[电子邮件保护]
但是,当我从我的 Gmail 帐户发送电子邮件到[电子邮件保护],我收到此错误信息:
Delivery to the following recipient failed permanently:
[email protected]
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain mydomain.com by mail.mydomain.com. [1.2.3.4].
The error that the other server returned was:
550 Invalid recipient: testusermydomain.com
并不是说“@”消失了:testusermydomain.com 而不是[电子邮件保护]
当我尝试发送电子邮件至[电子邮件保护],我收到了不同的错误消息:
The error that the other server returned was:
551 <[email protected]> - relaying denied
我对邮件服务器设置过程还比较陌生,我选择 citadel 是因为它的简单性。有人知道哪里出了问题吗?
答案1
按照此链接上的说明,设置即可正确进行。
http://www.ducky-pond.com/posts/2012/Jul/installing-citadel-on-rpi/
sudo mkdir /etc/citadel/netconfigs
sudo chown citadel:citadel /etc/citadel/netconfigs
sudo service citadel restart
sudo /usr/lib/citadel-server/setup
然后您需要编辑 /etc/init.d/webcit,并将其放在 #/bin/sh 之后(如果缺失)
### BEGIN INIT INFO
# Provides: webcit
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO