Postfix, milter before queue und der reject

Klaus Tachtler klaus at tachtler.net
Mo Feb 21 06:03:23 CET 2022


Hallo Sebastian,

Du kannst auch "nur" den MILTER definieren und alles was Du nicht explizit setzt, bleibt auf "Standard".

Ich habe z.B. den AMaViS wie folgt angebunden (Beispiel mit IP/Port, anstelle wie Du, via Socket)

https://dokuwiki.tachtler.net/doku.php?id=tachtler:postfix_centos_7_-_amavis_anbinden_amavisd-milter

Zur Information:
----------------

**milter_default_action (default: tempfail)**

/The default action when a Milter (mail filter) response is unavailable (for example, bad Postfix configuration or Milter failure). Specify one of the following:/

/*accept*/
//Proceed as if the mail filter was not present.//

/*reject*/
//Reject all further commands in this session with a permanent status code.//

/*tempfail*/
//Reject all further commands in this session with a temporary status code.//

/*quarantine*/
//Like "accept", but freeze the message in the "////hold" queue[http://www.postfix.org/QSHAPE_README.html#hold_queue]////. Available with Postfix 2.6 and later.//

/This feature is available in Postfix 2.3 and later./


Grüße
Klaus.

-- 
Diese Nachricht wurde von meinem Android-Gerät mit FairMail gesendet.


Von: sebastian at debianfan.de
An: postfixbuch-users at listen.jpberlin.de
Datum: 21.02.2022 05:54:36
Betreff: Re: Postfix, milter before queue und der reject

> Moin,
> 
> # postconf | grep version
> mail_version = 3.5.6
> 
> 
> Dann wäre "= reject" hier die Lösung?
> 
> gruß
> 
> Sebastian
> 
> 
> Am 21.02.2022 um 04:12 schrieb Klaus Tachtler:
>> Hallo Sebastian,
>> ja, Dein
>>> milter_default_action = accept
>> ist das Problem:
>> The milter_default_action[http://www.postfix.org/postconf.5.html#milter_default_action] parameter specifies how Postfix handles Milter application errors. The default action is to respond with a temporary error status, so that the client will try again later.
>> Specify "accept" if you want to receive mail as if the filter does not exist, and "reject" to reject mail with a permanent status.
>> The "quarantine" action is like "accept" but freezes the message in the "hold" queue[http://www.postfix.org/QSHAPE_README.html#hold_queue], and is available with Postfix 2.6 or later.
>> /etc/postfix/main.cf[http://www.postfix.org/postconf.5.html]:
>>     # What to do in case of errors? Specify accept, reject, tempfail,
>>     # or quarantine (Postfix 2.6 or later).
>>     milter_default_action[http://www.postfix.org/postconf.5.html#milter_default_action] = tempfail
>> See "Different settings for different Milter applications[http://www.postfix.org/MILTER_README.html#per-milter]" for advanced configuration options.
>> 
>> Grüße
>> Klaus.
>> 

-- 

---------------------------------------
e-Mail  : klaus at tachtler.net
Homepage: https://www.tachtler.net
DokuWiki: https://dokuwiki.tachtler.net
---------------------------------------



Mehr Informationen über die Mailingliste Postfixbuch-users