Friday, November 19, 2021

[SOLVED] postfix redirect e-mails from same domain to another mailserver

Issue

So my question is, for a company we have an old exchange server (they don't want to upgrade or transfer) that is nearly dying from e-mails. But these are just coming from one Mailbox.

So my plan was, redirect [email protected] to another mailbox like [email protected].

The other E-Mails should be routed as expected...

# virtual postfix file
[email protected] [email protected]
@example.de @example.de

For this I also have a transport File.

example.de smtp:mx.mail.de

My problem now is, the redirect is getting bounced (User unknown in virtual alias table)

2B2DEE7: to=<[email protected]>, relay=none, delay=0.08, delays=0.05/0.01/0/0.02, dsn=5.1.1, status=bounced (User unknown in virtual alias table)

Solution

Fixed this, just had to append the Domain to "mydestinations".

mydestination = $myhostname, web-p03.hosting.it.local, localhost.hosting.it.local, , localhost , example.de


Answered By - bymo