Some e-mail are not delivered - cannot find logfile for procmail

Discussion in 'Installation/Configuration' started by riverman, Feb 16, 2010.

  1. riverman

    riverman Member

    Hi,
    Some e-mails are not delivered. I can see in maillog:

    Code:
    delivered to command: /usr/bin/procmail -f-
    Then nothing more...

    I guess I need to check log file for procmail, but I can't find it.

    Anyone, any idea?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Procmail has no logfile. Please try to disable mailfilter, spamfilter and antivirus.
     
  3. riverman

    riverman Member

    Thanks!

    Two questions; Is it possible to enable logfile (I read something about it) but in what .procmailrc file should I add the syntax logfile?

    If I disable mailfilter, then I will gonna lose antivirus check and renaming attachment, is that right?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Add it to the .procmailrc which you find in the home directory of the email user which is encountering the problems.

    Mailfilter is just for cleaning HTML code in emails which might cause emails to get lost in some rare cases when the emails have very bad html code. It is also used for attachment renaming but not for antivirus checks.
     
  5. riverman

    riverman Member

    Hi,
    I got everything to work! It was file permissions that was wrong.

    Thanks for help and perhaps if any one else got the same problem you can try this:

    In file: /var/www/web1/user/(user)/.procmailrc

    I added following line: LOGFILE=$HOME/.procmailrc.log

    Then after some time I checked log file:
    /var/www/web1/user/(user)/.procmailrc.log

    I'll found following:
    ---
    [18447] warn: bayes: cannot open bayes databases /var/www/web1/user/(user)/.spamassassin/bayes_* R/O: tie failed: Permission denied
    [18447] warn: bayes: cannot open bayes databases /var/www/web1/user/(user)/.spamassassin/bayes_* R/O: tie failed: Permission denied
    [18447] warn: auto-whitelist: open of auto-whitelist file failed: auto-whitelist: cannot open auto_whitelist_path /var/www/web1/user/(user)/.spamassassin/auto-whitelist: Permission denied
    [18447] warn: bayes: cannot open bayes databases /var/www/web1/user/(user)/.spamassassin/bayes_* R/W: tie failed: Permission denied
    ---

    For some reason the rights has changed (user failure). I just changed permissions to web1_(user) and group web1 and everything start to work again!
     

Share This Page