Postfix cannot send or recieve mail as other mailserver "replied with my own hostname"

This page summarizes the projects mentioned and recommended in the original post on /r/postfix

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • postfixadmin

    PostfixAdmin - web based virtual user administration interface for Postfix mail servers

  • In the same log (/var/log/mail.info), it shows that "do not list domain (domain) in BOTH virtual_mailbox_domains and relay_domains" so I think that there may be a configuration issue, although I cannot find where it lists the domain twice. I've been using https://wiki.archlinux.org/title/Postfix and https://github.com/postfixadmin/postfixadmin/blob/master/DOCUMENTS/Postfix-Dovecot-Postgresql-Example.md to configure this. I spent quite a while looking through the configs, but I could not for the life of me find where I specified the domain twice, other than in the SQL queries where it has a domain as a variable (I think?) but I don't know enough SQL to risk messing with that.

  • postgresconf

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • Mail-in-a-Box

    Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.

  • Set up a complete mail server using https://mailinabox.email.

  • ImapSync

    Imapsync is an IMAP transfers tool. The purpose of imapsync is to migrate IMAP accounts or to backup IMAP accounts. IMAP is one of the three current standard protocols to access mailboxes, the two others are POP3 and HTTP with webmails, webmails are often tied to an IMAP server. Upstream website is

  • Following that, I installed fail2ban and iptables, and configured the firewall properly. Setup DKIM with this guide, then I rented a VPS for $4 a month as a backup MX, and hooked up two 240GB SSDs in RAID 1 to the Pi for storing all the mail. I used imapsync to transfer about 10 accounts out of Google, then made half a dozen new accounts on a different domain, too. I've not had any problems with deliverability on either domain after speaking to my ISP about configuring rDNS, and the only maintenance I've done is the occasional apt update && apt upgrade -y.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts