[GH-ISSUE #1789] Dovecot is rejecting aliased catch-all #1412

Closed
opened 2026-02-27 11:16:58 +03:00 by kerem · 1 comment
Owner

Originally created by @dbryar on GitHub (Nov 11, 2019).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1789

Impacted versions

  • Modoboa: 1.14.0
  • installer used: Yes ?
  • Webserver: Nginx

Steps to reproduce

Fresh installation, created one admin user admin@domain1.tld, 4 domains, and then created catch-all alias from each domain to user on primary domain

  • User identity: admin@domain1.tld
  • Aliases @domain1.tld @domain2.tld @domain3.tld @domain4.tld

Current behavior

Unless a mailbox explicitly exists or has an explicit alias on the same domain, the log shows

Recipient address rejected: undeliverable address: host mail.domain1.tld[private/dovecot-lmtp] said: 550 5.1.1 <test@domain2.tld> User doesn't exist: test@domain2.tld

Expected behavior

Email to any non-user on domains 1-4 is redirected to admin@domain1.tld

Video/Screenshot link (optional)

N/A

I'm fairly certain it is Dovecot that is rejecting the mail as the MTA is asking if LMTP knows of a user for the mail, and then saying "compu-a says no" to the sender during the SMTP, but all the checks are to the database and I dont want to break the queries as I'm not fully understanding of the schema

Originally created by @dbryar on GitHub (Nov 11, 2019). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1789 # Impacted versions * Modoboa: 1.14.0 * installer used: Yes ? * Webserver: Nginx # Steps to reproduce Fresh installation, created one admin user <admin@domain1.tld>, 4 domains, and then created catch-all alias from each domain to user on primary domain * User identity: admin@domain1.tld * Aliases @domain1.tld @domain2.tld @domain3.tld @domain4.tld # Current behavior Unless a mailbox explicitly exists or has an explicit alias on the same domain, the log shows ``` Recipient address rejected: undeliverable address: host mail.domain1.tld[private/dovecot-lmtp] said: 550 5.1.1 <test@domain2.tld> User doesn't exist: test@domain2.tld ``` # Expected behavior Email to any non-user on domains 1-4 is redirected to admin@domain1.tld # Video/Screenshot link (optional) N/A I'm fairly certain it is Dovecot that is rejecting the mail as the MTA is asking if LMTP knows of a user for the mail, and then saying "compu-a says no" to the sender during the SMTP, but all the checks are to the database and I dont want to break the queries as I'm not fully understanding of the schema
kerem closed this issue 2026-02-27 11:16:58 +03:00
Author
Owner

@dbryar commented on GitHub (Nov 11, 2019):

I believe I have figured this out, so an update for anyone reading that has the same issue.
Upon default installation, Postfix is running in compatibility mode, and is ignoring a lot of the configuration options in main.cf

sudo postfix reload
postfix: Postfix is running with backwards-compatible default settings
postfix: See http://www.postfix.org/COMPATIBILITY_README.html for details
postfix: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
postfix/postfix-script: refreshing the Postfix mail system

Fix it with this;

pi@piserver:~ $ sudo postconf compatibility_level=2
pi@piserver:~ $ sudo postfix reload
postfix/postfix-script: refreshing the Postfix mail system
<!-- gh-comment-id:552667678 --> @dbryar commented on GitHub (Nov 11, 2019): I believe I have figured this out, so an update for anyone reading that has the same issue. Upon default installation, Postfix is running in compatibility mode, and is ignoring _a lot_ of the configuration options in main.cf ``` sudo postfix reload postfix: Postfix is running with backwards-compatible default settings postfix: See http://www.postfix.org/COMPATIBILITY_README.html for details postfix: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload" postfix/postfix-script: refreshing the Postfix mail system ``` Fix it with this; ``` pi@piserver:~ $ sudo postconf compatibility_level=2 pi@piserver:~ $ sudo postfix reload postfix/postfix-script: refreshing the Postfix mail system ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1412
No description provided.