[GH-ISSUE #403] in autoreply documentation, precise importance of order in virtual_alias_maps #385

Closed
opened 2026-02-27 11:11:30 +03:00 by kerem · 2 comments
Owner

Originally created by @tonioo on GitHub (Dec 4, 2013).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/403

Originally assigned to: @tonioo on GitHub.

Originally created by Fabrice Flore-Thébault on 2013-05-08T16:44:47Z

In http://docs.modoboa.org/getting_started/plugins.html#postifx-auto-reply-messages please add a note about the importance of the order of the maps.

This will work (sql-autoreplies.cf is 2nd position)

    virtual_alias_maps = mysql:/etc/postfix/mapfiles/sql-aliases.cf,
          mysql:/etc/postfix/mapfiles/sql-autoreplies.cf,
          mysql:/etc/postfix/mapfiles/sql-domain-aliases-mailboxes.cf,
          mysql:/etc/postfix/mapfiles/sql-email2email.cf,
          mysql:/etc/postfix/mapfiles/sql-catchall-aliases.cf,

But this will not work (sql-autoreplies.cf is last position):

    virtual_alias_maps = mysql:/etc/postfix/mapfiles/sql-aliases.cf,
          mysql:/etc/postfix/mapfiles/sql-domain-aliases-mailboxes.cf,
          mysql:/etc/postfix/mapfiles/sql-email2email.cf,
          mysql:/etc/postfix/mapfiles/sql-catchall-aliases.cf,
          mysql:/etc/postfix/mapfiles/sql-autoreplies.cf,
Originally created by @tonioo on GitHub (Dec 4, 2013). Original GitHub issue: https://github.com/modoboa/modoboa/issues/403 Originally assigned to: @tonioo on GitHub. **Originally created by Fabrice Flore-Thébault on 2013-05-08T16:44:47Z** In http://docs.modoboa.org/getting_started/plugins.html#postifx-auto-reply-messages please add a note about the importance of the order of the maps. This will work (sql-autoreplies.cf is 2nd position) <pre> virtual_alias_maps = mysql:/etc/postfix/mapfiles/sql-aliases.cf, mysql:/etc/postfix/mapfiles/sql-autoreplies.cf, mysql:/etc/postfix/mapfiles/sql-domain-aliases-mailboxes.cf, mysql:/etc/postfix/mapfiles/sql-email2email.cf, mysql:/etc/postfix/mapfiles/sql-catchall-aliases.cf, </pre> But this will not work (sql-autoreplies.cf is last position): <pre> virtual_alias_maps = mysql:/etc/postfix/mapfiles/sql-aliases.cf, mysql:/etc/postfix/mapfiles/sql-domain-aliases-mailboxes.cf, mysql:/etc/postfix/mapfiles/sql-email2email.cf, mysql:/etc/postfix/mapfiles/sql-catchall-aliases.cf, mysql:/etc/postfix/mapfiles/sql-autoreplies.cf, </pre>
kerem 2026-02-27 11:11:30 +03:00
Author
Owner

@tonioo commented on GitHub (Dec 4, 2013):

Posted by Fabrice Flore-Thébault on 2013-05-15T19:48:11Z

In fact the correct order seems to be this one:

virtual_alias_maps = mysql:/etc/postfix/mapfiles/sql-aliases.cf,
      mysql:/etc/postfix/mapfiles/sql-domain-aliases-mailboxes.cf,
      mysql:/etc/postfix/mapfiles/sql-email2email.cf,
      mysql:/etc/postfix/mapfiles/sql-autoreplies.cf,
      mysql:/etc/postfix/mapfiles/sql-catchall-aliases.cf,

With the following one i had bounces errors on a new domain:

    virtual_alias_maps = mysql:/etc/postfix/mapfiles/sql-aliases.cf,
          mysql:/etc/postfix/mapfiles/sql-autoreplies.cf,
          mysql:/etc/postfix/mapfiles/sql-domain-aliases-mailboxes.cf,
          mysql:/etc/postfix/mapfiles/sql-email2email.cf,
          mysql:/etc/postfix/mapfiles/sql-catchall-aliases.cf,

The error was following:

<"test@domain.be"@autoreply.domain.be> (expanded from
    ): Host or domain name not found. Name service error
    for name=autoreply.domain.be type=A: Host not found

That said, order really matters and should be carefully documented :)

<!-- gh-comment-id:29816288 --> @tonioo commented on GitHub (Dec 4, 2013): **Posted by Fabrice Flore-Thébault on 2013-05-15T19:48:11Z** In fact the correct order seems to be this one: <pre> virtual_alias_maps = mysql:/etc/postfix/mapfiles/sql-aliases.cf, mysql:/etc/postfix/mapfiles/sql-domain-aliases-mailboxes.cf, mysql:/etc/postfix/mapfiles/sql-email2email.cf, mysql:/etc/postfix/mapfiles/sql-autoreplies.cf, mysql:/etc/postfix/mapfiles/sql-catchall-aliases.cf, </pre> With the following one i had bounces errors on a new domain: <pre> virtual_alias_maps = mysql:/etc/postfix/mapfiles/sql-aliases.cf, mysql:/etc/postfix/mapfiles/sql-autoreplies.cf, mysql:/etc/postfix/mapfiles/sql-domain-aliases-mailboxes.cf, mysql:/etc/postfix/mapfiles/sql-email2email.cf, mysql:/etc/postfix/mapfiles/sql-catchall-aliases.cf, </pre> The error was following: <pre> <"test@domain.be"@autoreply.domain.be> (expanded from <test@domain.be>): Host or domain name not found. Name service error for name=autoreply.domain.be type=A: Host not found </pre> That said, order really matters and should be carefully documented :)
Author
Owner

@tonioo commented on GitHub (Dec 4, 2013):

Posted by Antoine Nguyen on 2013-05-22T16:33:03Z

Applied in changeset commit:dcbf86d41b84bad3b88ca640e0becbaf28b2e39f.

<!-- gh-comment-id:29816289 --> @tonioo commented on GitHub (Dec 4, 2013): **Posted by Antoine Nguyen on 2013-05-22T16:33:03Z** Applied in changeset commit:dcbf86d41b84bad3b88ca640e0becbaf28b2e39f.
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#385
No description provided.