1 (edited by tomi.mcleod 2018-04-18 05:17:23)

Topic: amavisd-release not delivering

- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: Debian 9
- 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.
====
root@mail:/etc/amavis/conf.d# amavisd-release qElPqoft1dgI
250 2.5.0 No recipients, nothing to do

The id exist in amavisd.quarantine, msgs, msgrcpt
thats what log said when i tried to release a quarantine email.

Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) Quarantined message release (miscategorized): qElPqoft1dgI <> -> , (excluded: <fran@asesxxxx.xx> )
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) Quarantine release qElPqoft1dgI: missing X-Envelope-From or Return-Path
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) header encoded (all-ASCII): Resent-From: "Content-filter at mail.materiaoscura.net" <postmaster@mail.materiaoscura.net>
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) header: Resent-From: "Content-filter at mail.materiaoscura.net"\n\t<postmaster@mail.materiaoscura.net>\n
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) header encoded (all-ASCII): Resent-To: undisclosed-recipients:;
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) header: Resent-To: undisclosed-recipients:;\n
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) header encoded (all-ASCII): Resent-Date: Tue, 17 Apr 2018 21:49:15 +0200 (CEST)
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) header: Resent-Date: Tue, 17 Apr 2018 21:49:15 +0200 (CEST)\n
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) header encoded (all-ASCII): Resent-Message-ID: <qElPqoft1dgI-XTzfOrvP6s6B@mail.materiaoscura.net>
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) header: Resent-Message-ID: <qElPqoft1dgI-XTzfOrvP6s6B@mail.materiaoscura.net>\n
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) header encoded (all-ASCII): Received: from unknown ([127.0.0.1])\n by mail.materiaoscura.net (mail.materiaoscura.net [127.0.0.1]) (amavisd-new, port 9998)\n id XTzfOrvP6s6B;\n Tue, 17 Apr 2018 21:49:15 +0200 (CEST)
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) header: Received: from unknown ([127.0.0.1])\n\tby mail.materiaoscura.net (mail.materiaoscura.net [127.0.0.1]) (amavisd-new, port 9998)\n\tid XTzfOrvP6s6B; Tue, 17 Apr 2018 21:49:15 +0200 (CEST)\n
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) dkim: candidate originators:
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) dkim: not signing, empty signing domain, From:
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) TempDir::DESTROY called
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) TempDir removal: empty tempdir is being removed: /var/lib/amavis/tmp/amavis-20180417T214915-08310-p6mRq4om
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) rmdir_recursively: /var/lib/amavis/tmp/amavis-20180417T214915-08310-p6mRq4om, excl=
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) size: 0, TIMING [total 9 ms] - got data: 0.0 (0%)0, mkdir tempdir: 0.9 (10%)10, sql-connect: 3.1 (35%)45, rmdir: 4.8 (53%)98, rundown: 0.1 (2%)100
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) switch_to_client_time 480 s, receiving AM.PDP data
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) get_deadline switch_to_my_time(end of AM.PDP session) - deadline in 480.0 s, set to 288.000 s
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) prolong_timer switch_to_my_time(end of AM.PDP session): timer 288, was 480, deadline in 480.0 s
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) exiting process_request
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) idle_proc, bye: was busy, 14.7 ms, total idle 0.000 s, busy 0.015 s
Apr 17 21:49:15 mail amavis[8310]: (rel-XTzfOrvP6s6B) load: 100 %, total idle 0.000 s, busy 0.015 s

----

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

2

Re: amavisd-release not delivering

Search "quar_type=" in this document:
https://amavis.org/README.protocol.txt

You need "quar_type=Q" if mail is quarantined in SQL db.

3 (edited by tomi.mcleod 2018-04-18 21:48:40)

Re: amavisd-release not delivering

its already setted in Q

MariaDB [amavisd]> select secret_id,quar_type,content from msgs where mail_id="oOXtw0N3edh2"
    -> ;
+--------------+-----------+---------+
| secret_id    | quar_type | content |
+--------------+-----------+---------+
| nuFe76AZhqTZ | Q         | S       |
+--------------+-----------+---------+
1 row in set (0.00 sec)

MariaDB [amavisd]>

root@mail:/home/tomi# ./amavisd-release oOXtw0N3edh2
> request=release
> mail_id=oOXtw0N3edh2
> quar_type=Q
> mail_file=oOXtw0N3edh2
waiting for response
< setreply=250 2.5.0 No recipients, nothing to do
250 2.5.0 No recipients, nothing to do


The quarantine header : X-Envelope-To-Blocked: is missing
How can i fix that?

4

Re: amavisd-release not delivering

Try to release with 'secret_id=nuFe76AZhqTZ'.

5 (edited by tomi.mcleod 2018-04-20 20:31:52)

Re: amavisd-release not delivering

Mnn I just tested a few more.
If spam_lovers is Y, users receive spam in junk folder but X-Envelope-To-Blocked is empty so i cant release them
If spam_lovers is N, users dont receive spam in spam folder but X-Envelope-To-Blocked is ok and i can release them with amavisd-release

Can i get both? deliver spam to junk folder keeping the header Envelope-To-Blocked ¿?.

6

Re: amavisd-release not delivering

What do you need this header "X-Envolope-To-Blocked"?