> On Nov 15, 2016, at 5:07 AM, max <mrietmei...@addtofavorites.nl> wrote: > > We setup a postfix mailserver (192.168.0.1) as a relay for our internal > network. All e-mail (disregarded the final destination) should be stored on > this machine for a period of time before we re-inject the email into postfix > and relay it to our outgoing mailserver (192.168.0.2) who'll deliver it to > the final destination.
The design appears to have a show-stopper critical bug. You're losing the original message's envelope recipients, and therefore cannot resume forward delivery without losing Bcc recipients and serious risk of email loops. > Our current setup looks like this and all seems work. Looks rather broken to me. > > main.cf > ######################### > inet_interfaces = localhost, 192.168.0.1 > mydestination = $myhostname > relayhost = 192.168.0.2:25 > mynetworks = localhost > home_mailbox = inbox/ > ######################### > > master.cf > > ######################### > smtp inet n - n - - smtp > > 192.168.0.1:10025 inet n - n - - smtp > -o cleanup_service_name=cleanupserver1 > -o mynetworks=192.168.0.3 > > cleanupserver1 unix n - n - 0 cleanup > -o virtual_alias_maps=static:server1 Destroys the envelope recipient information. > 192.168.0.1:20025 inet n - n - - smtp > -o cleanup_service_name= cleanupserver2 > -o mynetworks=192.168.0.4 > > cleanupserver2 unix n - n - 0 cleanup > -o virtual_alias_maps=static:server2 Ditto. > > 192.168.0.1:30025 inet n - n - - smtp > -o cleanup_service_name= cleanupserver3 > -o mynetworks=192.168.0.5 > > cleanupserver3 unix n - n - 0 cleanup > -o virtual_alias_maps=static:server3 Ditto. > On this server we created accounts server1, server2, server3 etc. All > incoming e-mail is delivered to /home/server1/inbox/, /home/server2/inbox/, > /home/server3/inbox/ etc. After which time, it is unsafe (i.e. you MUST NOT attempt) to re-inject the mail for onward delivery. > Any suggestions? Stop. What problem is this supposed to solve? -- Viktor.