Hi,

I have an authenticated SMTP, based on postfix 2.9.6 from debian repository with spamass-milter (for reduce outbound spam) and milter-greylist (for rate limit) and Dovecot SASL for users backend. It works perfectly.

I wrote a simple "parser" for postfix logs, when an user send spam I can block his account and notified to him the abuse:

This is the log where the spamass-milter block the messagge:

Jan 20 15:13:43 smtp-container postfix/cleanup[16784]: 3f7FGt5y0yz1Px8: milter-reject: END-OF-MESSAGE from 1-2-3-4.v4.it[1.2.3.4]: 5.7.1 Blocked by SpamAssassin; from=<ales...@mydomain.com> to=<ales...@mydomain.com> proto=ESMTP helo=<[192.168.5.104]>

thanks to the queue id (3f7FGt5y0yz1Px8) I can identify the sasl_username that send the message.

But when it is milter-greylist to block the message the log is different:

Jan 20 16:43:49 smtp-container postfix/smtp/smtpd[18383]: NOQUEUE: milter-reject: RCPT from 1-2-3-4.v4.it[1.2.3.4]: 451 4.7.1 Message quota exceeded; from=<ales...@mydomain.com> to=<ales...@mydomain.com> proto=ESMTP helo=<[192.168.5.104]>

As you can see there isn't any queue id, the messagge is reject before being placed in the queue and in the log there isn't any information about the sender username (necessary to my parser).

Is possibile to configure/force also "milter-greylist" to block the messagge (milter-reject) at the "postfix/cleanup" stage via postfix configuration?

All others milter I've tried block the message at "cleanup" level, all excpect milter-greylist.

Thanks
--
Alessio Cecchi is:
@ ILS -> http://www.linux.it/~alessice/
on LinkedIn -> http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz
Cloud Email Hosting -> http://www.qboxmail.com
@ PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it

Reply via email to