Centos 6 邮件服务器/无法接收电子邮件但可以发送

Centos 6 邮件服务器/无法接收电子邮件但可以发送

我最近使用 Centos 6 设置了我的服务器,并使用带有 httpd、php、mysql 和邮件服务器的 ISPconfig 3。我可以在控制面板中创建电子邮件帐户,并且可以成功登录到网络邮件,我尝试向其他提供商的其他电子邮件发送消息,并且收到了它,然后尝试向我的服务器发送电子邮件([电子邮件保护]), 并且邮件服务器响应, 但拒绝了此回复。

From:   
[email protected]  (Add as Preferred Sender)    
Date:   Tue, Jan 29, 2013 11:11 pm
To: [email protected]
This is the mail system at host teknikk.info.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

<[email protected]>: unknown user: "tek"

附上发货报告

Reporting-MTA: dns; teknikk.info
X-Postfix-Queue-ID: CD9571A1312
X-Postfix-Sender: rfc822; [email protected]
Arrival-Date: Wed, 30 Jan 2013 00:11:00 +0100 (CET)

Final-Recipient: rfc822; [email protected]
Original-Recipient: rfc822;[email protected]
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "tek"

我在本指南的帮助下完成了所有设置,http://www.howtoforge.com/perfect-server-centos-6.3-x86_64-apache2-dovecot-ispconfig-3安装没有问题,但不知何故,邮件没有寄送到帐户。


/etc/别名

#
#  Aliases in this file will NOT be expanded in the header from
#  Mail, but WILL be visible over networks or from /bin/mail.
#
#       >>>>>>>>>>      The program "newaliases" must be run after
#       >> NOTE >>      this file is updated for any changes to
#       >>>>>>>>>>      show through to sendmail.
#

# Basic system aliases -- these MUST be present.
mailer-daemon:  postmaster
postmaster:     root
mailman:              "|/usr/lib/mailman/mail/mailman post mailman"
mailman-admin:        "|/usr/lib/mailman/mail/mailman admin mailman"
mailman-bounces:      "|/usr/lib/mailman/mail/mailman bounces mailman"
mailman-confirm:      "|/usr/lib/mailman/mail/mailman confirm mailman"
mailman-join:         "|/usr/lib/mailman/mail/mailman join mailman"
mailman-leave:        "|/usr/lib/mailman/mail/mailman leave mailman"
mailman-owner:        "|/usr/lib/mailman/mail/mailman owner mailman"
mailman-request:      "|/usr/lib/mailman/mail/mailman request mailman"
mailman-subscribe:    "|/usr/lib/mailman/mail/mailman subscribe mailman"
mailman-unsubscribe:  "|/usr/lib/mailman/mail/mailman unsubscribe mailman"
# General redirections for pseudo accounts.
bin:            root
daemon:         root
adm:            root
lp:             root
sync:           root
shutdown:       root
halt:           root
mail:           root
news:           root
uucp:           root
operator:       root
games:          root
gopher:         root
ftp:            root
nobody:         root
radiusd:        root
nut:            root
dbus:           root
vcsa:           root
canna:          root
wnn:            root
rpm:            root
nscd:           root
pcap:           root
apache:         root
webalizer:      root
dovecot:        root
fax:            root
quagga:         root
radvd:          root
pvm:            root
amanda:         root
privoxy:        root
ident:          root
named:          root
xfs:            root
gdm:            root
mailnull:       root

尝试创建一个名为[电子邮件保护]并且没有收到任何错误,但没有在收件箱中收到,而是在 /var/spool/mail/root 中收到。

From ***********@gmail.com  Thu Jan 31 01:01:52 2013
Return-Path: <*********@gmail.com>
X-Original-To: [email protected]
Delivered-To: [email protected]
Received: from localhost (unknown [127.0.0.1])
        by teknikk.info (Postfix) with ESMTP id 083BF1A131E
        for <[email protected]>; Thu, 31 Jan 2013 00:01:52 +0000 (UTC)
X-Virus-Scanned: amavisd-new at teknikk.info
Received: from teknikk.info ([127.0.0.1])
        by localhost (teknikk.info [127.0.0.1]) (amavisd-new, port 10024)
        with ESMTP id 2XRR49L51PYm for <[email protected]>;
        Thu, 31 Jan 2013 01:01:51 +0100 (CET)
Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180])
        by teknikk.info (Postfix) with ESMTPS id B6C001A1314
        for <[email protected]>; Thu, 31 Jan 2013 01:01:50 +0100 (CET)
Received: by mail-vc0-f180.google.com with SMTP id fo13so1371099vcb.25
        for <[email protected]>; Wed, 30 Jan 2013 16:01:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:x-received:date:message-id:subject:from:to
         :content-type;
        bh=6+cGiWqC5rk7+tY2hOc3FkwVEvRIENfjOf46AqnjdGM=;
        b=kFz/YsQysZb99aGhpKYljBCTxwSaOBz6hd5wTs7iG/jLzw+Ib1KjpwA+GAS+e6HSkZ
         L5svGpK2/fQ5lSEp7H4xL49zOU9ATQ2zxLk3iihnhCnPhik4bsWzVwtMFWbkImGf+QQy
         MeK0LiZVY9Tc8ioeyNong9CQMzGZF8DVQxyo/3uXT6t5sc4dosoI9pCVtvsZX4aYLSHa
         YYInKpiE4j02dPGtDzOqoZulMTBWz2JGMC9m3iP0vM/EFSQQ4Me0HUcx1rglDa9Rafe4
         LAoRYHx2ctIaT15XOhDeQlyl1+MDV6TTbcd0rXDuJxl8q/I8BtPAcWpU5Sm00kq1/mIK
         BMsw==
MIME-Version: 1.0
X-Received: by 10.52.21.146 with SMTP id v18mr5586245vde.79.1359590494567;
 Wed, 30 Jan 2013 16:01:34 -0800 (PST)
Received: by 10.52.156.66 with HTTP; Wed, 30 Jan 2013 16:01:34 -0800 (PST)
Date: Thu, 31 Jan 2013 01:01:34 +0100
Message-ID: <CAPhR9Av=V3pvzU7k6WSRtXHQGDAmO1ObR0OOnW4c2GvjNMJX4Q@mail.gmail.com>
Subject: Grr
From: Andreas Teknikk <**********@gmail.com>
To: [email protected]
Content-Type: multipart/alternative; boundary=20cf307ca38e77fe3004d48a540b

--20cf307ca38e77fe3004d48a540b
Content-Type: text/plain; charset=ISO-8859-1

Why doesn't the other accounts work?

--20cf307ca38e77fe3004d48a540b


更新

在控制面板中尝试了一些操作,并将我的其他域名 gametek.me 添加到 ISPConfig 中的电子邮件 [域] 中,并创建了一个测试帐户

并尝试使用 GMail 向其发送一封测试邮件,突然,邮件到达了,然后我尝试了我的主域 teknikk.info,然后我收到了错误“用户不存在”,但它确实存在。

所以我想知道,是不是因为服务器主机名是我的主域,因为我尝试了另一个域,并且没有任何问题。_。

我尝试从 cpanel 中删除主域,然后重新添加它,但仍然不起作用。

因此,如果我使用我的主域名,电子邮件将不会到达,但如果我使用我的第二个域名,电子邮件就会到达。

我很困惑,因为为什么其他域名可以工作,而主域名却不工作?

因为我需要修复它,因为我使用我的主域名来做事。


问题已修复

现在这个问题已经解决了,必须将 postconf | grep ^mydestination 显示的 mydestination 更改为其他,将其更改为 server1.example.com,之后,我收到了我发送的测试邮件。

答案1

postfix 是否配置为接受域的邮件?

postconf | grep ^mydestination

我知道由于未知的用户错误这听起来不正确,但值得检查。

相关内容