We used to receive mail for several domains, using several smtp servers.
We are now moving to use a unified domain for everybody.
Our new mail setup is this :
- a single mail hub which does get all incoming mail @education.gouv.fr
- looking up a database, it forwards mail to one of several internal
smtp servers (upon which I have little or no control), which usually
then stores the mail for pop3 retrieval.
- For outgoing mail, each pop3 servers doubles up as an smtp server. They
currently send outgoing mail directly to the internet.
The problem is, that because @education.gouv.fr addresses are fairly
new, not all users can be bothered to change their mail preferences to
put their new [EMAIL PROTECTED] address in it instead of, say,
their old [EMAIL PROTECTED] address.
So I want to have all outgoing smtp servers forward their outgoing mail
to my mail hub, which would look up a database and rewrite old adresses
into new ones in the From, Reply-To en enveloppe (and maybe a few other
fields, suggestions ?), and then send them out.
The setup I propose to use on the mail hub is this :
in tcprules, for each IP of outgoing smtp server, add:
123.123.123.123:allow,RELAYCLIENT="@rewrite"
in control/virtualdomains, add:
rewrite:alias-rewrite
in ~alias/.qmail-rewrite-default:
| rewriteheadersproggy | forward $DEFAULT
Is this going to work as I want it ? Do you see any
security/openrelaying problem ?
Thanks,
Florent
--
Florent Guillaume <[EMAIL PROTECTED]>