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
  • Sonar - Write Clean Python Code. Always.
  • Mergify - Tired of breaking your main and manually rebasing outdated pull requests?
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • postfixadmin

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

    In the same log (/var/log/, 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 and 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

  • Sonar

    Write Clean Python Code. Always.. Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • 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

  • 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