Hello and thanks for the suggestion.
The thing is I need this in the transport map, as we have to do this for each sub domain. Vessel A = *@vessel_A.domain.com Has smtp relay 1 = a ip adress:25 Has Smtp 2 relay as backup with ipadress and port 20026 Vessel b = *@vessel_b.domain.com Has smtp relay 1 = a different ip adress:25 Has Smtp 2 relay as backup with ipadress and port 20026 And so on for 90 different sub adresses. Any ideas on how to do this? Met vriendelijke groeten Kind regards De Petter Mattheas Technical support engineer - projects team IT-Department Jan De Nul Dredging N.V. T +32 (0)53 73 95 53 F +32 (0)53 21 00 31 www.jandenul.com -----Original Message----- From: L.P.H. van Belle <[email protected]> Sent: 05 February 2019 08:57 To: De Petter Mattheas <[email protected]> Subject: RE: multi relay host This works for me. http://pjrlost.blogspot.com/2012/11/smtp-delivery-to-two-mail-servers-via.html https://gitlab.dls-belgium.eu/tools/smptdd/tree/develop Greetz, Lois > -----Oorspronkelijk bericht----- > Van: [email protected] > [mailto:[email protected]] Namens De Petter Mattheas > Verzonden: dinsdag 5 februari 2019 7:51 > Aan: Postfix users > Onderwerp: RE: multi relay host > > Helllo > > Indeed that's what I meant. > > We want smtp 1 = a ip adress: 25, the second a ipadress:20026 > > We have to have two routes on the server so we can have a mail relay > system. > > One route should connect to the vpn and deliver mail that way on > standard port 25 The second was a ssh with port forwarding, where we > give the postfix as smtp route the adress of the ssh server that > listen on port 20026. > And in that ssh server there was a port forwarding made with the > responding smtp server on port 25, so mail could get in. > > Do any of you know another program or solution that has this > functionality? > > > Many thanks > > Met vriendelijke groeten Kind regards De Petter Mattheas Technical > support engineer - projects team IT-Department Jan De Nul Dredging > N.V. > T +32 (0)53 73 95 53 F +32 (0)53 21 00 31 www.jandenul.com > > > -----Original Message----- > From: [email protected] > <[email protected]> On Behalf Of Wietse Venema > Sent: 04 February 2019 16:53 > To: Postfix users <[email protected]> > Subject: Re: multi relay host > > De Petter Mattheas: > > > > Hello > > > > > > Thanks for the feedback. > > > > Can you still help me with the following? > > > > We want to have two smtp routes for one subdomain > > > > For example > > > > *@eqx.vessel.com = smtp 1: a ip adress 25 > > = smtp 2: a ip adress 20026 > > > > *@bqx.vessel.com = smtp 1: a ip adress 25 > > = smtp 2: a ip adress 20026 > > Ehm. 25 is not an IP address. Did you mean TCP port? > > Transport maps currently can return only one result. You can use DNS > to go from one transport map result to multiple IP addresses, but > multiple TCP ports. > > What you can do is to (also) run an SMTP daemon on port 20026 on the > smtp1 host. In Postfix, that means: > > /etc/postfix/master.cf: > 20026 inet .... ... .. .. .. .. smtpd > > Wietse > ************************************************************ > Any reaction to this e-mail or any other mail, including any files > transmitted therewith to sender's e-mail address(es) shall be dealt > with not as private, but as business > communication(s) and shall be registered as such. > ************************************************************ > >
