[Pymilter] How to send email even if pysrs has stopped

Roger Yerbanga roger.yerbanga at polymtl.ca
Fri Feb 21 13:42:39 EST 2020


Hi Stuart,

Thank you for the clue.
I will try it and if I get something interesting, I will let you know.

Regards.

Roger 

----- Mail original -----
De: "Stuart D. Gathman" <stuart at gathman.org>
À: "Roger Yerbanga" <roger.yerbanga at polymtl.ca>, "pymilter" <pymilter at gathman.org>
Envoyé: Vendredi 21 Février 2020 11:21:37
Objet: Re: [Pymilter] How to send email even if pysrs has stopped

On Fri, 2020-02-21 at 09:14 -0500, Roger Yerbanga wrote:
> 
> However, when I stop pysrs, and try to send email, they get rejected
> with " DSN: Service unavailable" :

Pysrs integrates with sendmail via the socketmap.  Sendmail does not
have a graceful degradation for failing socketmap that I know of.

There is an experimental srsmilter - but it has many limitations due to
the milter api not supporting all that is needed for SRS.  Depending on
your application, you might be able to use srsmilter - and sendmail can
be configured to return 4.x.x status for failing milters.

It's also possible that there is a sendmail configuration to return
4.x.x instead of 5.x.x for failing socketmap.  I would search for that
first.  If you find it, let us know so we can add that to docs for
pysrs - and make it the default if possible

<!DSPAM:170690F11B3798475737780>




More information about the Pymilter mailing list