1

Topic: Erro Timeout

I installed iRedMail and tested it well on DigitalOcean (Send/Receive/HTTPS) but suddenly server stops rendering and starts giving timeout messages and none url nginx respond. I cannot connect to IMAP, SMTP, POP or even RoundCube Website.

Thanks,

==== Required information ====
- iRedMail version 0.9.2:
- Linux/BSD distribution name and version: Ubuntu 15.04
- Store mail accounts in which backend MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Erro Timeout

Check log files under /var/log/. Especially, mail.log, syslog.

3

Re: Erro Timeout

ZhangHuangbin wrote:

Check log files under /var/log/. Especially, mail.log, syslog.

I've checked these files, there is no error message.

4

Re: Erro Timeout

I reboot the system, and it responds while machine is getting up, but when everything is ready it stops works.

5

Re: Erro Timeout

How much RAM do you have on this server?

6

Re: Erro Timeout

1gb

7

Re: Erro Timeout

Yesterday I created swapfile and it started normal, but after a while stopped again. I commented the swap entry in fstab and reboot the machine it's up and running again. Do you know what could came wrong with swapfile?

8

Re: Erro Timeout

Any error when you restart 'clamav-daemon' service?

9

Re: Erro Timeout

None

I created swapfile like this

dd if=/dev/zero of=/swapfile bs=2M count=2000
sudo mkswap /swapfile
sudo swapon /swapfile
sudo nano /etc/fstab
added following line
/swapfile       none    swap    sw      0       0

echo 10 | sudo tee /proc/sys/vm/swappiness
echo vm.swappiness = 10 | sudo tee -a /etc/sysctl.conf

sudo chown root:root /swapfile
sudo chmod 0600 /swapfile

10

Re: Erro Timeout

Even with swapfile disabled it off again.

11

Re: Erro Timeout

SMTP works but not roundcube, pop and imap

12

Re: Erro Timeout

Fail2ban blocked my ip the defaultime bantime was 86400.

13

Re: Erro Timeout

livioalves25 wrote:

SMTP works but not roundcube, pop and imap

Try to restart Dovecot service, any error message in /var/log/dovecot.log?

14

Re: Erro Timeout

I found the problem, iRedMail was working fine, my ip was blocked by Fail2ban and bantime was 24 hours. Because of that i though it was down, but it was running fine.