File permissions for postfix

Discussion in 'HOWTO-Related Questions' started by hnodine, Apr 19, 2007.

  1. hnodine

    hnodine New Member

    Hello-

    I changed the file permissions (recursively :) ) for the entire /home/vmail directory while trying to troubleshoot maildrop and now I cannot login to any of the mail accounts on the server. I followed the Virtual Users And Domains With Postfix, Courier And MySQL (Fedora Core 5) How To. Can anyone show me how to reset the directory and file permissions to their defaults?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    If there aren't any emails in that directory, it might be easier to just recreate the whole /home/vmail directory.
     
  3. hnodine

    hnodine New Member

    Which comands to recreate the /home/vmail directory

    Hi Falko-

    Which commands would recreate the /home/vmail directory with the proper permissions? Also, would the users currently in the database be able to accept mail again after /home/vmail is recreated?
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Try this:
    Code:
    rm -fr /home/vmail
    mkdir /home/vmail
    chown vmail:vmail /home/vmail
    Yes.
     
  5. hnodine

    hnodine New Member

    thanks, back to working on maildrop delivery

    Thank you for your help.
    Back to work on a maildrop script to place the mail spamassassin marks as junk into each users junk folder.
     

Share This Page