1

Topic: No mail from root to postmaster@mydomain.ru

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.8 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? Downloadable Installer
- Linux/BSD distribution name and version: Debian GNU Linux 12
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- 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.
====
Hello!

After fresh install iRedMail (Debian12) no mail in mailbox postmaster@mydomain.ru

cat /etc/postfix/aliases
# See man 5 aliases for format
postmaster:    root
#clamav: root
nobody: root
vmail: root
root: postmaster@mydomain.ru
www-data: root
clamav: root
amavis: root
iredapd: root

cat /etc/aliases
# See man 5 aliases for format
postmaster:    root
clamav: root

echo "Test" | sendmail root

2024-04-08T16:16:29.375252+03:00 mail postfix/pickup[11749]: 4VCqNs2fS8z1BfY: uid=0 from=<root>
2024-04-08T16:16:29.399625+03:00 mail postfix/cleanup[13557]: 4VCqNs2fS8z1BfY: message-id=<4VCqNs2fS8z1BfY@mail.mydomain.ru>
2024-04-08T16:16:29.402830+03:00 mail postfix/qmgr[2440]: 4VCqNs2fS8z1BfY: from=<root@mail.mydomain.ru>, size=253, nrcpt=1 (queue active)
2024-04-08T16:16:29.626808+03:00 mail postfix/10025/smtpd[13562]: connect from localhost[127.0.0.1]
2024-04-08T16:16:29.626970+03:00 mail postfix/10025/smtpd[13562]: discarding EHLO keywords: CHUNKING
2024-04-08T16:16:29.628242+03:00 mail postfix/10025/smtpd[13562]: 4VCqNs4SDlz16nG: client=localhost[127.0.0.1]
2024-04-08T16:16:29.629302+03:00 mail postfix/cleanup[13557]: 4VCqNs4SDlz16nG: message-id=<4VCqNs2fS8z1BfY@mail.mydomain.ru>
2024-04-08T16:16:29.633330+03:00 mail postfix/10025/smtpd[13562]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
2024-04-08T16:16:29.633467+03:00 mail postfix/qmgr[2440]: 4VCqNs4SDlz16nG: from=<root@mail.mydomain.ru>, size=1635, nrcpt=1 (queue active)
2024-04-08T16:16:29.643426+03:00 mail amavis[11015]: (11015-07) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [127.0.0.1] /ESMTP <root@mail.mydomain.ru> -> <root@mail.mydomain.ru>, (), Message-ID: <4VCqNs2fS8z1BfY@mail.mydomain.ru>, mail_id: YScpNrK4iZjx, b: IgXkjeX5P, Hits: 2.973, size: 253, queued_as: 4VCqNs4SDlz16nG, Subject: "", From: <root@mail.mydomain.ru>, helo=, Tests: [MISSING_HEADERS=1.207,MISSING_SUBJECT=1.767,NO_RELAYS=-0.001], autolearn=no autolearn_force=no, autolearnscore=2.974, dkim_new=dkim:mydomain.ru, 238 ms
2024-04-08T16:16:29.652394+03:00 mail postfix/amavis/smtp[13590]: 4VCqNs2fS8z1BfY: to=<root@mail.mydomain.ru>, orig_to=<root>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.28, delays=0.03/0/0/0.25, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 4VCqNs4SDlz16nG)
2024-04-08T16:16:29.656928+03:00 mail postfix/qmgr[2440]: 4VCqNs2fS8z1BfY: removed

Can you help me?

----

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

2

Re: No mail from root to postmaster@mydomain.ru

Is it stalled in Postfix queue? What's the output of command "postqueue -p"?

3

Re: No mail from root to postmaster@mydomain.ru

Hello ZhangHuangbin!

Yes it stalled in Postfix queue...

postqueue -p
----Queue ID----- --Size-- ---Arrival Time---- --Sender/Recipient------
4VCpW73J8mz16p8*      1635 Mon Apr  8 15:36:51 root@mail.mydomain.ru
                                               root@mail.mydomain.ru

4VD6L404QJz1FLL*      2511 Tue Apr  9 03:30:04 root@mail.mydomain.ru
                                               root@mail.mydomain.ru

4VCq4V3ppvz16nt*      1635 Mon Apr  8 16:02:18 root@mail.mydomain.ru
                                               root@mail.mydomain.ru

4

Re: No mail from root to postmaster@mydomain.ru

I tried the following trick - made the virtual user root (via iRedAdmin page) - command
echo "Test" | sendmail root@mydomain.ru send mail without problems and virtual user root@mydomain.ru recieve mail.

5 (edited by shurale 2024-04-09 16:38:52)

Re: No mail from root to postmaster@mydomain.ru

I found problem!

It's mailbox_size_limit and message_size_limit in my case.

root@mail:~# postconf -n | grep mailbox_size_limit
root@mail:~# postconf -d | grep mailbox_size_limit
mailbox_size_limit = 51200000
root@mail:~# postconf -n | grep virtual_mailbox_limit
root@mail:~# postconf -d | grep virtual_mailbox_limit
virtual_mailbox_limit = 51200000
root@mail:~# postconf -n | grep message_size_limit
message_size_limit = 104857600
root@mail:~# postconf -d | grep message_size_limit
message_size_limit = 10240000
root@mail:~# postconf -e 'mailbox_size_limit = 104857600'
root@mail:~# systemctl restart postfix

And all works!

Please close topic!