Re: [exim] How to forward outgoing mail to specific email ac…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: James R. Price
Datum:  
To: exim-users@exim.org, tonyha1090@gmail.com
Betreff: Re: [exim] How to forward outgoing mail to specific email account
On Jan 18, 2013, at 4:01 AM, "tony ha" <tonyha1090@???> wrote:

> Hi all,
>
> I am researching two day for my question. I want to filter all outgoing
> email from specific domain to email admin@???. I find this tutorial
> via link
> http://www.instacarma.com/blog/technical/how-to-set-up-a-forwarder-for-outgoing-emails/,
> but it's not match my require. Because, I want have separate filter
> file
> not one file /etc/cpanel_exim_system_filter.
>
> Please help me solve this problem. And I am sorry for my bad english.
> Thanks!
> --
> ## List details at https://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/


If I understand you correctly you simply want to redirect email from a given domain and redirect it to an email account of your choosing.

Example using wildcarded sender at domain.com:
redirect2email_router:
        driver = redirect
        senders = *@domain.com
        data = admin@???


This is pretty simple, you can get crazy here with conditions matching on all sorts of things, this is pretty simple. Moral of the story, a redirect router is your guy. I would use some additional logic to limit this sort of thing to a given server or servers. That can be done with a condition matching on some other identifier.

Thanks,
James