Mail Problem

Aug 3, 2020
4
0
1
24
folgendes Problem.
Ich habe 2 Mailserver, auf dem ersten sind Hundert Tausende Mails und der zweite ist noch neu und soll künftig zum Einsatz kommen. Die Lösung soll wie folgt aussehen. Proxmox soll Mailadressen Filtern und diese explizit an eine neue IP-Adresse senden, während der alten Mailserver weiter alle Mails erhalten soll. Proxmox soll dual und zwei Mailserver die Mails weiterleiten. In wie weit ist dies möglich?

following problem.

I have 2 mail servers, the first one is related more then 100.000 mails and the second one is new and should be used soon. Proxmox should filter mail addresses and send them explicitly to a new IP address, while the old mail server should continue to receive all mails. Proxmox is supposed to forward the mails dual and two mail servers.. How far is this possible?
 
Not sure I understand your request completely?
Do you want all mails to be sent to both the old and the new server?

Do you want mails to some domains to be sent to the new server and the others to the old one?
(in that case simply add all domains as relay domains, and add transport entries for those domains that should go to the new server pointing to the new server and entries for those domains that should go to the old server pointing to the old server)

* If you want to send some mails to both senders you could add a rule with appropriate priority and a BCC action sending the mail to an address on the new server

I hope this helps!
 
  • Like
Reactions: sontoox
Beide Fragen beziehen sich ausschließlich auf den Versand
Frage 1:
Jede eingehende Mail soll dupliziert werden und sowohl an die IP Adresse des Mailservers 1 als auch an die IP Adresse des Mailservers 2 gesendet werden.

Bsp.
Mueller@bspdomain.de an 192.168.1.15 (Mailserver 1) UND an 192.168.1.7 (Mailserver 2)
Schmitz@bspdomain.de an 192.168.1.15 (Mailserver 2) UND an 192.168.1.7 (Mailserver 2)
-------------------------------------------------------------------------------------------------------------------------------------------------
Frage 2:
Eingehende Email soll nach Adressen gefiltert werden und je nach Adresse an Mailserver 1 oder Mailserver 2 gesendet werden

Bsp.
Mueller@bspdomain.de an 192.168.1.15 (Mailserver 1)
Schmitz@bspdomain.de an 192.168.1.7 (Mailserver 2)
_________________________________________________________________________________________________________________________________________________
English:
Both questions relate exclusively sending

Question 1:

Every incoming mail should be duplicated and send to both the IP address of mail server 1 and the IP address of mail server 2

For example

Mueller@bspdomain.de to 192.168.1.15 (mail server 1) AND to 192.168.1.7 (Mailserver 2)
Schmitz@bspdomain.de to 192.168.1.15 (Mailserver 2) AND to 192.168.1.7 (Mailserver 2)

-------------------------------------------------- -------------------------------------------------- ---------------------------------------------

Question 2:

Incoming email should be filtered by address and send to mail server 1 or mail server 2 depending on the address

For example

Mueller@bspdomain.de to 192.168.1.15 (Mailserver 1)
Schmitz@bspdomain.de to 192.168.1.7 (Mailserver 2)
 
Short general suggestion: Let's stick to English in the English forum - if you like to get support in German - open a thread in the German PMG forum - otherwise other users not fluent in German will not be able to follow the discussion.


Regarding your request - duplicating E-mail unconditionally is not directly supported by PMG (and a not too common use-case)

you could try to adapt the postfix configuration - take a look at the bcc_maps parameter:
http://www.postfix.org/ADDRESS_REWRITING_README.html#auto_bcc
To make the change persistent in PMG - use the templateting system:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine

I hope this helps!
 
@Stoiko Ivanov

Just comes form the discussion in here, not directly adressing it, but wouldn't this feature should also be nice to have, a failover server for the relay "transport" entries:

Deliveries via SMTP or LMTP support multiple destinations (Postfix >= 3.5):

example.com smtp:bar.example, foo.example

This tries to deliver to bar.example before trying to deliver to
foo.example.


See: http://www.postfix.org/transport.5.html
 
Deliveries via SMTP or LMTP support multiple destinations (Postfix >= 3.5):
short of the (I would say rather exotic) use-case of delivering to one smtp and one lmtp server - this can quite well be handled with multiple MX records with different priorities.
 
short of the (I would say rather exotic) use-case of delivering to one smtp and one lmtp server - this can quite well be handled with multiple MX records with different priorities.

@Stoiko Ivanov
I think it is not so exotic, when you have more internal SMTP-Servers ready to accept the e-mails from PMG? use case one system fails it will automatically using the other internal smtp-server... so can be intended for the internal mailflow server failover...
Postfix example example.com smtp:bar.example, foo.example is NOT using smtp OR lmtp as fallback. It supports multiple SMTP or multiple LMTP server with it. But requires postfix >= version 3.5 for it.
 
use case one system fails it will automatically using the other internal smtp-server... so can be intended for the internal mailflow server failover...
but where's the advantage over having (also internally) 2 MX records with different priority?

SMTP has had that as failover mechanism for a very long time - and it works.

But requires postfix >= version 3.5 for it.
SInce this is not shipped with buster the feature won't be available with PMG 6.x

In any case AFAIU the request in this thread is not for failover delivery, but (un)conditional delivery to 2 servers in parallel
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!