Purushotham Nayak:
> Hi All,
>
> I have a question about the correct way to restart a milter application.
>
> I'm using postfix 2.6.6 with a milter application that was built using
> sendmail's libmilter (8.14.7). The problem I'm having is when I need to
> restart the milter application (due to a config change for example), I send
> it a SIGTERM and then start it up again.
>
> However, an smtpd instance that was running which was already connected to
> milter will not try to connect to the milter after the milter has been
> restarted.
When the milter process is stopped, it loses state of the sessions
that were in progress.
Postfix does not connect to a milter in the middle of an SMTP
session, because libmilter has to be able to see all stages of the
protocol.
> Is there a way to get smtpd to send tempfail to client when milter
> is not there
I would expect that Postfix does that by default.
> But once the milter starts up and is listening again smtpd reconnects
> and starts sending data to the milter.
No, see above.
Wietse