Postfix - can't get to work regexp aliases

Hi,
I tried to add regexp aliases to postfix - no success so far…
I need to get wildcard aliases like:
something_random-blah@mydomain.tld
so I added new file to Webmin->Servers->Postfix->Mail aliasses
regexp:/etc/aliases-regexp
and added new line to this file like this:
/[a-z0-9]+\-blah-mydomain\.tld/i: myadress@anotherdomain.tld
Than run
newaliases
postfix reload (or service postfix restart)

When sending mail to blah-blah@mydomain.tld I get
550 5.1.1: Recipient address rejected: User unknown in virtual alias table
Any advice would be appreciated.
D.

Hi,

Does it work without using regexp for aliases? :slight_smile:

I would start looking at myhostname and mydestination options.

Hi,

Well, you are right - it doesn’t work… It works only when I add alias via virtualmin gui and than shows in virtual domains…
What am I doing wrong?

What should I look for?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.