The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Mail queue issues

Discussion in 'E-mail Discussions' started by Darph Bobo, Sep 26, 2006.

  1. Darph Bobo

    Darph Bobo Active Member

    Joined:
    Dec 15, 2002
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    I am just about ready to kill someone (or something) if I can't get this mail queue to clear out.

    OK, maybe I'm not mad enough to kill, but I am getting extremely frustrated.

    It is not unusual for me to have thousands of emails in the queue. Many of them appear to be legit, but when I try to deliver them manually, I get messages like these:

    Message 1GRrlW-0007R1-05 is not frozen
    delivering 1GRrlW-0007R1-05
    LOG: MAIN
    => discarded <email@domain.com> R=has_alias_but_no_mailbox_discarded_to_prevent_loop
    LOG: MAIN
    => discarded <email@domain.com> R=has_alias_but_no_mailbox_discarded_to_prevent_loop
    LOG: MAIN PANIC
    Unable to create file for virtual_sa_userdelivery transport to return message: No such file or directory
    LOG: MAIN
    == email@domain.com <email@domain.com> R=virtual_sa_user T=virtual_sa_userdelivery defer (2): No such file or directory: Unable to create file for virtual_sa_userdelivery transport to return message: No such file or directory
    LOG: MAIN PANIC
    Unable to create file for virtual_sa_userdelivery transport to return message: No such file or directory
    LOG: MAIN
    == email@domain.com <email@domain.com> R=virtual_sa_user T=virtual_sa_userdelivery defer (2): No such file or directory: Unable to create file for virtual_sa_userdelivery transport to return message: No such file or directory


    Why would it not be working? The alias and associated email accounts are both there.
     
  2. Darph Bobo

    Darph Bobo Active Member

    Joined:
    Dec 15, 2002
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Any ideas? This is now happening to MY accounts!
     
  3. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Does the mail directory exist for this account, /home/user/mail/domain.com/emailuser?

    /scripts/mailperm might fix this.
     
  4. Darph Bobo

    Darph Bobo Active Member

    Joined:
    Dec 15, 2002
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1

    Yes, that directory is there. I can receive mail, but it seems to randomly pick mail to not deliver. It tried that script and it did not help.
     
  5. nettigritty

    nettigritty Well-Known Member
    PartnerNOC

    Joined:
    Jan 21, 2004
    Messages:
    194
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore, India
    Try running convert2maildir again with fix remaining mailboxes and then run a forced eximup.
     
  6. Darph Bobo

    Darph Bobo Active Member

    Joined:
    Dec 15, 2002
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1

    I am afraid I don't know what that script does, as I have never run it before.
     
  7. nettigritty

    nettigritty Well-Known Member
    PartnerNOC

    Joined:
    Jan 21, 2004
    Messages:
    194
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore, India
    conver2maildir will convert your mailboxes to maildir format. Search maildir in the forum. Plenty results. This will switch you to courier POP and IMAP if you arent already using that and remove neomail support. This would help reduce your queues as well since there is no mailbox locking with maildir.

    eximup is for updating exim.
     
  8. Darph Bobo

    Darph Bobo Active Member

    Joined:
    Dec 15, 2002
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    OK, I ran that on another server. It apparently keeps people from being able to check their email while it is running. :( I guess I will have to wait until tonight to run it on this server.

    So you think this will fix the error listed above? I see that it will fix the locking errors I have seen, but this seems to be completely different.
     
  9. nettigritty

    nettigritty Well-Known Member
    PartnerNOC

    Joined:
    Jan 21, 2004
    Messages:
    194
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore, India
    it should help. maildir is the new default format replacing mailboxes.
     
  10. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    MailDir is the new standard format. However, I'm not sure if that has anything to do with this error. It may indeed resolve this issue, but I don't think the issue is related to you using the mbox storage system instead of MailDir.

    It looks to me like a file or directory is missing somewhere, typically that is what No such file or directory means.

    You said /home/user/mail/domain.com/emailuser did exist. What about /home/user/etc/domain.com does it exist as well? Does the file /home/user/etc/domain.com/passwd also exist? Is the account near or over its quota?
     
  11. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Try rebuilding exim:

    /scripts/eximup --force
     
  12. Darph Bobo

    Darph Bobo Active Member

    Joined:
    Dec 15, 2002
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1

    Yes, all of those directories are there.
     
  13. Darph Bobo

    Darph Bobo Active Member

    Joined:
    Dec 15, 2002
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Just to make sure I have the correct error - here is what I get when trying to force a legit email into my account:

     
  14. nettigritty

    nettigritty Well-Known Member
    PartnerNOC

    Joined:
    Jan 21, 2004
    Messages:
    194
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore, India
    my guess - somehow exim was updated to maildir but the structure wasn't.
     
  15. nettigritty

    nettigritty Well-Known Member
    PartnerNOC

    Joined:
    Jan 21, 2004
    Messages:
    194
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore, India
    try creating a folder named cur and another named new under that ID i.e at

    /home/username/domain/mail/domain/emailid/

    and then deliver.

    Is webmail still working fine? Should be .. if courier wasn't installed since that also works with maildir.
     
  16. Darph Bobo

    Darph Bobo Active Member

    Joined:
    Dec 15, 2002
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Strangely enough, that seemed to fix the issue. Now how do I get all this mail out of the queue???
     
  17. nettigritty

    nettigritty Well-Known Member
    PartnerNOC

    Joined:
    Jan 21, 2004
    Messages:
    194
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore, India
    which one, creating the folders new and cur or conver2maildir?
     
  18. Darph Bobo

    Darph Bobo Active Member

    Joined:
    Dec 15, 2002
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    convert2maildir did it. I have a couple mail files that would not convert (I am assuming because of size), but other than that they work great now.
     
  19. nettigritty

    nettigritty Well-Known Member
    PartnerNOC

    Joined:
    Jan 21, 2004
    Messages:
    194
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore, India
    try running conver2maildir again with fix remaining mailboxes
     
Loading...

Share This Page