Cannot receive Mail form external Servers

Issue #366 resolved
Stephan Krebernik created an issue

It seems I cannot receive external emails anymore on my mailserver.

Bildschirmfoto 2018-06-12 um 11.27.55.png

and haraka-smtp doesn't seem to run properly. I can't find any logs in the /log directory for haraka.

Comments (19)

  1. Stephan Krebernik reporter

    Okay. One Mailbox' Quota exceeded and because of this no other mailbox received mails anymore.

    major bug.

  2. SH repo owner

    Do you have enough free space? Quota should not stop whole server

    You can send me tail of the log from /log/s6/haraka-smtp/current to info@poste.io

  3. Stephan Krebernik reporter

    Yes. Space is available. After I changed the Quota the server immediately accepted mails and delivered them to the boxes.

  4. SH repo owner

    I am unable to replicate that bug. Also quotas are autotested every build and there seems no problem either.

    Do you have any special settings? Or do you extend container?

  5. Stephan Krebernik reporter

    I had one Mailbox with 20GB Quota. This Mailbox was full. Then the strange behaviour started. After enlarging the quota to 25GB the mails started coming in again.

    The Senders got the error 451 back. "Connection refused by "

    I have no special settings. and I have not extended the container.

  6. Foddy

    I am facing the same issue since 2.0.11 PRO and I have no limits set and more than 2 TB free space on my disk... ?

    This happens once in 3 days and I have to restart the container to make it work again. When I check the mail Server through a testing tool, it says timeout during this error?

    /etc/cron.daily/check-user-quotas:
    06:44:50 ERROR     [console] Error thrown while running command "check:user-quotas". Message: "The command "/usr/bin/doveadm -f flow quota get -A|grep -v "Limit=-"" failed.
    
    Exit Code: 1(General error)
    
    Working directory: /
    
    Output:
    ================
    
    
    Error Output:
    ================
    " ["exception" => Symfony\Component\Process\Exception\ProcessFailedException { …},"command" => "check:user-quotas","message" => """  The command "/usr/bin/doveadm -f flow quota get -A|grep -v "Limit=-"" failed.\n  \n  Exit Code: 1(General error)\n  \n  Working directory: /\n  \n  Output:\n  ================\n  \n  \n  Error Output:\n  ================\n  """] []
    
    In Process.php line 239:
    
     The command "/usr/bin/doveadm -f flow quota get -A|grep -v "Limit=-"" faile  
     d.                                                                           
    
     Exit Code: 1(General error)                                                  
    
     Working directory: /                                                         
    
     Output:                                                                      
     ================                                                             
    
    
     Error Output:                                                                
     ================                                                             
    
    
    check:user-quotas [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>
    
    /etc/cron.daily/logrotate:
    error: rsyslog:13 duplicate log entry for /var/log/messages
    error: failed to compress log /var/log/nginx/access.log.1
    error: failed to compress log /var/log/rspamd/rspamd.log.1
    error: failed to compress log /var/log/syslog.1
    run-parts: /etc/cron.daily/logrotate exited with return code 1
    
  7. SH repo owner

    Although I am still short any clues why it is happening please try latest version, there are some minor changes.

  8. Foddy

    I am sorry – These kinds of errors suck... This is what I get with the last version 2.0.12.

    SCREEN.png

    Let me know if you need some specific logs or anything similar?

    Would it be possible to implement something like the node package PM2 or node-forever, which automatically restarts the respective areas when they abort? I know this is not the solution for the problem, but maybe it gives a bit more security, especially with systems that always have to work?

  9. SH repo owner

    I see you are using different domain for email services and administration. Will fix that in next version...

    S6 supervisor automaticaly restarts node if it crashes. Also Haraka itself handle threads in same way. I suspect this is some kind of nasty callback stuck error

  10. SH repo owner

    (you can also try poste.io/mailserver:development image if you don't want to wait for release)

  11. Roman

    I have same issue on 2.0.11 PRO (reported by email already). I think there is some infinite loop maybe in antispam or sieve. When it happened by server has 100% CPU load and in syslog i can fidt that it's trying to deliver some message marked as *SPAM* (matched sieve filter on it) in loop.

  12. Log in to comment