Results 1 to 5 of 5

Thread: Catch-all email account with dovecot-postfix

  1. #1

    Catch-all email account with dovecot-postfix

    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:

    Code:
    sudo useradd -d /home/catchall -m catchall
    sudo passwd catchall
    #enter a password
    Then add these lines to /etc/postfix/main.cf:

    Code:
    local_recipient_maps =
    luser_relay = catchall
    Now restart postfix:

    Code:
    sudo /etc/init.d/postfix restart
    ...and you should be golden. To check the inbox, just use imap or pop, entering catchall/yourpassword. Good luck!
    Last edited by jpeddicord; May 12th, 2009 at 08:51 PM. Reason: passwd edit
    "Simplicity is the ultimate sophistication." - Leonardo da Vinci

  2. #2
    Join Date
    Apr 2006
    Location
    Seattle
    Beans
    2,893
    Distro
    Ubuntu Development Release

    Re: Catch-all email account with dovecot-postfix

    I've made a quick edit to the 'sudo passwd catchall' line, otherwise you would not be setting the password for the catchall user. Anyway, approved, and thank you for your tutorial contribution!

  3. #3
    Join Date
    Jun 2009
    Beans
    17

    Re: Catch-all email account with dovecot-postfix

    http://ubuntuforums.org/showthread.p...93#post7550893

    I have virtual domain users, what now? I cant use the local user relay cos they are not local. any other advice?

  4. #4

    Re: Catch-all email account with dovecot-postfix

    I don't think you are using dovecot-postfix, because that package sets up postfix to use actual unix users, not virtual users.
    "Simplicity is the ultimate sophistication." - Leonardo da Vinci

  5. #5
    Join Date
    Nov 2007
    Location
    Boston, MA
    Beans
    15
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Catch-all email account with dovecot-postfix

    for virtual domains you can do this:

    Code:
    nano /etc/postfix/virtual
    ****Note: The above file does not exist, you will be creating it. You will be letting postfix know that it does exist by running the postmap command, and adding it to the config****


    in that file, put this:

    Code:
    @virtualdomain.com      emailaddress
    once that file is saved run this command:

    Code:
    postmap /etc/postfix/virtual
    then add this to the bottom of /etc/postfix/main.cf:

    Code:
    virtual_alias_maps = hash:/etc/postfix/virtual
    and you should be golden
    Last edited by ooshlablu; August 22nd, 2009 at 09:47 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •