我想要做的就是安装 postfix,并转发电子邮件。我不需要任何东西留在我的服务器上。这让我见鬼去吧。我尽了最大努力,但 postfix 拒绝所有中继。
我想要的是这个。说我的服务器在example.com.
我想要这个:
邮件转发:
user1@example.com -> user1@gmail.com
user2@example.com -> user2@yahoo.com
user3@example.com -> user3@hotmail.com
Run Code Online (Sandbox Code Playgroud)
我所需要的只是一个转发箱,它可以重定向收到的电子邮件。因为我的配置显然有问题,我真的可以只使用一个示例 main.cf 来满足我的目的,我会继续的。
编辑:日志
奇怪的是日志没有给我任何错误。
main.cf
:
mreiley@Omega-14:/var/log$ cat /etc/postfix/main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is …
Run Code Online (Sandbox Code Playgroud) 我的问题是这个。
对现有的免费 DNS 域名服务器解决方案不满意,我决定为我的网站制作自己的域名服务器。我在 Debian 上使用 NSD,效果很好。我可以使用 DIG 从服务器请求记录并获得正确的响应和所有爵士乐。
但是,有一个问题,我不知道如何规避。为了将我的域名服务器提供给我的域名注册商,他们需要 A 记录。(ns1.example.com 等)
问题是:由于我让这些服务器处理我所有域的 DNS,我不确定如何为服务器本身创建 A 记录。如果我在自己的服务器中创建 ns1、ns2 记录,我的注册商将无法查找它们。但是为了在外部创建这些记录以便我可以将注册商指向我的服务器,我需要使用外部源注册这些 A 记录,对吗?
我如何为我的域名服务器引导 A 记录,以便我的注册商可以看到它们足够长的时间来插入?还是我完全误解了这个问题?
我希望这有点道理。
a-record ×1
debian ×1
email ×1
forwarding ×1
glue-record ×1
linux ×1
nameserver ×1
nsd ×1
postfix ×1