I don't like giving up so easy to start over.
If you don't mind I am going to try to troubleshoot this before i reinstall the OS.
I would like to document my process here if that is ok.
I am starting with this command:
root@mail:/var/log# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.dccathome.com ESMTP Postfix (Debian/GNU)
quit
221 2.0.0 Bye
Connection closed by foreign host.
root@mail:/var/log# telnet 192.168.1.20 25
Trying 192.168.1.20...
Connected to 192.168.1.20.
Escape character is '^]'.
220 mail.dccathome.com ESMTP Postfix (Debian/GNU)
quit
221 2.0.0 Bye
Connection closed by foreign host.
root@mail:/var/log# netstat -t -a | grep LISTEN
tcp 0 0 localhost:9998 *:* LISTEN
tcp 0 0 *:pop3 *:* LISTEN
tcp 0 0 *:imap2 *:* LISTEN
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 *:webmin *:* LISTEN
tcp 0 0 *:http *:* LISTEN
tcp 0 0 localhost:5939 *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 localhost:24 *:* LISTEN
tcp 0 0 *:smtp *:* LISTEN
tcp 0 0 *:3483 *:* LISTEN
tcp 0 0 *:microsoft-ds *:* LISTEN
tcp 0 0 localhost:sieve *:* LISTEN
tcp 0 0 *:imaps *:* LISTEN
tcp 0 0 localhost:7777 *:* LISTEN
tcp 0 0 *:9090 *:* LISTEN
tcp 0 0 *:pop3s *:* LISTEN
tcp 0 0 localhost:gpsd *:* LISTEN
tcp 0 0 *:50855 *:* LISTEN
tcp 0 0 localhost:10024 *:* LISTEN
tcp 0 0 *:9000 *:* LISTEN
tcp 0 0 *:47209 *:* LISTEN
tcp 0 0 localhost:10025 *:* LISTEN
tcp 0 0 localhost:mysql *:* LISTEN
tcp 0 0 *:submission *:* LISTEN
tcp 0 0 *:netbios-ssn *:* LISTEN
tcp 0 0 localhost:11211 *:* LISTEN
tcp6 0 0 ::1:9998 [::]:* LISTEN
tcp6 0 0 [::]:pop3 [::]:* LISTEN
tcp6 0 0 [::]:imap2 [::]:* LISTEN
tcp6 0 0 [::]:sunrpc [::]:* LISTEN
tcp6 0 0 [::]:http [::]:* LISTEN
tcp6 0 0 [::]:ssh [::]:* LISTEN
tcp6 0 0 [::]:42554 [::]:* LISTEN
tcp6 0 0 [::]:microsoft-ds [::]:* LISTEN
tcp6 0 0 [::]:imaps [::]:* LISTEN
tcp6 0 0 [::]:pop3s [::]:* LISTEN
tcp6 0 0 ::1:gpsd [::]:* LISTEN
tcp6 0 0 ::1:10024 [::]:* LISTEN
tcp6 0 0 [::]:netbios-ssn [::]:* LISTEN
root@mail:/etc/postfix# service postfix status
● postfix.service - LSB: Postfix Mail Transport Agent
Loaded: loaded (/etc/init.d/postfix)
Drop-In: /run/systemd/generator/postfix.service.d
└─50-postfix-$mail-transport-agent.conf
Active: active (running) since Wed 2015-08-19 11:25:58 CDT; 1 day 8h ago
CGroup: /system.slice/postfix.service
├─ 2895 /usr/lib/postfix/master
├─ 2897 qmgr -l -t unix -u
├─ 3192 tlsmgr -l -t unix -u -c
├─ 4163 smtpd -n smtp -t inet -u -c -o stress=
├─ 4165 proxymap -t unix -u
├─ 4166 anvil -l -t unix -u -c
├─ 4167 trivial-rewrite -n rewrite -t unix -u -c
└─29241 pickup -l -t unix -u -c
Aug 20 19:31:56 mail postfix/smtpd[1000]: connect from bzq-30-168-31-199.red.bezeqint.net[31.168.30.199]
Aug 20 19:31:56 mail postfix/smtpd[1000]: NOQUEUE: reject: RCPT from bzq-30-168-31-199.red.bezeqint.net[31.168.30.199]: 554 5.7.1 <...
Aug 20 19:31:57 mail postfix/smtpd[1000]: lost connection after DATA from bzq-30-168-31-199.red.bezeqint.net[31.168.30.199]
Aug 20 19:31:57 mail postfix/smtpd[1000]: disconnect from bzq-30-168-31-199.red.bezeqint.net[31.168.30.199]
Aug 20 19:36:05 mail postfix/qmgr[2897]: 4F04FC1FF5: from=<root@mail.dccathome.com>, size=1073, nrcpt=1 (queue active)
Aug 20 19:36:05 mail postfix/pipe[1464]: 4F04FC1FF5: to=<postmaster@dccathome.com>, relay=dovecot, delay=2236, delays=2236/0...ailure)
Aug 20 19:57:42 mail postfix/smtpd[4163]: connect from host178-199-110-95.serverdedicati.aruba.it[95.110.199.178]
Aug 20 19:57:43 mail postfix/smtpd[4163]: NOQUEUE: reject: RCPT from host178-199-110-95.serverdedicati.aruba.it[95.110.199.1...ica.it>
Aug 20 19:57:43 mail postfix/smtpd[4163]: lost connection after RCPT from host178-199-110-95.serverdedicati.aruba.it[95.110.199.178]
Aug 20 19:57:43 mail postfix/smtpd[4163]: disconnect from host178-199-110-95.serverdedicati.aruba.it[95.110.199.178]
root@mail:/etc/postfix# service dovecot status
● dovecot.service - LSB: Dovecot init script
Loaded: loaded (/etc/init.d/dovecot)
Active: active (running) since Wed 2015-08-19 17:33:09 CDT; 1 day 2h ago
Process: 14207 ExecStop=/etc/init.d/dovecot stop (code=exited, status=0/SUCCESS)
Process: 14217 ExecStart=/etc/init.d/dovecot start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/dovecot.service
├─ 1466 dovecot/auth
├─14225 /usr/sbin/dovecot -c /etc/dovecot/dovecot.conf
├─14226 dovecot/lmtp -L
├─14227 dovecot/anvil
├─14228 dovecot/log
├─14230 dovecot/lmtp -L
├─14231 dovecot/lmtp -L
├─14232 dovecot/lmtp -L
├─14233 dovecot/lmtp -L
└─14234 dovecot/config
Aug 19 17:33:09 mail dovecot[14217]: Starting IMAP/POP3 mail server: dovecot.
Took this from the dovecot.log file:
Not sure what this means:
Aug 19 07:17:52 auth-worker(6825): Error: mysql(127.0.0.1): Connect failed to database (vmail): Can't connect to MySQL server on '127.0.0.1' (111) - waiting for 125 seconds before retry
Aug 19 07:18:21 auth-worker(6825): Error: mysql: Query timed out (no free connections for 60 secs): SELECT password, allow_nets FROM mailbox WHERE username='test' AND enablesmtpsecured=1 AND active=1
Aug 19 07:18:21 auth-worker(6825): Error: sql(test,218.251.113.36): Password query failed: Not connected to database
Aug 19 07:18:21 auth: Error: auth worker: Aborted PASSV request for test: Lookup timed out
Aug 19 07:18:21 auth: Error: Aborting auth request that was queued for 95 secs, 2 left in queue
Aug 19 07:18:21 auth: Error: Aborting auth request that was queued for 82 secs, 1 left in queue
Aug 19 07:18:21 auth: Error: Aborting auth request that was queued for 70 secs, 0 left in queue
Aug 19 07:18:21 auth-worker(6940): Error: mysql(127.0.0.1): Connect failed to database (vmail): Can't connect to MySQL server on '127.0.0.1' (111) - waiting for 1 seconds before retry
root@mail:/var/log# telnet 192.168.1.20 465
Trying 192.168.1.20...
telnet: Unable to connect to remote host: Connection refused
root@mail:/var/log# telnet 192.168.1.20 587
Trying 192.168.1.20...
Connected to 192.168.1.20.
Escape character is '^]'.
220 mail.dccathome.com ESMTP Postfix (Debian/GNU)
quit
221 2.0.0 Bye
Connection closed by foreign host.
root@mail:/var/log# telnet 192.168.1.20 993
Trying 192.168.1.20...
Connected to 192.168.1.20.
Escape character is '^]'.
quit
exit
Connection closed by foreign host.
root@mail:/var/log# telnet 192.168.1.20 995
Trying 192.168.1.20...
Connected to 192.168.1.20.
Escape character is '^]'.
exit
quit
Connection closed by foreign host.
root@mail:/var/log# doveadm user postmaster@dccathome.com
field value
uid 2000
gid 2000
home /var/vmail/vmail1/dccathome.com/p/o/s/postmaster-2015.08.19.10.55.15/
mail maildir:/var/vmail/vmail1/dccathome.com/p/o/s/postmaster-2015.08.19.10.55.15//Maildir/:INDEX=/var/vmail/vmail1/dccathome.com/p/o/s/postmaster-2015.08.19.10.55.15//Maildir/
master_user postmaster@dccathome.com
quota_rule *:bytes=1073741824