Re: Mail delivery times: SASL vs permit_mynetwork

2020-09-01 Thread Viktor Dukhovni
On Tue, Sep 01, 2020 at 02:30:05PM +0200, Stephan Seitz wrote: > I try to understand different mail delivery times. Sure, that's a quantitative analysis, and doing requires looking in detail at the delivery latencies in the logs of both client and server. To get help with this, you'll need to pos

Re: Mail delivery times: SASL vs permit_mynetwork

2020-09-01 Thread Stephan Seitz
On Di, Sep 01, 2020 at 12:59:05 -0400, Bill Cole wrote: Did you test by changing the value of $mynetworks and using the same source machine or are the SASL and $mynetworks sources physically different machines? No, of course it was the same machine. I’m very sorry, I thought that would be obv

Re: Mail delivery times: SASL vs permit_mynetwork

2020-09-01 Thread Bill Cole
On 1 Sep 2020, at 8:30, Stephan Seitz wrote: Hello! I try to understand different mail delivery times. I have a script (phpmailer) that sends 500 mails to a remote mail server. The target address is a local /dev/null mailbox. The script uses SMTPKeepAlive = true; to keep the connection open

Re: Mail delivery times: SASL vs permit_mynetwork

2020-09-01 Thread Wietse Venema
Stephan Seitz: > On Di, Sep 01, 2020 at 09:27:03 -0400, Wietse Venema wrote: > >Stephan Seitz: > >> If my client IP is part of mynetworks the time for 500 mails is about > >> 29 seconds. > >That's 5.8ms per delivery. > > > >> If [not in mynetworks] the time is about 47 seconds. > >That's 9.4ms per

Re: Mail delivery times: SASL vs permit_mynetwork

2020-09-01 Thread Stephan Seitz
On Di, Sep 01, 2020 at 07:46:26 -0600, @lbutlr wrote: Do you control the target server? If not, then you have no idea what Yes, I do control the server. This is a simple setup, no spamfilter or such things. And yes, besides the fact that in one case the sasl user is logged there aren’t any ot

Re: Mail delivery times: SASL vs permit_mynetwork

2020-09-01 Thread @lbutlr
On 01 Sep 2020, at 07:37, Stephan Seitz wrote: > On Di, Sep 01, 2020 at 07:18:44 -0600, @lbutlr wrote: >> It could be as simple as the remote severing taking very slightly longer to >> process for reasons on its end (slower lookup into its tables from the >> secure ports, for example). > > I us

Re: Mail delivery times: SASL vs permit_mynetwork

2020-09-01 Thread Stephan Seitz
On Di, Sep 01, 2020 at 07:18:44 -0600, @lbutlr wrote: It could be as simple as the remote severing taking very slightly longer to process for reasons on its end (slower lookup into its tables from the secure ports, for example). I used port 25 for both tests, so that I could hope to avoid diff

Re: Mail delivery times: SASL vs permit_mynetwork

2020-09-01 Thread Stephan Seitz
On Di, Sep 01, 2020 at 09:27:03 -0400, Wietse Venema wrote: Stephan Seitz: If my client IP is part of mynetworks the time for 500 mails is about 29 seconds. That's 5.8ms per delivery. If [not in mynetworks] the time is about 47 seconds. That's 9.4ms per delivery. Looks like your network roun

Re: Mail delivery times: SASL vs permit_mynetwork

2020-09-01 Thread Wietse Venema
Stephan Seitz: > Hello! > > I try to understand different mail delivery times. > > I have a script (phpmailer) that sends 500 mails to a remote mail server. > The target address is a local /dev/null mailbox. The script uses > SMTPKeepAlive = true; to keep the connection open. > > If my client

Re: Mail delivery times: SASL vs permit_mynetwork

2020-09-01 Thread @lbutlr
On 01 Sep 2020, at 06:30, Stephan Seitz wrote: > So I’m wondering why I have such a big time difference. You would have to look deeper at the logs and see where the delay is being introduced. This might be hard as it is 3/10th of a second per message. It could be as simple as the remote severin

Mail delivery times: SASL vs permit_mynetwork

2020-09-01 Thread Stephan Seitz
Hello! I try to understand different mail delivery times. I have a script (phpmailer) that sends 500 mails to a remote mail server. The target address is a local /dev/null mailbox. The script uses SMTPKeepAlive = true; to keep the connection open. If my client IP is part of mynetworks the t