Thank you guys for all of your responses. The milter I'm using is the Arm Research Message Sniffer milter called SNFMilter. At this time, I don't think there is a way to configure this milter to return a specific bounce message.
On Fri, Mar 10, 2017 at 12:21 PM, Viktor Dukhovni < postfix-us...@dukhovni.org> wrote: > > > On Mar 10, 2017, at 12:22 PM, Jim Reid <j...@rfc1035.com> wrote: > > > > > >> On 10 Mar 2017, at 16:48, Linda Pagillo <lpad...@gmail.com> wrote: > >> > >> Also, is SMFIS_REJECT* even a file where I can configure a bounce > message or is it just a protocol which means "reject”. > > > > SMFIS_REJECT is a status/error code in the milter protocol. What some > milter application does when SMFIS_REJECT gets returned depends on that > milter. Consult its documentation or read the software's source code. You > might also find it helpful to read the milter documentation that is part of > sendmail distribution since that includes the source code for building > libmilter and its API which all milters depend on. > > > > If you’re looking for advice here about a specific milter, it would help > if you told the list which one you’re trying to configure. There’s bound to > be someone on this list who will already be using that milter. But if you > can’t/won’t say what that milter is, they won’t be able to guess that and > therefore offer specific advice on how to go about configuring it or > tailoring it to your needs. > > Instead of providing a boolean reject/accept verdict, a "polite" > milter can provide a complete SMTP [45]XXX response. From the > Postfix src/milter/milter8.c file: > > /* > * Decision: "ddd d.d+.d+ text". This decision is final (i.e. > * Sendmail 8 changes receiver state). Note: the reply may be > in > * multi-line SMTP format. > * > * XXX Sendmail compatibility: sendmail 8 uses the reply as a > format > * string; therefore any '%' characters in the reply are > doubled. > * Postfix doesn't use replies as format strings; we replace > '%%' > * by '%', and remove single (i.e. invalid) '%' characters. > */ > case SMFIR_REPLYCODE: > ... > > So the milter code in question would be constructing a REPLYCODE along the > lines of "550 5.7.1 ...". > > -- > Viktor. > >