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@example.com needs Joe to be in the Passwd-file. I would like anyone@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@example.com and @anydomain.net to jake@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
On 15/03/2020 02:32 Ferenc < dovecot@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 Tuomi
Could 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
participants (2)
-
Aki Tuomi
-
Ferenc