How can I optimize sendmail for use with JavaMail-based programs?

John Zukowski

According to Joseph Shraibman on the JAVAMAIL-INTEREST mailing list:

JavaMail checks if the connection is good by sending a NOOP command. It does this before sending each mail message. The problem is that after 19 NOOPs sendmail starts slowing down. To fix this (if you control the mail server) is to set MAXNOOPCOMMANDS to 0 in sendmail/srvrsmtp.c and recompile sendmail. If you don't control the server you have to count how many messages you send and reconnect after 19 of them.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact