Menu

#5644 Procmail permission

2.105
open
nobody
None
5
2024-03-29
2024-03-28
M.T.R
No

Hi,
not a bug just a question:
I cannot make procmail to write to local mailbox.
get following error message:
procmail: Error while writing to "/var/mail"
What is missing, permission ?
Thanks for assistance.
Cheers mike

Discussion

  • Jamie Cameron

    Jamie Cameron - 2024-03-28

    Can you post a screenshot of how you've setup Procmail in Webmin?

     
  • M.T.R

    M.T.R - 2024-03-29

    Hi Jamie,
    here is the setup of procmailrc:

    DROPPRIVS=yes
    VERBOSE=yes
    LOGABSTRACT=all
    LOGFILE=/var/log/procmail.log

    :0 fw

    • <512000
      | /usr/bin/spamc

    :0

    • ^X-Spam-Status: Yes
      /dev/null

    :0

    • ^Subject:.Undelivered Mail.Returned.to.Sender
      /var/mail/admin

    The error message comes from the last entry:
    procmail: Error while writing to "/var/mail/admin"

    Thanks for assistance

    cheers mike

     
    • Ilia

      Ilia - 2024-03-29

      I think you should check if /var/mail/admin is part of the mail group and that it has write permissions for that group.

       
  • M.T.R

    M.T.R - 2024-03-29

    Hi Ilia,
    thanks for your reply.

    Permission is 660.
    This is a screenshot of the permission for /var/mail/admin

    cheers mike

     

    Last edit: M.T.R 2024-03-29
    • Ilia

      Ilia - 2024-03-29

      What about home directory itself and all of its subdirectories?

       
  • M.T.R

    M.T.R - 2024-03-29

    var is not in home directory.
    in procmail(1) they say:
    Error while writing to "x"
    Nonexistent subdirectory, no write permission, pipe died or disk full.

    I don't know what's going on.
    Just wanted to separate the

    • ^Subject:.Undelivered Mail.Returned.to.Sender
      messages from all accounts and send them to server admin.

    Didn't expect to be difficult like this.

    Thanks for your help anyway.

    cheers mike

    have nice easter holidays.

     

Log in to post a comment.

MongoDB Logo MongoDB