Topic: I can send but not receive email
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): v1.1
- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer
- Linux/BSD distribution name and version: Ubuntu Server 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I installed iRedMail on a new server, I migrated the data from my old server, everything was successful, there were no errors. The problem is that after resetting the information in the new server, I can send mails, they are stored correctly in the server and they arrive to the recipient but I cannot receive mails.
If I send an email to the server with iRedMail it never arrives.
I have already verified that the directories have the corresponding permissions.
The A and MX records are correct. In fact, I only had to update the IP of record A to point to the new server.
Execute the following commands:
sudo chown -R vmail:vmail /var/vmail
sudo chmod -R 755 /var/vmail
sudo chmod -R g+w /var/vmail
sudo find /var/vmail -type f -exec chmod 664 {};
sudo find /var/vmail -type d -exec chmod 775
This is the result of running the following command
sudo lsof -i -P -n | grep LISTEN
systemd-r 338 systemd-resolve 13u IPv4 568 0t0 TCP 127.0.0.53:53 (LISTEN)
php-fpm7. 426 root 7u IPv4 17026 0t0 TCP 127.0.0.1:9999 (LISTEN)
memcached 447 memcache 26u IPv4 18917 0t0 TCP 127.0.0.1:11211 (LISTEN)
sshd 464 root 3u IPv4 16967 0t0 TCP *:22 (LISTEN)
sshd 464 root 4u IPv6 16969 0t0 TCP *:22 (LISTEN)
uwsgi 465 iredadmin 6u IPv4 18858 0t0 TCP 127.0.0.1:7791 (LISTEN)
uwsgi 467 mlmmj 6u IPv4 15841 0t0 TCP 127.0.0.1:7790 (LISTEN)
nginx 472 root 8u IPv4 17842 0t0 TCP *:443 (LISTEN)
nginx 472 root 9u IPv4 17843 0t0 TCP *:80 (LISTEN)
nginx 473 www-data 8u IPv4 17842 0t0 TCP *:443 (LISTEN)
nginx 473 www-data 9u IPv4 17843 0t0 TCP *:80 (LISTEN)
uwsgi 499 mlmmj 6u IPv4 15841 0t0 TCP 127.0.0.1:7790 (LISTEN)
uwsgi 500 mlmmj 6u IPv4 15841 0t0 TCP 127.0.0.1:7790 (LISTEN)
uwsgi 501 mlmmj 6u IPv4 15841 0t0 TCP 127.0.0.1:7790 (LISTEN)
uwsgi 502 mlmmj 6u IPv4 15841 0t0 TCP 127.0.0.1:7790 (LISTEN)
uwsgi 503 mlmmj 6u IPv4 15841 0t0 TCP 127.0.0.1:7790 (LISTEN)
uwsgi 574 iredadmin 6u IPv4 18858 0t0 TCP 127.0.0.1:7791 (LISTEN)
uwsgi 575 iredadmin 6u IPv4 18858 0t0 TCP 127.0.0.1:7791 (LISTEN)
uwsgi 576 iredadmin 6u IPv4 18858 0t0 TCP 127.0.0.1:7791 (LISTEN)
uwsgi 577 iredadmin 6u IPv4 18858 0t0 TCP 127.0.0.1:7791 (LISTEN)
uwsgi 578 iredadmin 6u IPv4 18858 0t0 TCP 127.0.0.1:7791 (LISTEN)
mysqld 579 mysql 22u IPv4 17879 0t0 TCP 127.0.0.1:3306 (LISTEN)
python2 581 iredapd 3u IPv4 16108 0t0 TCP 127.0.0.1:7777 (LISTEN)
dovecot 674 root 15u IPv4 19416 0t0 TCP 127.0.0.1:4190 (LISTEN)
dovecot 674 root 21u IPv4 19420 0t0 TCP 127.0.0.1:24242 (LISTEN)
dovecot 674 root 28u IPv4 19426 0t0 TCP *:110 (LISTEN)
dovecot 674 root 29u IPv4 19427 0t0 TCP *:995 (LISTEN)
dovecot 674 root 33u IPv4 19473 0t0 TCP 127.0.0.1:24 (LISTEN)
dovecot 674 root 43u IPv4 19483 0t0 TCP *:143 (LISTEN)
dovecot 674 root 44u IPv4 19484 0t0 TCP *:993 (LISTEN)
dovecot 674 root 63u IPv4 19505 0t0 TCP 127.0.0.1:12340 (LISTEN)
lmtp 769 vmail 9u IPv4 19473 0t0 TCP 127.0.0.1:24 (LISTEN)
lmtp 775 vmail 9u IPv4 19473 0t0 TCP 127.0.0.1:24 (LISTEN)
lmtp 777 vmail 9u IPv4 19473 0t0 TCP 127.0.0.1:24 (LISTEN)
lmtp 778 vmail 9u IPv4 19473 0t0 TCP 127.0.0.1:24 (LISTEN)
lmtp 779 vmail 9u IPv4 19473 0t0 TCP 127.0.0.1:24 (LISTEN)
sogod 885 sogo 3u IPv4 22554 0t0 TCP 127.0.0.1:20000 (LISTEN)
sogod 907 sogo 3u IPv4 22554 0t0 TCP 127.0.0.1:20000 (LISTEN)
sogod 909 sogo 3u IPv4 22554 0t0 TCP 127.0.0.1:20000 (LISTEN)
sogod 910 sogo 3u IPv4 22554 0t0 TCP 127.0.0.1:20000 (LISTEN)
sogod 911 sogo 3u IPv4 22554 0t0 TCP 127.0.0.1:20000 (LISTEN)
sogod 912 sogo 3u IPv4 22554 0t0 TCP 127.0.0.1:20000 (LISTEN)
sogod 913 sogo 3u IPv4 22554 0t0 TCP 127.0.0.1:20000 (LISTEN)
sogod 914 sogo 3u IPv4 22554 0t0 TCP 127.0.0.1:20000 (LISTEN)
sogod 915 sogo 3u IPv4 22554 0t0 TCP 127.0.0.1:20000 (LISTEN)
sogod 916 sogo 3u IPv4 22554 0t0 TCP 127.0.0.1:20000 (LISTEN)
sogod 931 sogo 3u IPv4 22554 0t0 TCP 127.0.0.1:20000 (LISTEN)
/usr/sbin 1388 amavis 5u IPv4 21009 0t0 TCP 127.0.0.1:10024 (LISTEN)
/usr/sbin 1388 amavis 6u IPv4 21010 0t0 TCP 127.0.0.1:10026 (LISTEN)
/usr/sbin 1388 amavis 7u IPv4 21011 0t0 TCP 127.0.0.1:10027 (LISTEN)
/usr/sbin 1388 amavis 8u IPv4 21012 0t0 TCP 127.0.0.1:9998 (LISTEN)
master 1745 root 13u IPv4 23058 0t0 TCP *:25 (LISTEN)
master 1745 root 115u IPv4 23159 0t0 TCP *:587 (LISTEN)
master 1745 root 127u IPv4 23172 0t0 TCP 127.0.0.1:10025 (LISTEN)
master 1745 root 130u IPv4 23176 0t0 TCP 127.0.0.1:10028 (LISTEN)
netdata 1755 netdata 4u IPv4 23588 0t0 TCP 127.0.0.1:19999 (LISTEN)
netdata 1755 netdata 35u IPv4 19833 0t0 TCP 127.0.0.1:8125 (LISTEN)
stats 2056 dovecot 11u IPv4 19420 0t0 TCP 127.0.0.1:24242 (LISTEN)
/usr/sbin 2069 amavis 5u IPv4 21009 0t0 TCP 127.0.0.1:10024 (LISTEN)
/usr/sbin 2069 amavis 6u IPv4 21010 0t0 TCP 127.0.0.1:10026 (LISTEN)
/usr/sbin 2069 amavis 7u IPv4 21011 0t0 TCP 127.0.0.1:10027 (LISTEN)
/usr/sbin 2069 amavis 8u IPv4 21012 0t0 TCP 127.0.0.1:9998 (LISTEN)
/usr/sbin 2070 amavis 5u IPv4 21009 0t0 TCP 127.0.0.1:10024 (LISTEN)
/usr/sbin 2070 amavis 6u IPv4 21010 0t0 TCP 127.0.0.1:10026 (LISTEN)
/usr/sbin 2070 amavis 7u IPv4 21011 0t0 TCP 127.0.0.1:10027 (LISTEN)
/usr/sbin 2070 amavis 8u IPv4 21012 0t0 TCP 127.0.0.1:9998 (LISTEN)
/usr/sbin 2071 amavis 5u IPv4 21009 0t0 TCP 127.0.0.1:10024 (LISTEN)
/usr/sbin 2071 amavis 6u IPv4 21010 0t0 TCP 127.0.0.1:10026 (LISTEN)
/usr/sbin 2071 amavis 7u IPv4 21011 0t0 TCP 127.0.0.1:10027 (LISTEN)
/usr/sbin 2071 amavis 8u IPv4 21012 0t0 TCP 127.0.0.1:9998 (LISTEN)
/usr/sbin 2072 amavis 5u IPv4 21009 0t0 TCP 127.0.0.1:10024 (LISTEN)
/usr/sbin 2072 amavis 6u IPv4 21010 0t0 TCP 127.0.0.1:10026 (LISTEN)
/usr/sbin 2072 amavis 7u IPv4 21011 0t0 TCP 127.0.0.1:10027 (LISTEN)
/usr/sbin 2072 amavis 8u IPv4 21012 0t0 TCP 127.0.0.1:9998 (LISTEN)
/usr/sbin 2073 amavis 5u IPv4 21009 0t0 TCP 127.0.0.1:10024 (LISTEN)
/usr/sbin 2073 amavis 6u IPv4 21010 0t0 TCP 127.0.0.1:10026 (LISTEN)
/usr/sbin 2073 amavis 7u IPv4 21011 0t0 TCP 127.0.0.1:10027 (LISTEN)
/usr/sbin 2073 amavis 8u IPv4 21012 0t0 TCP 127.0.0.1:9998 (LISTEN)
/usr/sbin 2074 amavis 5u IPv4 21009 0t0 TCP 127.0.0.1:10024 (LISTEN)
/usr/sbin 2074 amavis 6u IPv4 21010 0t0 TCP 127.0.0.1:10026 (LISTEN)
/usr/sbin 2074 amavis 7u IPv4 21011 0t0 TCP 127.0.0.1:10027 (LISTEN)
/usr/sbin 2074 amavis 8u IPv4 21012 0t0 TCP 127.0.0.1:9998 (LISTEN)
/usr/sbin 2075 amavis 5u IPv4 21009 0t0 TCP 127.0.0.1:10024 (LISTEN)
/usr/sbin 2075 amavis 6u IPv4 21010 0t0 TCP 127.0.0.1:10026 (LISTEN)
/usr/sbin 2075 amavis 7u IPv4 21011 0t0 TCP 127.0.0.1:10027 (LISTEN)
/usr/sbin 2075 amavis 8u IPv4 21012 0t0 TCP 127.0.0.1:9998 (LISTEN)
/usr/sbin 2076 amavis 5u IPv4 21009 0t0 TCP 127.0.0.1:10024 (LISTEN)
/usr/sbin 2076 amavis 6u IPv4 21010 0t0 TCP 127.0.0.1:10026 (LISTEN)
/usr/sbin 2076 amavis 7u IPv4 21011 0t0 TCP 127.0.0.1:10027 (LISTEN)
/usr/sbin 2076 amavis 8u IPv4 21012 0t0 TCP 127.0.0.1:9998 (LISTEN)
php-fpm7. 14701 www-data 10u IPv4 17026 0t0 TCP 127.0.0.1:9999 (LISTEN)
php-fpm7. 14703 www-data 10u IPv4 17026 0t0 TCP 127.0.0.1:9999 (LISTEN)
php-fpm7. 14707 www-data 10u IPv4 17026 0t0 TCP 127.0.0.1:9999 (LISTEN)
php-fpm7. 14709 www-data 10u IPv4 17026 0t0 TCP 127.0.0.1:9999 (LISTEN)
php-fpm7. 14712 www-data 10u IPv4 17026 0t0 TCP 127.0.0.1:9999 (LISTEN)
php-fpm7. 14801 www-data 10u IPv4 17026 0t0 TCP 127.0.0.1:9999 (LISTEN)
I ran out of ideas, I've been consulting publications with the same problem but I still can't find a solution, could someone help me?
The ports are also open within the network, I've exhausted most of the possible causes of this problem but I can't think of what else it could be.
I've sent mail to myself from iCloud and Gmail, neither of which has returned any error messages saying that the server or mail address can't be found, so I've assumed that they arrive at the new server but aren't stored by some erroneous permission or something else.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.