Most of the info out there for setting up postfix with a catch-all account uses the virtual-user set of features of postfix. Dovecot uses actual unix users, so it makes no sense to turn on the virtual user system and re-enter all of dovecot's users.
Here's how you set up postfix to have a catch-all email account that is savy along with dovecot. The account will receive all of the mail that is sent to an address which doesn't exist. In other words, it will collect a TON of spam, but it is sometimes important for business to be very thorough and receive the occasional mistyped email address.
So, assuming dovecot-postfix is installed, first make the user which will catch the mail:
Then add these lines to /etc/postfix/main.cf:Code:sudo useradd -d /home/catchall -m catchall sudo passwd catchall #enter a password
Now restart postfix:Code:local_recipient_maps = luser_relay = catchall
...and you should be golden. To check the inbox, just use imap or pop, entering catchall/yourpassword. Good luck!Code:sudo /etc/init.d/postfix restart
Bookmarks