Alias not working

Hi

In the "Email with Postfix, Dovecot and MYSQL" guide

This step which tests aliases:

postmap -q alias@example.com mysql:/etc/postfix/mysql-virtual-alias-maps.cf

This should return the email address to which the alias forwards, which is email1@example.com in this example.

When I run this test command I get "1" as the result.

When I try to email the alias address I get the following bounce:

Action: failed

Status: 5.1.1

Remote-MTA: dns; mail.domain.com

X-Supplementary-Info: <1@domain.com> User doesn't exist: 1@domain.com>

All IMAP and SMTP normal mail function fine for this domain, it's just the alias addresses I'm having issue with.

Any help would be greatly appreciated.

2 Replies

Your query probably has an error. Check step 5 under the Postfix configuration section and make sure you have entered the query correctly.

If that is correct, verify that you have your database tables set up properly.

Absolutely!! Thanks so much! There was a typo in the statement.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct