Hi thanks, some clarification please

On berlin.example.com server how you define the users?

Local user like user2 user3 .. without virtual domain is correct?

You need to do something extra mydestination (on berlin....) to receive correctly mail from

us...@berlin.example.com to  user2 ?

For berlin.example.com which smtp server you use it self or external (for send mail ?

Thanks !

Il 09/06/2020 09:25, Claus R. Wickinghoff ha scritto:
Hi,

I sometimes encounter similar setups.

I usually solve this by identifying one server as a central system (example.com) and then using sudomomains for mail-routing to the branches (paris.example.com, berlin.example.com).

On the central system you'll have to maintain the virtual:

us...@example.com   us...@paris.example.com
us...@example.com   us...@berlin.example.com

routing is done in the transport file:

paris.example.com   smtp:192.168.10.3
berlin.example.com   smtp:192.168.20.3
(You can use external addresses, but I prefer to use vpn connections so all traffic is encrypted between the branches.)

On each branch system you'll have to set the mydestination in main.cf to paris.example.com or berlin.example.com, respectively.

And you should set the central system as relay host in main.cf at the branches. You just have to create the users working at this place, no need for a virtual.

This way all traffic initiated in a branch is relayed to the central (because mydestination does not match for @example.com), there the virtual entry forwards it back to the branch. So all traffic within a branch takes a loop via the central system.

The advantage is that you can easily install and maintain all filter stuff (anti-virus, anti-spam, e-mail-archive) at the central system, as any e-mail has to pass by here.

I hope you'll get the idea :-) Otherwise please feel free to ask.

Groetjes
   Claus





--
Rispetta l'ambiente: se non ti è necessario, non stampare questa mail.

Le informazioni contenute in questa e-mail e nei files eventualmente allegati 
sono destinate unicamente ai destinatari della stessa e
sono da considerarsi strettamente riservate. E' proibito copiare, salvare, 
utilizzare,  inoltrare a terzi e diffondere il contenuto della presente
senza il preventivo consenso, ai sensi dell'articolo 616 c.p. e della Legge n. 
196/2003. Se avete ricevuto questo messaggio per errore siete
pregati di comunicarlo immediatamente all'indirizzo mittente, nonché di 
cancellarne il contenuto senza procedere ad ulteriore o differente trattamento.


******************************************
Ing. Matteo Cazzador
NetLite snc di Cazzador Gagliardi
Corso Vittorio Emanuele II, 188 37069
Villafranca di Verona VR
Tel 0454856656
Fax 0454856655
Email: mat...@netlite.it
Web: http://www.netlite.it
******************************************

Reply via email to