Howdy, I?d like to achieve something that i don?t know if it?s possible. I have account info at domain.tld and when an email is received, I want to forward it to several accounts, always in this order: ? Email1 at domain.tlf ? Email2 at domain.tld ? Email3 at domain.tld And when it reached email3 at domain.tld it starts again with email1 at domain.tld Would something like this be possible?
Not sure how this is random ... =) So you want it to deliver a the mail to first email1, next email to email2, next to email3, and next to email1. I am pretty sure you can do this better with postfix with transport that redirects it to one of these accounts in order. Aki> On December 29, 2017 at 2:09 AM Jorge Bastos <mysql.jorge at decimal.pt> wrote: > > > Howdy, > > > > I?d like to achieve something that i don?t know if it?s possible. > > > > I have account info at domain.tld and when an email is received, I want to > forward it to several accounts, always in this order: > > > > ? Email1 at domain.tlf > > ? Email2 at domain.tld > > ? Email3 at domain.tld > > > > And when it reached email3 at domain.tld it starts again with email1 at domain.tld > > > > Would something like this be possible? >
Jorge Bastos wrote:> I have account info at domain.tld and when an email is received, I want to > forward it to several accounts, always in this order: > > ? Email1 at domain.tlf > ? Email2 at domain.tld > ? Email3 at domain.tld > > And when it reached email3 at domain.tld it starts again with email1 at domain.tld > > Would something like this be possible?If you use the sql driver for userdb lookups, you could do this by means of your mysql lookup query. Just implement a counter and adapt the appropriate INBOX setting f?r the "mail" variable in the result set.