From: David Touzeau on 30 Jun 2010 09:39 Dear I would like to redirect messages that recipient are not listed in aliases to a single mailbox have set virtual_alias_maps=hash:/etc/postfix/virtual users1(a)domain.tld users1(a)domain.tld users2(a)domain.tld users2(a)domain.tld users3(a)domain.tld users3(a)domain.tld @domain.tld noexistant(a)domain.tld is there is way to do this ? Best regards
From: Ansgar Wiechers on 30 Jun 2010 10:00 On 2010-06-30 David Touzeau wrote: > I would like to redirect messages that recipient are not listed in > aliases to a single mailbox > > have set > > virtual_alias_maps=hash:/etc/postfix/virtual > > users1(a)domain.tld users1(a)domain.tld > users2(a)domain.tld users2(a)domain.tld > users3(a)domain.tld users3(a)domain.tld > @domain.tld noexistant(a)domain.tld > > is there is way to do this ? The above should do what you want, provided that noexistant is an existing mailbox. If it doesn't work: please supply the output of "postconf -n" and a log excerpt demonstrating the problem. Regards Ansgar Wiechers -- "Abstractions save us time working, but they don't save us time learning." --Joel Spolsky
From: Charles Marcus on 30 Jun 2010 10:07 On 2010-06-30 10:00 AM, Ansgar Wiechers wrote: > On 2010-06-30 David Touzeau wrote: >> I would like to redirect messages that recipient are not listed in >> aliases to a single mailbox >> >> have set >> >> virtual_alias_maps=hash:/etc/postfix/virtual >> >> users1(a)domain.tld users1(a)domain.tld >> users2(a)domain.tld users2(a)domain.tld >> users3(a)domain.tld users3(a)domain.tld >> @domain.tld noexistant(a)domain.tld >> >> is there is way to do this ? > The above should do what you want, provided that noexistant is an > existing mailbox. But of course, there is generally no good reason to do this, and it totally breaks recipient validation so should never be done without a *very* good reason. -- Best regards, Charles
From: Ansgar Wiechers on 30 Jun 2010 10:11 On 2010-06-30 Charles Marcus wrote: > On 2010-06-30 10:00 AM, Ansgar Wiechers wrote: >> On 2010-06-30 David Touzeau wrote: >>> I would like to redirect messages that recipient are not listed in >>> aliases to a single mailbox >>> >>> have set >>> >>> virtual_alias_maps=hash:/etc/postfix/virtual >>> >>> users1(a)domain.tld users1(a)domain.tld >>> users2(a)domain.tld users2(a)domain.tld >>> users3(a)domain.tld users3(a)domain.tld >>> @domain.tld noexistant(a)domain.tld >>> >>> is there is way to do this ? > > > The above should do what you want, provided that noexistant is an > > existing mailbox. > > But of course, there is generally no good reason to do this, and it > totally breaks recipient validation so should never be done without a > *very* good reason. Indeed, I should've mentioned that implementing catch-all usually is not a good idea. Regards Ansgar Wiechers -- "Abstractions save us time working, but they don't save us time learning." --Joel Spolsky
From: David Touzeau on 30 Jun 2010 18:07 dear I know this is not a good idea but this is for an internal server in order to auto-create mailboxes. A script parse the catch-all mailbox and create the appropriate mailbox THe behavior is when i send mail to users1(a)domain.tld the catch-all take the hand and all mails are transfered to it noexistant(a)domain.tld so i have 2 choices : enable catch-all but all mail going trough the catch-all mailbox disable catch-all and forgot the script... On 30/06/2010 16:11, Ansgar Wiechers wrote: > On 2010-06-30 Charles Marcus wrote: >> On 2010-06-30 10:00 AM, Ansgar Wiechers wrote: >>> On 2010-06-30 David Touzeau wrote: >>>> I would like to redirect messages that recipient are not listed in >>>> aliases to a single mailbox >>>> >>>> have set >>>> >>>> virtual_alias_maps=hash:/etc/postfix/virtual >>>> >>>> users1(a)domain.tld users1(a)domain.tld >>>> users2(a)domain.tld users2(a)domain.tld >>>> users3(a)domain.tld users3(a)domain.tld >>>> @domain.tld noexistant(a)domain.tld >>>> >>>> is there is way to do this ? >> >>> The above should do what you want, provided that noexistant is an >>> existing mailbox. >> >> But of course, there is generally no good reason to do this, and it >> totally breaks recipient validation so should never be done without a >> *very* good reason. > > Indeed, I should've mentioned that implementing catch-all usually is not > a good idea. > > Regards > Ansgar Wiechers
|
Next
|
Last
Pages: 1 2 3 4 5 Prev: Sending mails using multiple IPs' Next: DNS load-balancing two equal nexthops is not fair |