我最近在我shiny的新机架空间云上安装了virtualmin。 一切都没有变化,但我有一些问题,让电子邮件发送正常。 问题似乎是服务器不能发送邮件到我的服务器拥有域的邮件地址。
例如,在我的服务器上运行多个虚拟域,让我们称之为test.com。 当我从shell(邮件[email protected])运行邮件命令时,我从maillog获得以下信息:
Oct 6 14:55:18 test postfix/pickup[8737]: DC1131612CC: uid=0 from= Oct 6 14:55:18 test postfix/cleanup[8769]: DC1131612CC: [email protected] Oct 6 14:55:18 test postfix/qmgr[8738]: DC1131612CC: [email protected], size=353, nrcpt=1 (queue active) Oct 6 14:55:18 test postfix/error[8771]: DC1131612CC: [email protected], relay=none, delay=0, delays=0/0/0/0, dsn=5.0.0, status=bounced (User unknown in virtual alias table) Oct 6 14:55:18 test postfix/cleanup[8769]: DD07D1612D1: [email protected] Oct 6 14:55:18 test postfix/bounce[8772]: DC1131612CC: sender non-delivery notification: DD07D1612D1 Oct 6 14:55:18 test postfix/qmgr[8738]: DD07D1612D1: from=<>, size=2268, nrcpt=1 (queue active) Oct 6 14:55:18 test postfix/qmgr[8738]: DC1131612CC: removed Oct 6 14:55:18 test postfix/local[8773]: DD07D1612D1: [email protected], relay=local, delay=0.03, delays=0/0/0/0.03, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME) Oct 6 14:55:18 test postfix/qmgr[8738]: DD07D1612D1: removed
当我运行邮件[email protected]邮件发送和接收完全正常。 当谈到服务器时,我有点小气,但是我很快就会select一些东西,所以请原谅任何不正确的术语和我的一般不自然。
任何帮助将不胜感激,我一直在谷歌search了很长一段时间,但我还没有find一个解决scheme,我会在下面的响应添加我的main.cf文件的副本
欢呼家伙
这里是重新格式化的postconf,你想重新格式化main.cf文件,还是这样就够了?
alias_database = hash:/etc/postfix/aliases alias_maps = hash:/etc/postfix/aliases broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 home_mailbox = Maildir/ html_directory = no mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man myhostname = server.test.com newaliases_path = /usr/bin/newaliases.postfix readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES sample_directory = /usr/share/doc/postfix-2.3.3/samples sender_bcc_maps = hash:/etc/postfix/bcc sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous unknown_local_recipient_reject_code = 550 virtual_alias_maps = hash:/etc/postfix/virtual
虚拟别名表中的用户未知
应该是问题。 由于该文件是/ etc / postfix / virtual,你能检查它吗? 你有postmap /etc/postfix/virtual rehash吗? 如果你想使用它,不要忘了为这个域创build一个root帐户…