I want to forward incoming mail to more than one server

Questions and answers about how to do stuff
Post Reply
omer
Posts: 39
Joined: 11 Oct 2017 15:23

I want to forward incoming mail to more than one server

Post by omer »

Hello,

I have a few things I want to do. I want to share these with you. I do not know if it's possible.

Thanks to pdwalker, outgoing mails are now going through EFA. But I want to add a few ip addresses to the server. The purpose is to send out random mails via ip addresses. I can do this with postfix, but I do not know if I can work with the EFA system.

The other issue is about incoming mail. EFA forwards every incoming mail to a server. But I want it. I want to forward each incoming mail to two servers.

These are possible.

I have found a few files that can be used as attachments for example.

Thank you.
Attachments
main.cf-master.cf-random.pl.zip
main.cf master.cf random.pl
(4.98 KiB) Downloaded 186 times
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: I want to forward incoming mail to more than one server

Post by pdwalker »

Hi,

EFA can deliver inbound mail to any server you specify.

- Use the EFA Configuration program from your support account,
- select 8) Mail Settings
- select 4) Transport Settings
- select n) Add new mail domain

fill in the details. Mail for that domain will be forwarded to the host you just specified.
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: I want to forward incoming mail to more than one server

Post by pdwalker »

omer wrote: 13 Oct 2017 16:50But I want to add a few ip addresses to the server. The purpose is to send out random mails via ip addresses. I can do this with postfix, but I do not know if I can work with the EFA system
If you have this working with postfix, then you should be able to make it work with EFA, since EFA uses postfix.

Exactly how to integrate it, I am not sure since I didn't see how to implement this feature.

As long as you back up your configuration before you start changing things, you should be ok.
omer
Posts: 39
Joined: 11 Oct 2017 15:23

Re: I want to forward incoming mail to more than one server

Post by omer »

pdwalker wrote: 17 Oct 2017 02:02 Hi,

EFA can deliver inbound mail to any server you specify.

- Use the EFA Configuration program from your support account,
- select 8) Mail Settings
- select 4) Transport Settings
- select n) Add new mail domain

fill in the details. Mail for that domain will be forwarded to the host you just specified.
Hello,

That's what I want to do.

I want to transfer incoming mail to two different servers when a domaine is mailed. Both servers will have the same user account.

For example:
I am sending an email to omer@omer.com.

omer.com mx records find EFA server.

EFA, check the incoming mail. Later incoming mail is delivered to servers 192.168.1.10 (Postfix) and 192.168.1.20 (Kerio).
That's what I want to do.

EFA does not allow you to add the same domain again. I thought he would add the same domain again and redirect it to a different ip address.
Attachments
Screenshot at Eki 17 10-04-49.png
Screenshot at Eki 17 10-04-49.png (49.55 KiB) Viewed 5168 times
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: I want to forward incoming mail to more than one server

Post by pdwalker »

Oh, I see.

One copy goes to Kerio and one copy to your mail server.

No, I don't know how to do that.

My first guess would be to send the mail to Kerio and then have Kerio make its copy and then send it onto your mail server.

Could that work?
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: I want to forward incoming mail to more than one server

Post by pdwalker »

If your zimbra cannot do that, then maybe postfix can

From this link:https://community.spiceworks.com/topic/ ... -2-servers I see the following suggestion:
I got a solution for that.

I have setup this kind of solution to make a dynamic backup of all incoming message.

on Server_1 message are send to BOTH regular_server and backup_server.

to do that : I use Virtual to split message using

recipient_bcc_maps = regexp:/etc/postfix/regex_recipient_bcc_maps

cat /etc/postfix/regex_recipient_bcc_maps

/(.*)@domain.com/ $1-AT-domain.com@backupdomain.com

cat transport

backupdomain.com smtp:[192.168.2.2]

domain.com smtp:[192.168.1.1]

on the machine backupdomain.com I recreate the original receiver

cat /etc/postfix/virtual_regexp

/(.*)-AT-(.*)@backupdomain.com$/ $1@$2

root:~# grep virtual /etc/postfix/main.cf
virtual_alias_maps = regexp:/etc/postfix/virtual_regexp
Which uses a nice bit of regex trickery to send a copy of a message to elsewhere. The "elsewhere" will also need to be running postfix to make these instructions work.

PS: I've not tested it, but it looks like it should work.

PPS: There may be better ways to do it with postfix. Google may help in your search.
omer
Posts: 39
Joined: 11 Oct 2017 15:23

Re: I want to forward incoming mail to more than one server

Post by omer »

Hi

I could not find a way to do this through Kerio.

I will try and give you the way you suggested.

Thank you so much.
Post Reply