Mail App external address

Hi,

i’m a bit confused about the mail apps ‘external address’ option.

I tried to use the ‘external address’ to forward mails to any non internal address(es) without having a mailbox like i did with the virtual table in plain postfix.
But sending an email to this address ends in an error:

Diagnostic-Code: smtp; 550 5.1.1 <xxx@xyz.de](mailto:xxx@xyz.de)>: Recipient
address rejected: undeliverable address: lookup failed

This error is from my internal ns8 server, not from the external mta.

Forewarding from internal addresses (with sogo or roundcube) works like expectetd, but i dont want a mailbox for every address

So where am i wrong or is there a configuration i missed or have i to edit the underlying virtual table? (and where can i find )

Thanks for your help

joba

Sounds familiar! :wink:

Welcome! Maybe (as usual, when time permits) @stephdl can have a quick look.

Again, welcome and enjoy.

Hum blind answer but maybe you need a relay for that, it looks like postfix does not know where to send

But why sogo or roundcubemail achieve it ?

Piler comes to mind?

Hi, thank you all for your help.

Piler is not involved and with sogo and/or roundcube a mailbox is set up.

After more investigations it seems that my ns8 sends a wrong hostname in case of external addresses.

my mx/hostname is “gate.myns-server.de” but in case of an external address the internal name “ad.myns-server.de” is send as hostname which doesn’t resolve to any valid mx/hostname.

Any suggestions to persuade postfix to send the right hostname when forwarding to an external mail address?
Or is the external address option only for internal aliases? Because it works when the external address is an internal address

Maybe i become less confused now :wink:

Thanks again

joba