Re: [exim] conditional email forwards to another host

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Lars Schimmer
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] conditional email forwards to another host
On 11/13/19 7:23 AM, Jasen Betts via Exim-users wrote:
> On 2019-11-12, Lars Schimmer via Exim-users <exim-users@???> wrote:
>
>> Hi!
>>
>> I need a little help, mostly for security.
>> I do run a exim4 host (debian), and I want to forward all emails
>> incoming for 3-5 Emails to another host (NOT a different domain)
>>
>> As far as I understand it, I need:
>> - transport fo the 2nd host
>> - router which routes the email to the transports
>>
>> Has anyone a example for such a router wiht a condition?
>> Mostly I do not want to experiment with a live server...
>>
>> thank you.
>>
>> MfG,
>> Lars Schimmer
>
> easiest is to actually use another domain and just forward the emails using
> ~/.forward or /etc/aliases
>
>
> else you create a manualroute router that matches your domain and
> the apropritat local_parts and routes them to the destination server.
>




> a router something like this:
>
>
>   these_go_elsewhere:
>     driver = manualroute
>     domains = example.com
>     local_parts = mailbox1 : mailbox2 : mailbox3
>     route_list = * elsewhere.example.com
>     transport = remote_smtp

>
> add it to the routers section of the configuration before the routers for local delivery.



Thank you, will need to adopt, as it assumes different domains.
I just have 2 mailservers, both for the same domain, and 5-10 Email
Accounts should get the mail on 2nd mail server, and first is the
smarthost/relay.


MfG,
Lars Schimmer
-- 
-------------------------------------------------------------
TU Graz, Institut für ComputerGraphik & WissensVisualisierung
Tel: +43 316 873-5405       E-Mail: l.schimmer@???
Fax: +43 316 873-5402       PGP-Key-ID: 0x4A9B1723