Roman Gelfand:
> We have a program which every so often sends a request, using chilkat,
> to postfix to send out email with attachment.  With every send it has
> to connect to postfix using sasl authentication.  Each send appears to
> take a long time.  In the absence of more detailed information, I am
> guessing the connection is taking most of the time.
>
> How can I determine the client connection speed?

You *could* start with the time stamps in the Postfix maillog file.

For example:

Sep 12 00:10:57 spike postfix/smtpd[69741]: connect from 
some.example.com[1.2.3.4]
Sep 12 00:10:58 spike postfix/smtpd[69741]: 3cb63Q2c6Zzjymk: 
client=some.example.com[1.2.3.4]
Sep 12 00:10:58 spike postfix/cleanup[69745]: 3cb63Q2c6Zzjymk: 
message-id=<gibber...@another.example.com>

The first time stamp is logged after Postfix has looked up the
client hostname, after it has verified that the hostname resolves
to the client IP address, and before it logs the "220" server
greeting.

If your Postfix is mis-configured then this first line will be
logged 5-10 seconds after the client makes the TCP connection.

You can determine if this is a problem by making a telnet connection
(telnet server 25) from the system that runs chilkat. You should
see the "220" server greeting immediately.

The second time stamp is logged when Postfix accepts the first
recipient address.

The third time stamp is logged after the DATA command.

        Wietse

Reply via email to