Mail delivered in wrong mailbox.

Discussion in 'Server Operation' started by mikenuun, Jan 29, 2008.

  1. mikenuun

    mikenuun New Member

    First of all,
    Im new to the forums,
    So hi anyway ^^

    But the reason i came is that im having a weird problem,
    Maybe the solution is close, but for me its a weird problem.

    I'm Using Postfix to receive mail and to send mail,
    And for the right delivery im using procmail,
    But hey, procmail does not place it into the right mailbox !

    Sending maile is ok,
    So the postfix confgiruration is ok for now
    Its just that the procmail doenst place the mail in the users mailbox,

    Heres my .procmailrc

    # .procmailrc
    # routes incoming mail to appropriate mailboxes
    PATH=/usr/bin:/usr/local/bin
    MAILDIR=/var/mail/$USER
    DEFAULT=/var/mail/gevonden
    LOGFILE=/var/log/procmail.log
    SHELL=/bin/sh

    Mail always cames at /var/mail/gevonden, doenst matter for what user it is.
    But if i chance the default to /var/mail/$USER , it wont receive mail at all
    I dont know what to do, i just want procmail to deliver the right mail in the mailbox for the user.

    Further Information :
    OS : Ubuntu 6.06 LTS
    Kernel : Sparc64

    Thanks in advance,

    Mike Van Nunen
    ________________
     
  2. topdog

    topdog New Member HowtoForge Supporter

    If you are using maildir create the file /etc/procmailrc and put this in
    Code:
    DEFAULT=$HOME/Maildir/ 
    MAILDIR=$HOME/Maildir
    
    Also try removing your .procmailrc then test.
     
  3. falko

    falko Super Moderator ISPConfig Developer

    Are you using Maildir or mbox? What's the output of
    Code:
    netstat -tap
    ?
     
  4. mikenuun

    mikenuun New Member

    Thanks,
    This DID solved my problem 100%
     

Share This Page