Hi,

I have deployed postfix as an incoming mail receiving server.

On this I have a custom mail filter (based on jilter api):

My 'main.cf' file for milter settings is as follows:

#Milter support for smtpd mail
smtpd_milters =
  inet:localhost:10026, # dkim milter
  inet:localhost:10027, # sid milter
  inet:localhost:10028  # custom java milter

# Milters for non-SMTP mail.
non_smtpd_milters = 
  inet:localhost:10026, # dkim milter
  inet:localhost:10027, # sid milter
  inet:localhost:10028  # custom java milter

milter_default_action = reject

# Postfix . 2.6
#milter_protocol = 6
# 2.3 . Postfix . 2.5
milter_protocol = 2

Now following are my queries:

1. Is it expected and in accord with milter protocol to reuse the same 
connection i.e. should postfix communicate with milter over same single 
connection?

2. If the above is correct how can I  disable that?

3. Does postfix caches the connections with milters?

The above questions arises on the following observation: 

"Intermittently if multiple email are sent where 'from' and 'to' headers are 
unchanged. 

What is observed is , new connection with Milter is not created for 2 emails. 

Infact both the emails having different messageID are sent on same connection. 
Although even one may be the reply of the other."

Thanks in advance
Ashish Sharma

Reply via email to