Antony a écrit : > <off>I slept some hours, my mind is relaxed and less confused than those > last days, let's go ! ;o)</off> > > Thanks to Wietse and mouss, my gateway is now fully functional, and relays > emails to my server : > Internet --> mx1.mydomain.com[my gateway with postfix] --> > mx2.mydomain.com (only MX1 acts as a DNS MX for all emails sent to > mydomain.com) > First goal is achieved. > > Next step (in a few month) will be to migrate our mx2 email server from > Lotus Notes to mx1, which will be in a few month our final email sever. > > Then I'm searching for the right solution not only to forward emails to mx2, > but to store all of them (dovecot) on mx1 in Maildir format. > Actually, I did not find any answer on the subject. Either emails are > relayed, either they are stored ... > Is it possible, and what is the nicest native solution according to such a > configuration please ? >
you need to "duplicate" mail. recipient_bcc_maps = pcre:/etc/postfix/recipient_bcc.pcre == recipient_bcc.pcre /^(.*)@example\.com$/ $...@dovecot.example.com an alternative is virtual_alias_maps but you must not break recipient validation with wildcard enrties. > --------------------------------- > #cat main.cf |grep -v "#" 1. some variables may contain a '#'. so your grep -v is not "adequate". but this is not important... 2. you don't need to wake up the cat. most unix commands accept files: grep -v "^#" main.cf 3. but more importantly, we rarely read main.cf snippets. you should send the output of 'postconf -n' instead.