Unknown (maildrop) error

Discussion in 'Installation/Configuration' started by Skprorok, Jul 27, 2009.

  1. mooseman

    mooseman New Member

    Hi Till,

    Thanks for you hepl with this...

    Here is the maildrop entry in my master.cf:
    Code:
    maildrop  unix  -       n       n       -       -       pipe
      flags=R user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender}
    
    Which I replaced with the line you indicated and the queue is still growing...

    Can you help me decifer that line in master.cf

    thx
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Execute the other commands, that i posted as root user.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    If the commands wont help, try this to reinstall maildrop:

    sudo update-alternatives --remove-all maildir.5
    sudo update-alternatives --remove-all maildirquota.7
    sudo apt-get install --reinstall maildrop
     
  4. mooseman

    mooseman New Member

    Hi,

    Performed the reinstall and then ran a:

    postqueue -f

    followed by a:

    postqueue -p

    and the queue is still growing with the same errors

    Thanks,
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    did you first executed the other commands that i posted. please try to be more descriptive and always post exactly what you have done from the things that i suggested.
     
  6. mooseman

    mooseman New Member

    Hi,

    I first tried to reinstall ispconfig 3.0.1.6 running the update.php script in the install folder with the reconfigure services option

    I then ran the:

    chmod 755 /var/run/courier/authdaemon/
    chmod +s /usr/bin/maildrop

    Followed by editing the master.cf file, changing:

    Code:
    maildrop  unix  -       n       n       -       -       pipe
      flags=R user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender}
    to

    Code:
    maildrop  unix  -       n       n       -       -       pipe
      flags=R user=vmail argv=/usr/bin/maildrop -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender}
    I then tried to reinstall maildrop with the following:

    sudo update-alternatives --remove-all maildir.5
    sudo update-alternatives --remove-all maildirquota.7
    sudo apt-get install --reinstall maildrop


    Still have the same errors in the queue

    Thanks,

    --
    Dan
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Try to run:

    chown -R vmail:vmail /var/vmail

    and please change the lines in master.cf back as this was not the reason.
     
  8. mooseman

    mooseman New Member

    Hi,

    With all these changes a reboot seems to have fixed it now.. queue just flushed!

    ooof
     
  9. mooseman

    mooseman New Member

    I take it back, queue flushed, but emails all bounced... that's not good...

    I have a backup of the /var/spool/postfix folder from earlier this afternoon if I restore that Do you think my queues will get recovered?
     
  10. mooseman

    mooseman New Member

    Hi,

    I ran :
    maildrop -V 9 -d [email protected]

    and I ge the result:

    maildrop: authlib: groupid=5000
    maildrop: authlib: userid=5000
    maildrop: authlib: logname=[email protected], home=/var/vmail, mail=/var/vmail/domain.com/webmaster
    maildrop: Changing to /var/vmail

    And it hangs there..

    with an eventual:

    "maildrop: Timeout quota exceeded."
     
    Last edited: Feb 1, 2010
  11. mooseman

    mooseman New Member

    Hi,

    Changed back the maildrop lines in the master.cf and ran:
    chown -R vmail:vmail /var/vmail

    I then restored the backup of my queues from earlier this afternoon.

    My queue count is back up and rising.

    --
    Dan
     
  12. troggie_0092

    troggie_0092 New Member

    I also have the same problem.

    I did a apt-get upgrade, the server installled an "maildrop update" and ever since then the error messages such as "Unable to open mailbox" and "Permission denied, Unable to open mailbox".

    Is there a permission file or access grant I need to set?
     
  13. mooseman

    mooseman New Member

    How do we do a roll back?
     
  14. troggie_0092

    troggie_0092 New Member

    What if we booted with the old kernel (8.10), that should have the old config, wouldn't it?

    Can't the people who released the maildrop update, patch it?
    It just doesn't want to change to the /var/vmail directory
     
  15. troggie_0092

    troggie_0092 New Member

    I commented out :

    #virtual_transport = maildrop

    and emails were delivered by virtual

    Hope this helps
     
  16. mooseman

    mooseman New Member

    I presume you made that modification in the main.cf?.. I tried the same mod and restarted postfix and the queue is still stuck .

    your queue is flowing now?

    --
    Dan
     
  17. mooseman

    mooseman New Member

    I also got the following error in the mail.err log:

    postfix/virtual[3992]: fatal: main.cf configuration error: virtual_mailbox_limit is smaller than message_size_limit

    any ideas?
     
  18. rforsythe

    rforsythe New Member

    See my other post here for the maildrop fix:
    http://www.howtoforge.com/forums/showthread.php?p=218260#post218260

    For the mailbox_size error, not sure when it started but I fixed it by commenting out this:

    #message_size_limit = 0

    And adding this:

    message_size_limit = 10240000000
    virtual_mailbox_limit = 0

    I think the virtual_mailbox_limit has a default value that conflicts when not set.
     
  19. mooseman

    mooseman New Member

    Man I wish I had seen that post earlier... I can't believe my earlier search didn't pick it up.. anyway..

    I ran the three commands and BINGO Mail Queues Flushed and email delivered to the proper place!

    SOLUTION:
    aptitude install maildrop=2.0.4-3
    postfix flush
    aptitude hold maildrop


    Thanks rforsythe!!

    :)
     
  20. jamesloker

    jamesloker New Member

    Thank you all for your help. I agree mooseman, why didn't that come up in the searches? that is the absolute trick!
    School is back on track and receiving emails
     

Share This Page