* Michael Maymann <mich...@maymann.org>: > Hi List, > > I have a internal mailrelay, that I would like to provide following service: > 1. mail to our own domain is send directly to our externally hosted > (outsourced) mailserver > 2. mail to external domains are relayed through ISP-mail-relay only for > specific domains > > I have the following in my main.cf now (not enabled yet):
You need to put those in /etc/postfix/transport and then reference that file from main.cf using: transport_maps = hash:/etc/postfix/transport > #<our_own_domain.com> smtp:<our_external_hosted_mailserver> > #<servicepartner1> relay:<our_isp_mailrelay> > #<servicepartner2> relay:<our_isp_mailrelay> > #<servicepartner3> relay:<our_isp_mailrelay> > #<servicepartner4> relay:<our_isp_mailrelay> > #<servicepartner5> relay:<our_isp_mailrelay> > > My server is used primarily (99,96% are going to our_own_domain) by > internal services to send notifications to our users, but also some mails > are needed to a handfull external servicepartners... > Soon we will also send critical alert from our monitoring solution, and I > would therefore like to get the most secure solution without implementing a > filter, that might blacklist vital alerts > I will get my server whitelisted also in our_external_hosted_mailserver to > accept all mails (no filtering) to make sure all mails are comming in and > not stopped by a spamfilter there... > It would then only be possible to send spam to our servicepartners this way > - which I guess should be highly unlikely to happen...? > > 1. Is this the right way to do it - or are there better alternatives ? It's OK > 2. When should I use smtp/relay in my config - does the above seem to be > correct ? If it's relaying, use relay: -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebra...@charite.de | http://www.charite.de