1

Topic: iredmail stopped working

==== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx):Apache
- Linux/BSD distribution name and version: Ubuntu 14.04
- Related log if you're reporting an issue:
====

so i installed iredmail on a fresh install (i only had sshd installed for obvious reasons), and made an MX record. i sent two test emails (from my gmail email). one to postmaster@mail.dtscode.io and postmaster@dtscode.io and both were recieved successfully. then i added an account dtscode@dtscode.io, and then sent it an email. when i tried to login via https://dtscode.io/mail, the whole thing crashed. iredmail is now down and i cant get it up. please help.

----

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

2

Re: iredmail stopped working

Have you got any logs? Or are willing to give me SSH Access?

3

Re: iredmail stopped working

dtscode wrote:

then i added an account dtscode@dtscode.io, and then sent it an email. when i tried to login via https://dtscode.io/mail, the whole thing crashed. iredmail is now down and i cant get it up. please help.

What do you mean "crashed"?

4

Re: iredmail stopped working

7t3chguy wrote:

Have you got any logs? Or are willing to give me SSH Access?

what logs would be relevant here?

ZhangHuangbin wrote:
dtscode wrote:

then i added an account dtscode@dtscode.io, and then sent it an email. when i tried to login via https://dtscode.io/mail, the whole thing crashed. iredmail is now down and i cant get it up. please help.

What do you mean "crashed"?

yeah... im not quite sure how else to describe it. it just went offline. a sysadmin buddy actually managed to get it working again, but when i workup iredmail was down again.

5

Re: iredmail stopped working

About "crash", "down", do you mean the server was shut down, or some network services (e.g. imap/smtp/pop3) were not accessible?
Did you check iptables firewall rules? If client had too many password failures, Fail2ban will invoke iptables to block this client IP address.

6

Re: iredmail stopped working

im not sure... i just cant access dtscode.io/mail and dtscode.io/iredadmin. how can i check the iptables?

7

Re: iredmail stopped working

iptables -L

8 (edited by dtscode 2015-03-23 08:21:00)

Re: iredmail stopped working

Uh this is the output:

dtscode@dtscode:~$ sudo iptables -L
[sudo] password for dtscode: 
Chain INPUT (policy DROP)
target     prot opt source               destination         
fail2ban-postfix  tcp  --  anywhere             anywhere             multiport dports http,https,smtp,submission,pop3,pop3s,imap2,imaps,sieve
fail2ban-dovecot  tcp  --  anywhere             anywhere             multiport dports http,https,smtp,submission,pop3,pop3s,imap2,imaps,sieve
fail2ban-roundcube  tcp  --  anywhere             anywhere             multiport dports http,https,smtp,submission,pop3,pop3s,imap2,imaps,sieve
fail2ban-default  tcp  --  anywhere             anywhere            
fail2ban-default  tcp  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     icmp --  anywhere             anywhere             icmp echo-request
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ssh
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:https
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:smtp
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:submission
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:pop3
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:pop3s
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:imap2
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:imaps

Chain FORWARD (policy DROP)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

Chain fail2ban-default (2 references)
target     prot opt source               destination         
REJECT     all  --  115.239.228.6        anywhere             reject-with icmp-port-unreachable
REJECT     all  --  115.239.228.34       anywhere             reject-with icmp-port-unreachable
REJECT     all  --  115.239.228.9        anywhere             reject-with icmp-port-unreachable
RETURN     all  --  anywhere             anywhere            
RETURN     all  --  anywhere             anywhere            

Chain fail2ban-dovecot (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain fail2ban-postfix (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain fail2ban-roundcube (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            
dtscode@dtscode:~$

edit: at this point i dont mind you sshing in

9

Re: iredmail stopped working

fyi: i verified the mail server is running via telnet dtscode.io 25

10

Re: iredmail stopped working

email me at
postmaster_at_ webdevguru.co.uk
With ssh details

11

Re: iredmail stopped working

dtscode wrote:

Chain fail2ban-default (2 references)
target     prot opt source               destination         
REJECT     all  --  115.239.228.6        anywhere             reject-with icmp-port-unreachable
REJECT     all  --  115.239.228.34       anywhere             reject-with icmp-port-unreachable
REJECT     all  --  115.239.228.9        anywhere             reject-with icmp-port-unreachable
RETURN     all  --  anywhere             anywhere           
RETURN     all  --  anywhere             anywhere

Is your IP address one of above 3?
If you can telnet to port 25 on localhost, that might be caused by iptables firewall rules. Maybe you have too many password failures, and Fail2ban invokes iptables to block your IP address.

I suggest you empty current iptables firewall rules first, then try again:

# /etc/init.d/iptables stop