Hi! I've set up Postfix with virtual users. I wanted to get Dovecot and LMTP up and running with Passwd-file UserDB, which they do, but I can't figure out how to make use of a catch-all. Currently, mail to joe at example.com needs Joe to be in the Passwd-file. I would like anyone at example.com to go to Joe's mailbox, or actually mail to @example.com should go to Joe. But what do I put in the Passwd-file? I need this for several domains. Like @somedomain.org should go to jim at example.com and @anydomain.net to jake at example.com. I've googled myself silly but I cannot find the it. Everybody is hooked on a sql userdb which seems like overkill to me. With Postfix doing local delivery this is rather trivial. With Dovecot LDA I got it working by using virtual_alias_maps and the right parameters in master.cf. But with LMTP I'm stumped. cheers, Ferenc
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> <br> </div> <blockquote type="cite"> <div> On 15/03/2020 02:32 Ferenc < <a href="mailto:dovecot@bezemkast.nl">dovecot@bezemkast.nl</a>> wrote: </div> <div> <br> </div> <div> <br> </div> <div> Hi! </div> <div> <br> </div> <div> I've set up Postfix with virtual users. I wanted to get Dovecot and LMTP up and running with </div> <div> Passwd-file UserDB, which they do, but I can't figure out how to make use of a catch-all. </div> <div> <br> </div> <div> Currently, mail to <a href="mailto:joe@example.com">joe@example.com</a> needs Joe to be in the Passwd-file. I would like </div> <div> <a href="mailto:anyone@example.com">anyone@example.com</a> to go to Joe's mailbox, or actually mail to @example.com should go to Joe. But </div> <div> what do I put in the Passwd-file? </div> <div> <br> </div> <div> I need this for several domains. Like @somedomain.org should go to <a href="mailto:jim@example.com">jim@example.com</a> and </div> <div> @anydomain.net to <a href="mailto:jake@example.com">jake@example.com</a>. I've googled myself silly but I cannot find the it. Everybody </div> <div> is hooked on a sql userdb which seems like overkill to me. With Postfix doing local delivery this </div> <div> is rather trivial. With Dovecot LDA I got it working by using virtual_alias_maps and the right </div> <div> parameters in master.cf. But with LMTP I'm stumped. </div> <div> <br> </div> <div> cheers, </div> <div> Ferenc </div> </blockquote> <div> <br> </div> <div> You do it in postfix using virtual alias, just like before. </div> <div class="io-ox-signature"> <pre>--- Aki Tuomi</pre> </div> </body> </html>
>> On 15/03/2020 02:32 Ferenc < dovecot at bezemkast.nl> wrote: >> >> Hi! >> >> I've set up Postfix with virtual users. I wanted to get Dovecot and LMTP up and running with >> Passwd-file UserDB, which they do, but I can't figure out how to make use of a catch-all.8< 8< 8< 8< 8< 8< 8< 8<> > You do it in postfix using virtual alias, just like before. > --- > Aki TuomiCould you tell me where to find how I do this? I've looked at https://doc.dovecot.org/configuration_manual/protocols/lmtp_server/. With Dovecot-LDA I got virtual aliases working by using the -d ${user} flag in Postfix' master.cf. So /usr/lib/dovecot/dovecot-lda gets called with what Postfix thinks is the user in the -d flag. This worked. But I don't know how to pass ${user} to the lmtp -d flag? I'm on Debian in a virtualbox vm. Thanks & cheers, Ferenc