My VPS got blacklisted and I cannot get a new IP and migrating is going to take a while so I needed a relay host. It's setup with: System > Server Config > Mail and filled it. Mails are being send and recieved for all boxes. The only problem I have is that as soon as I enable the Relayhost forwards to external adresses FROM external adresses stop working. Internal the forwards to external work fine. So if I send an email from a domain on the same server it's getting forwarded outside as it should. If I send an email from OUTSIDE the server it does not get forwarded. Turns out it is because the Relay host bounces it because it tries to forward as the external address sending. How do I make it so that external mails are being forwarded to an external address but with the internal address as sender? Which is what the server does now for internal mail? The things I tried are: - Make an e-mail box with the e-mail adres and set the Custom rules as; Code: redirect "[email protected]"; stop; - Make a Email forward with the setting "Send As Allow target to send mail using this address as origin" - Make a Email forward with the setting "Send As Allow target to send mail using this address as origin" with destination an e-mail box with the e-mail adres and set the Custom rules as; Code: redirect "[email protected]"; stop; Internal mail get forwarded to hotmail just fine. As soon as I send an outside mail it get's put in queue with the following: Code: C3D0F72E412 4152 Sat Feb 5 15:31:21 [email protected] (host vps.relay.email[xxxxx] said: 421 4.7.0 No valid 'x-server-mail-auth' DNS record found for 'hotmail.com'. (in reply to end of DATA command)) [email protected] Which makes sense. The server does not have any DNS settings for hotmail.com but I don't understand that when I send an e-mail from inside it get's forwarded as the mailbox address but when I send an e-mail from outside it get's forwarded as the hotmail address. Anyone has any insights at what I did wrong?
You didn't do anything wrong, that is the default behaviour, you just have an unusual setup requiring DNS records to forward. Does your relay allow you to authenticate to send? If so that might be the easiest thing to do. Other options are to setup SRS (sender rewriting), or to do all your forwarding via sieve and configure it to send from the forwarded address (which is not the default behaviour).