1

Topic: Amavisd clears the message, but it's never sent

IRedMail v0.9.4
Deployed via downloadable installer
CentOS 7 (3.10.0-957.12.1.el7.x86_64)
LDAP, Nginx, no iRedAdmin-Pro

Each day an individual email is being sent to each subscriber by our web system. Lately we have noticed that many subscribers do not receive their emails. In /var/log/maillog I can see their emails mentioned in lines like this:

Nov 26 05:19:57 mx amavis[8576]: (08576-07) Passed CLEAN {RelayedOutbound}, ORIGINATING LOCAL [103.25.58.127]:39698 [103.25.58.127] <sender@ourdomain.com> -> <recepient@email.address>, Queue-ID: 4AD6D5FD78, Message-ID:<18b84dfc628e36127641ff37cd35e064@ourdomain.com>, mail_id: K0eo8TdnNAuo, Hits: -, size: 12323, queued_as: 8E7E25FD07, dkim_new=dkim:ourdomain.com, 193 ms

But there is never a consequent line from postfix like
Nov 26 05:19:58 mx postfix/smtp[8572]: 8C5BE5FD74: to=<someone@somewhere.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.28, delays=0.09/0/0/0.19, 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 C2CD05FDA0)

This occurs with random recipients, it is not consistent from day to day. Not long ago we were experiencing big delays with amavisd, and I have disabled both spam and anti-virus check for local originating emails. Other than that nothing was changed in the configuration that seems to have worked well for many years. Restarting the postfix and amavisd did not help.

I will be most grateful for any advice!

----

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

2

Re: Amavisd clears the message, but it's never sent

Please paste full original Postfix log lines of this email, so that we can help troubleshoot.

3

Re: Amavisd clears the message, but it's never sent

Hello and thank you for replying so quickly!

There are no postfix lines in the log, that's the problem. The only line I have in maillog that mentions the recipient's email is from Amavid, and I have already posted it in the original message (I've changed the actual addresses for privacy).

Majority of emails are going out normally, and have several lines from postfix in the log as usual. But these problematic emails have no lines from postfix, only one line from Amavisd, like the one I have posted. They get "lost" somehow.

This issue is not related to the recipient's email address, because other days the same address gets the email delivered, and has related postifx lines in the log.

4

Re: Amavisd clears the message, but it's never sent

Email is received by Postfix first, then handed over to Amavisd, then handed over back to Postfix.
There must be some Postfix log lines before amavisd logs it.

5 (edited by mb1024 2020-12-11 18:52:43)

Re: Amavisd clears the message, but it's never sent

Indeed I found some lines preceding the amavisd, they do not mention the recipient's email, but they have the same Queue-ID.

Nov 23 05:16:30 mx postfix/submission/smtpd[30940]: 0074C7B9AC: client=ourdomain.com[103.25.58.127], sasl_method=LOGIN, sasl_username=sender@ourdomain.com
Nov 23 05:16:30 mx postfix/cleanup[30901]: 0074C7B9AC: message-id=<abbe1dbe9fe6b5f8253aaefb560a88de@ourdomain.com>
Nov 23 05:16:30 mx postfix/qmgr[24680]: 0074C7B9AC: from=<984e8493beb7f2f40c3e3653def01f66@ourdomain.com>, size=10753, nrcpt=1 (queue active)
N

Hope that helps!

6

Re: Amavisd clears the message, but it's never sent

No error in pasted log lines.
Cannot help much without full + original Postfix log lines. Not the filtered lines please.

7

Re: Amavisd clears the message, but it's never sent

You already have full + original Postfix log lines. There are no errors. The only thing that is filtered is our domain name and recipient's email address.

8

Re: Amavisd clears the message, but it's never sent

"Full + original Postfix log lines" means log starts from connection and ends with disconnection. The pasted lines are definitely not "full + original". Cannot help without log.

9

Re: Amavisd clears the message, but it's never sent

I have prepared a masked log, where actual emails are obfuscated, right from the /var/log for a few days in November. It is 100Mb unpacked, you can download it at https://we.tl/t-KoAEkcb62n

The mass mailing occurs at about 5am, and one of the problematic recipients (the one I am talking about in this thread) is email11362@somedomain.com - but there are others too.

I can send more logs in a similar fashion if required, just let me know.

Thank you

10

Re: Amavisd clears the message, but it's never sent

I need you to extract related log lines and paste here, not bury me with a big log file and ask me to figure it out myself... i have no interest and no time to do this...

11

Re: Amavisd clears the message, but it's never sent

I send you selected log lines - you say it's not enough, and you want a full log. I send you you full log - and you say you have "no interest" in it. What do you suggest with that, that I have to pay you to make you interested? That's fine by me, but I only pay for results. Give me an estimate for fixing this glitch, and I'll consider it. But I'm not going to pay you just to look into my log.

12

Re: Amavisd clears the message, but it's never sent

mb1024 wrote:

Nov 23 05:16:30 mx postfix/submission/smtpd[30940]: 0074C7B9AC: client=ourdomain.com[103.25.58.127], sasl_method=LOGIN, sasl_username=sender@ourdomain.com
Nov 23 05:16:30 mx postfix/cleanup[30901]: 0074C7B9AC: message-id=<abbe1dbe9fe6b5f8253aaefb560a88de@ourdomain.com>
Nov 23 05:16:30 mx postfix/qmgr[24680]: 0074C7B9AC: from=<984e8493beb7f2f40c3e3653def01f66@ourdomain.com>, size=10753, nrcpt=1 (queue active)
N

Full + original log lines means starting from smtp connection, ends with disconnection, and not filtered with "grep".

Check above log lines, it's filtered.

mb1024 wrote:

I send you selected log lines - you say it's not enough, and you want a full log. I send you you full log - and you say you have "no interest" in it. What do you suggest with that, that I have to pay you to make you interested? That's fine by me, but I only pay for results. Give me an estimate for fixing this glitch, and I'll consider it. But I'm not going to pay you just to look into my log.

Helping for free takes my time, so if you can just extract related log lines, i can quickly check and help troubleshoot. But sending me a 100MB log file and ask me to check line by line, it costs me too much time. Please show me some mercy. I already helped other users in this forum for free for years, i don't push anyone to buy our support ticket, just save me some time please.