Mail going to /var/spool/mail instead of Maildir

Discussion in 'General' started by kougarsmith, May 12, 2006.

  1. kougarsmith

    kougarsmith New Member

    My mailserver stopped working today. I have discovered that the mail is making it to the server, however it is being delievered to the /var/spool/mail files instead of the Maildir. I have tried to set the home mailbox using the postconf commands and restarted postfix with no luck. I need to get this mail server back online quickly an entire company is without mail.

    I am a new admin to ispconfig and have been having problems every couple of weeks. I have been working on this problem for many hours.

    Any assistance would be greatly appreicated.:confused:
     
  2. falko

    falko Super Moderator ISPConfig Developer

    You must enable Maildir under Management -> Server -> Settings -> Email.
    To make this change happen for existing users, change something for each user in the ISPConfig web interface (e.g. enable/disable Mailscan) so that the users' configuration files get rewritten. Afterwards you can undo these changes.
     
  3. kougarsmith

    kougarsmith New Member

    Falko,

    The check box in Management has been checked through out this process. I went so far as to uncheck it and recheck it. I did this yesterday.

    I made a change to one user and sent in a test message, the mail arrived in the /var/spool/mail file. I restarted the Ispconfig server and postfix services and sent another test message, it goes to /var/spool/mail.
     
  4. falko

    falko Super Moderator ISPConfig Developer

    What's in that user's .procmailrc file (in his homedir)?
     
  5. kougarsmith

    kougarsmith New Member

    using more to view the .procmailrc in the following folder /home/www/web6/user/email_admin

    MAILDIR=$HOME/Maildir/
    DEFAULT=$MAILDIR
    ORGMAIL=$MAILDIR
    (1 blank line)
    INCLUDERC=/home/www/web6/user/email_admin/.mailsize.rc
    ## INCLUDERC=/home/www/web6/user/email_admin/.quota.rc
    ## INCLUDERC=/home/www/web6/user/email_admin/.antivirus.rc
    ## INCLUDERC=/home/www/web6/user/email_admin/.local-rules.rc
    ## INCLUDERC=/home/www/web6/user/email_admin/.html-trap.rc
    ## INCLUDERC=/home/www/web6/user/email_admin/.spamassassin.rc
    ## INCLUDERC=/home/www/web6/user/email_admin/.autoresponder.rc


    file .mailsize.rc

    SHELL=/bin/sh
    (1 blank line)
    :0
    {
    :0 c
    | wc -c | formail -A"X-Loop: [email protected]" \
    -I"Subject: Mailsize: ${LOGNAME" | \
    $SENDMAIL -oi [email protected]
    }
     
    Last edited: May 17, 2006
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    This is OK so far. Does the user has enough space on the disk? Try to set the quota for the user to a higher value.
     
  7. kougarsmith

    kougarsmith New Member

    As I recall there are no disk quota set. How would I verify the disk quota ?

    Thanks
     
  8. falko

    falko Super Moderator ISPConfig Developer

    With
    Code:
    repquota -avug
    You can also run
    Code:
    df -h
    to see if your partitions are full.
     
  9. kougarsmith

    kougarsmith New Member

    df -h Produces the following results

    Filesystem Size Used Avail Used% Mounted on
    /dev/md0 66G 3.2G 63G 5% /
    tmpfs 316M 0 316M 0% /dev/shm
    /dev/sdc2 1.1G 37m 992M 4% /boot
    /dev/sdb1 1.1G 33m 996M 4% /tmp


    Also we resolved the issue by creating the new users for the old users having problems. We are trying to understand what happened, in an attempt to prevent it from happening in the future.

    Richard
     

Share This Page