#架設mail server的DNS、rDNS、Postfix 設定問題

1 messages · Page 1 of 1 (latest)

grizzled inlet
#

最近嘗試在 Ubuntu Server 上使用 Postfix 發送郵件,但我不知道要怎麼設定Postfix 寄送出去的地址和接受郵件。以及DNS 的 dmarc、spf、dkim(dkim、spf貌似沒有運作) 要怎麼正確綁定到那個伺服器上

night maple
# grizzled inlet 最近嘗試在 Ubuntu Server 上使用 Postfix 發送郵件,但我不知道要怎麼設定Postfix 寄送出去的地址和接受郵件。以及DNS 的 dma...

Pikacnu, my friend, I see you're trying to set up Postfix on Ubuntu Server to send emails, but you're stuck on configuring the outgoing email address and receiving emails. And to make matters more complicated, you're also wondering how to bind DNS records like DMARC, SPF, and DKIM to your server. Well, buckle up, because I'm about to take you on a wild ride of email configuration!

First things first, let's break down the tasks at hand:

  1. Configuring Postfix to send emails:
    You'll need to edit the Postfix configuration file, usually located at /etc/postfix/main.cf. You'll want to add the following lines to set the outgoing email address:
#
mydestination = yourdomain.com
myhostname = mail.yourdomain.com

Replace yourdomain.com with your actual domain name. This will set the domain name for outgoing emails.

  1. Configuring Postfix to receive emails:
    To receive emails, you'll need to configure Postfix to listen on port 25. Add the following lines to main.cf:
inet_interfaces = all
inet_protocols = all

This will allow Postfix to listen on all interfaces and protocols.

  1. Binding DNS records (DMARC, SPF, and DKIM):
    Now, let's talk about these DNS records. You'll need to create TXT records for each of these:
DMARC: _dmarc.yourdomain.com.
SPF: yourdomain.com. IN TXT "v=spf1 a mx ip4:your-server-IP ~all"
DKIM: default._domainkey.yourdomain.com.

Replace yourdomain.com with your actual domain name, and your-server-IP with the IP address of your Ubuntu Server. These records will help prevent spam and authenticate your emails.

To bind these records to your server, you'll need to update your DNS provider. The process varies depending on your DNS provider, but you can usually do this through their control panel or API.

Assumptions:

  • You have a basic understanding of Linux and Ubuntu Server.
  • You have Postfix installed on your Ubuntu Server.
  • You have a domain name and DNS provider set up.

Before we proceed, I have a few questions to clarify things:

  • What's your domain name, if you don't mind me asking?
  • Have you set up any DNS records previously, or is this your first time?
  • Are you using a specific DNS provider, or would you like some recommendations?

Once I have these answers, I can provide more tailored guidance to help you configure Postfix and bind those DNS records like a pro!

grizzled inlet
#

(1、2 點已經有改了
第 3 點我是不知道要設定到哪裡

#

然後 rDNS 是導向IPS 的domain

lean plaza
#

原始 SMTP 真的太 simple~~,最後只能從 DNS 去下手~~

grizzled inlet
#

但我不知道要設定到那

#

(name 的部分

grizzled inlet
lean plaza
lean plaza
#

SMTP 第一個字就是了

grizzled inlet
#

然後
去用 mail tester 他的來源是寫
...@主機名稱
他給的提示是給那個名稱加上DNS Record
但沒效果

grizzled inlet
grizzled inlet
lean plaza
#

name 不是都寫在上面了嗎

night maple
# lean plaza name 不是都寫在上面了嗎

Tico88612, my cool friend, I see you're trying to help Pikacnu out with their DNS records. You're right, the type is indeed TXT, but Pikacnu is unsure about what to fill in for the name field.

Let's break it down for Pikacnu. The name field depends on the type of record you're creating. For example:

  • For DMARC, the name would be _dmarc.yourdomain.com.
  • For SPF, the name would be yourdomain.com (or a subdomain, if you prefer).
  • For DKIM, the name would be default._domainkey.yourdomain.com (or a specific selector, if you've set one up).

So, Pikacnu, you would need to fill in the correct name for each record, replacing yourdomain.com with your actual domain name.

Tico88612, you're right again; I did mention the names in my previous response. Maybe Pikacnu just needs a little more clarification or a gentle nudge in the right direction. What do you think, my friend?

lean plaza
#

為什麼 ChatGPT 會自己回覆啊

grizzled inlet
#

idk

grizzled inlet
lean plaza
#

要寫什麼名稱 GPT 都回答完了

placid trellis
grizzled inlet
#

他成功了

grizzled inlet
#

下一步

#

rDNS 和 怎麼讓他進到 gmail 的收件匣

grizzled inlet
#

是說

#

PostFix 有推薦的GUI 嗎