Thank Dima, i make some changes in yuoi suggest:
I use
"sender_dependent_default_transport_maps"
and not
"sender_dependent_relayhost_maps"
#Main.cf part
sender_dependent_default_transport_maps = hash:/etc/postfix/sender_relay
#sender_relay content
@example1.com smtp:[gw1.gateway.com]
Thanks a lot.
Il 26/05/2020 14:49, mj ha scritto:
Attenzione: Questa e` la prima volta che ricevi un'email da questo
mittente.
Attenzione: Assicurati che sia qualcuno di cui ti fidi.
Hi,
There is some misunderstanding in your setup. If you host 3 domains
then you will rather want to send mails FROM these domains into outer
world through different gateways. But your transport maps work when
postfix work with mail TO this domains.
If I am right you should remove transport map and add
sender_dependent_relayhost_maps = hash:/usr/pkg/etc/postfix/bysender
to main.cf, create bysender like:
@example1.com smtp:gw1.gateway.com
@example2.com smtp:gw2.gateway.com
@example3.com smtp:gw3.gateway.com
run postmap /usr/pkg/etc/postfix/bysender
and reload postfix
On Wed, May 27, 2020 at 06:13:46PM +0200, Matteo Cazzador wrote:
example1.com smtp:gw1.gateway.com
example2.com smtp:gw2.gateway.com
example3.com smtp:gw3.gateway.com
than i use make "postmap transport".
--
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
******************************************