On 8/23/2017 4:30 AM, lists wrote:> Hi, > > Not sure what the lack of replies means... As postfix is also > involved, should I better ask there? > > It seems a little bit in between postfix and dovecot... > > Just to clearify one thing I wrote: > > On 22-8-2017 16:23, lists wrote: >> We're running dovecot 2.2.13, virtual users, with postfix. We >> have an olddomain and a new domainname. To 'translate' >> *@olddomain into > > With "translate" I mean that olddomain should be treated as if it > were newdomain. No translation, but more like an alias. > > MJDon't use wildcard aliases.? They break recipient validation and cause postfix to accept all addresses. Instead use 1-1 aliases, such as user1 at olddomaon? user1 at newdomain user2 at olddomaon? user2 at newdomain user3 at olddomaon? user3 at newdomain ... ? -- Noel Jones
Hi No?l, Thanks for your response! On 08/23/2017 06:03 PM, Noel wrote:> Don't use wildcard aliases. They break recipient validation and > cause postfix to accept all addresses. > > Instead use 1-1 aliases, such as > user1 at olddomaon user1 at newdomain > user2 at olddomaon user2 at newdomainBut we have 500+ addresses in ldap, surely there must be some 'automated' way to 'transform' any incoming mail sent to random at olddomain.com into random at newdomain.com? (and then have it processed regularly, so that bounces still work for non-existant addresses and such) MJ
On 8/23/2017 2:53 PM, mj wrote:> > On 08/23/2017 06:03 PM, Noel wrote: >> Don't use wildcard aliases.? They break recipient validation and >> cause postfix to accept all addresses. >> >> Instead use 1-1 aliases, such as >> user1 at olddomaon? user1 at newdomain >> user2 at olddomaon? user2 at newdomain > > But we have 500+ addresses in ldap, surely there must be some > 'automated' way to 'transform' any incoming mail sent to > random at olddomain.com into random at newdomain.com? > > (and then have it processed regularly, so that bounces still work > for non-existant addresses and such) > > MJPerhaps you can adjust your query or your database to return the desired result.? Otherwise, use your scripting skills to generate a file, then automate the procedure. ? -- Noel Jones