Notifications for quarantined messages not sent

Patrick Ben Koetter p at sys4.de
Fri Aug 14 20:58:54 CEST 2015


* Bruno Santoni <brunosantoni at evoltek.com.ar>:
> Hi,
> 
> I have installed amavis with postfix, spamassassin, clamav and I am trying
> to configure self-service message release with modoboa.
> 
> I have almost everything up and running. What I cannot get to work is the
> quarantine notification to recipients, with the needed credentials for the
> release.
> 
> I am running amavisd-new 2.7.1 on Ubuntu 14.04.
> Both spam and AV filters work fine and items get quarantined in mysql.
> 
> I don see any attempt to send the notification on the logs. The logs for a
> quarantined message look simply like this:
> 
> Aug 13 17:30:10 mail postfix/smtpd[29763]: connect from localhost[::1]
> Aug 13 17:31:04 mail postfix/smtpd[29763]: B4CEF79F5: client=localhost[::1]
> Aug 13 17:31:25 mail postfix/cleanup[29769]: B4CEF79F5: message-id=<
> 20150813213104.B4CEF79F5 at mail.bs-evoltek.net>
> Aug 13 17:31:25 mail postfix/qmgr[28597]: B4CEF79F5: from=<scammer at junk.org>,
> size=356, nrcpt=1 (queue active)
> Aug 13 17:31:25 mail amavis[29760]: (29760-01) Blocked SPAM
> {DiscardedOutbound,Quarantined}, LOCAL [::1]:42152 [::1] <scammer at junk.org>
> -> <bruno at localhost>, quarantine: Y8MQz66YAh6X, Queue-ID: B4CEF79F5,
> Message-ID: <20150813213104.B4CEF79F5 at mail.bs-evoltek.net>, mail_id:
> Y8MQz66YAh6X, Hits: -, size: 356, 390 ms
> Aug 13 17:31:25 mail postfix/smtp[29770]: B4CEF79F5: to=<bruno at localhost>,
> relay=127.0.0.1[127.0.0.1]:10024, delay=41, delays=41/0.03/0.05/0.38,
> dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=29760-01 - spam)
> Aug 13 17:31:25 mail postfix/qmgr[28597]: B4CEF79F5: removed
> Aug 13 17:31:27 mail postfix/smtpd[29763]: disconnect from localhost[::1]
> 
> In the conf files I have the following:
> 
> $warnbannedrecip = 1;
> $warnvirusrecip = 1;
> $notify_method  = 'smtp:[127.0.0.1]:10025';
> $forward_method = undef; (I have also tried with the same methos as for
> notify)
> $mailfrom_notify_admin = "virusalert\@$mydomain";
> $virus_admin = "virus\@$mydomain";
> 
> (I have tried $notify_method with sendmail with the same results)

The setup itself looks fine. You are sending a message to bruno at localhost. Is
localhost in @mydomains? If not, amavis will consider it a remote destination
and it will not send a notification because it would notify an outstanding
party. (This COULD be overruled setting $warn_offsite=0, but you don't want
that).

p at rick


-- 
[*] sys4 AG
 
https://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München
 
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein
 


More information about the amavis-users mailing list