[EMAIL PROTECTED] said: > I'm migrating my user based from two domains to a common domain. > Technically, we've got all the routing working fine, and both the new > domain, and the older domain are active. > > The issue I have is that my user base has been slow to adopt the new > domain, and there is still a lot of eMail following for the old one. This > isn't a technical issue so much as a behavioral issue, as we want to > adopt a common branding across the domains. > > In theory, new messages should all follow the new domains, but there are > the dreaded "reply-all" mails that nobody wants to fix all of the address > before sending. > > What I am looking for is a strategy to re-write the "to" and "from" > address of incoming eMail before they are delivered so that the headers > will be correct. I have the mapping tables in LDAP, but need a hint as > to where to insert something to make this happen.
The only way to do this would be via a maildrop filter. It wouldn't be too hard to write a perl script that searches the headers and replaces all old-domain.com references with new-domain.com. I'd recommend preserving the old headers though for troubleshooting's sake. So should the script find a header of: To: <[EMAIL PROTECTED]> it would replace it with these two headers: X-Original-To: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> this way, replies, etc would all go to new-domain.com. You could take it a step further and have the script generate an email to the original sender, letting them know that their records need to be updated. This could get ugly though as much Spam these days comes with a forged From: address. Still it should make it somewhat easier to eventually retire the old domain completely. Jay -- Jay Lee Network / Systems Administrator Information Technology Dept. Philadelphia Biblical University -- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
