How to forward by recipient in an exim relay?

Posted on

How to forward by recipient in an exim relay? – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, centos, email, exim, .

I’ve set up an Exim relay and i need to forward emails coming in for a particular domain to be sent to another address, but i’m having no luck so far.

I’ve set up a router like this:

postmaster_redirect:
  driver = redirect
  domains = domain.toredirect.com
  data = something@otherdomain.com

This in theory should do the trick of redirecting all mails sent to that domain to something@otherdomain.com but it doesn’t seem to work.

Is there anything else i could try?

Thanks.

Solution :

You can do it with Address rewriting (after begin rewrite directive).
Try:

*@domain.toredirect.com something@otherdomain.com STt

Leave a Reply

Your email address will not be published.