Indeed it should work. But, I was not clear, my mistaken. 
I do not wish to use dovecot as a mail server, but only as an alternative
LDA for Postfix (+ for SMTP SASL purposes).
Possible ?

And if not, are virtual_alias_maps or recipient_bcc_maps forward via smtp
the solution ? It seems for me a "heavy" solution for what I have to do.
Isn't there a "local delivery way" to proceed ?

Regards,
Antony

-----Message d'origine-----
De : mouss [mailto:mo...@ml.netoyen.net] 
Envoyé : dimanche 4 janvier 2009 21:09
À : anto_neohap...@abruti.org
Cc : postfix-users@postfix.org
Objet : Re: How to relay AND store all emails on a gateway ?

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.



!DSPAM:4961177e95621732817365!


Reply via email to