1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

prevent .qmail file being overwritten

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by rajank, Oct 29, 2009.

  1. rajank

    rajank Guest

    0
     
    I have added a pipe to a script in the .qmail file for a certain mail account. Today i noticed the file had reverted back to what it was before i added my code. How do i prevent the file from be overwritten by plesk?
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Any time the account is updated via Plesk, the .qmail file will be overwritten, and you will need to edit it by hand to get things working again. It will be overwritten also when you rebuild mail settings with mchk utility.
    You can to change the file attributes to immutable with

    chattr +i .qmail

    but you should remove this flag in cases mentioned above.
     
  3. rajank

    rajank Guest

    0
     
    Is there a file like vhost.conf for the .qmail file that i can edit that doesn't get overwritten?
     
Loading...