我在使用 Ubuntu 11.04 64 位。
我正在尝试在我的 VPS 上设置 Postfix,它已配置好,但当我向别名发送电子邮件时,[email protected]
它会将其发送到[email protected]
。现在,当我从我的 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 recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 550 550 #5.1.0 Address rejected [email protected] (state 14).
----- Original message -----
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:date:message-id:subject:from:to:content-type;
bh=R1WtjVRWywfkWCR2g4QKbSjAfUaU9DAAMKbg9UAWqvs=;
b=FiSfdhEaV4pEq/76ENlH4tvOgm35Ow3ulRg06kDYrIQTaDf3eOEgfSEgH25PjZuAj/
7Hg1CL++o6Rt/tl80ZiR2AWekhA0zIn2JkqE7KssMG7WbBmMmbf8V9KDo2jOw+mZv+C/
KDKsQ65AudBZ/NYLDDpTT7MkKf8DzqeGCKj9MAct6sHDoC0wCciXYxNfTf+MKxrZvRHQ
oICTkH5LOugKW9wEjPF2AoO8X0qgYmTLYeSUtXxu46VeNKRBGmdRkkpPOoJlQN9ank7i
SW6kU6M9bk2bYOgKwV/YPsaantmYlu1XdmYx+kWeJkNJAyYOfXfZZ8WUJhbbFFD9bZCi
m/hw==
MIME-Version: 1.0
Received: by 10.101.3.5 with SMTP id f5mr783908ani.86.1334247306547; Thu, 12
Apr 2012 09:15:06 -0700 (PDT)
Received: by 10.236.73.136 with HTTP; Thu, 12 Apr 2012 09:15:06 -0700 (PDT)
Date: Thu, 12 Apr 2012 17:15:06 +0100
Message-ID: <CAN+9S2aB=xjiDxVZx3qYZoBMFD4XuadUyR_3OYWaxw1ecrZmOQ@mail.gmail.com>
Subject: Test Email
From: My Name <[email protected]>
To: [email protected]
Content-Type: multipart/alternative; boundary=001636c597eabfd21504bd7da8fd
现在我不明白为什么它不起作用,我的别名设置正确 - 我看不到在/var/log/mail.log
或任何其他邮件日志中产生的错误消息,这使我更难调试。
这是我的 postfix 配置(postconf -n
):
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = $mydomain, $myhostname, localhost, localhost.localdomain, localhost
mydomain = domain.com
myhostname = localhost
mynetworks = 192.168.1.0/24 127.0.0.0/8
readme_directory = no
recipient_delimiter = +
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
有人知道如何解决这个具体问题吗?
编辑:
我在我的邮件日志中发现了这一点(/var/log/mail.log
):
Apr 13 21:56:03 giTzor postfix/smtp[22260]: 12E761796006: to=<[email protected]>, orig_to=<[email protected]>, relay=mx2.hotmail.com[65.55.37.120]:25, delay=1.5, delays=0/0.01/0.64/0.8, dsn=2.0.0, status=sent (250 <[email protected]> Queued mail for delivery)
Apr 13 21:56:03 giTzor postfix/qmgr[1773]: 12E761796006: removed
编辑:
这是 GoDaddy 的 MX 记录:
编辑:
我已编辑我的 A 记录和 MX 记录:
我可以使用 Google Mail 向我的别名发送电子邮件,但似乎无法接收来自其他网站(例如 Facebook、Yahoo 等)甚至 Hotmail 帐户的电子邮件。
答案1
你跑了吗新别名?