Re: mynetworks equivalent for sender address

2020-09-01 Thread Viktor Dukhovni
On Mon, Aug 31, 2020 at 09:51:42AM +0100, dave wrote: > Maybe I need to clarify a few things. My email server is not in my home > network. My raspberry is, and it gets random IPs as sometimes it has to > go through a VPN to the internet. > > Mail to my own domains is not permitted by default. T

Re: mynetworks equivalent for sender address

2020-09-01 Thread dave
Thanks Viktor, that looks good. regards Dave On 01/09/2020 08:38, Viktor Dukhovni wrote: On Mon, Aug 31, 2020 at 09:51:42AM +0100, dave wrote: Maybe I need to clarify a few things. My email server is not in my home network. My raspberry is, and it gets random IPs as sometimes it has to go th

Re: Checking from-addresses on outbound mail

2020-09-01 Thread Nick
On 2020-08-30 22:33 BST, Wietse Venema wrote: > Well almost: it needs a custom SMTP client to avoid loop detection. > > /etc/postfix/master.cf: > pickup unix .. .. .. .. .. pickup > -o { content_filter = local-smtp:[localhost]:25 } > > local-smtp unix .. .. .. .. .. smtp >

Re: Postfix stable release 3.5.7 and legacy release 3.4.17

2020-09-01 Thread @lbutlr
On 31 Aug 2020, at 07:34, Wietse Venema wrote: > [An on-line version of this announcement will be available at > http://www.postfix.org/announcements/postfix-3.5.7.html] Is there a what's new/changelog document for this version or is it mostly just incremental improvements on 3.5.6 and I should

Re: Postfix stable release 3.5.7 and legacy release 3.4.17

2020-09-01 Thread Wietse Venema
@lbutlr: > On 31 Aug 2020, at 07:34, Wietse Venema wrote: > > [An on-line version of this announcement will be available at > > http://www.postfix.org/announcements/postfix-3.5.7.html] > > Is there a what's new/changelog document for this version or is it = > mostly just incremental improvements

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

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

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: Postfix stable release 3.5.7 and legacy release 3.4.17

2020-09-01 Thread Wietse Venema
Wietse Venema: > @lbutlr: > > On 31 Aug 2020, at 07:34, Wietse Venema wrote: > > > [An on-line version of this announcement will be available at > > > http://www.postfix.org/announcements/postfix-3.5.7.html] > > > > Is there a what's new/changelog document for this version or is it = > > mostly j

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 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 @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: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 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: Postfix send only server

2020-09-01 Thread Wietse Venema
Souji Thenria: > Hi, > > is there a way to set up a postfix send-only server, and still be > able to connect from the out side to it? Connect to a Postfix SMTP server and do what: send email to it? Yes, that is possible. There are many ways to limit which clients can send email to a Postfix SMTP

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 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 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: Postfix send only server

2020-09-01 Thread Viktor Dukhovni
On Tue, Sep 01, 2020 at 04:39:48PM +0200, Souji Thenria wrote: > To be more detailed: > In my case I have two servers, and I want one to recieve mails and the > other should only send mails. So I installed postfix on both servers > and dovecot on the one which should be able to recieve the mails.

Postfix send only server

2020-09-01 Thread Souji Thenria
Hi, is there a way to set up a postfix send-only server, and still be able to connect from the out side to it? When I serched this topic all I found was setting the "inet_interfaces = loopback-only", but than I would only be able to send mails from the localhost (the postfix server it self). T

Re: Checking from-addresses on outbound mail

2020-09-01 Thread Viktor Dukhovni
On Tue, Sep 01, 2020 at 12:28:33PM +0100, Nick wrote: > On 2020-08-30 22:33 BST, Wietse Venema wrote: > > Well almost: it needs a custom SMTP client to avoid loop detection. > > > > /etc/postfix/master.cf: > > pickup unix .. .. .. .. .. pickup > > -o { content_filter = local-smtp:[lo

Re: Checking from-addresses on outbound mail

2020-09-01 Thread Viktor Dukhovni
On Tue, Sep 01, 2020 at 02:45:50PM -0400, Viktor Dukhovni wrote: > > smtp-sndmail > > unix - - y - - smtp > >-o { inet_interfaces = } > >-o { myhostname = smtp-sndmail } > >-o { bounce_service_name = bounce-discard } > > Setting the bounce servi

Re: Checking from-addresses on outbound mail

2020-09-01 Thread Nick
On 2020-09-01 19:45 BST, Viktor Dukhovni wrote: > I hope you also saw my note re various legitimate use-cases for > "unexpected" "From:" addresses in local submission. I did, thank you. I don't think those cases apply to me (no vacation replies and no forwarding here). > > smtp-sndmail > >

Re: Checking from-addresses on outbound mail

2020-09-01 Thread Wietse Venema
Viktor Dukhovni: > On Tue, Sep 01, 2020 at 02:45:50PM -0400, Viktor Dukhovni wrote: > > > > smtp-sndmail > > > unix - - y - - smtp > > >-o { inet_interfaces = } > > >-o { myhostname = smtp-sndmail } > > >-o { bounce_service_name = bounce-discard

Re: Checking from-addresses on outbound mail

2020-09-01 Thread Viktor Dukhovni
On Tue, Sep 01, 2020 at 08:59:19PM +0100, Nick wrote: > > See above, this does not work. > > (I've since removed '-o bounce_service_name=...', it doesn't seem to > matter here.) Again, it works well enough for me - a mail with a forged > header-from goes into the hold queue and nowhere else. It

Re: Checking from-addresses on outbound mail

2020-09-01 Thread Viktor Dukhovni
On Tue, Sep 01, 2020 at 05:22:30PM -0400, Wietse Venema wrote: > > FWIW, the following is not explained as clearly in the Postfix > > documentation as one might wish, and it would be good to have better > > coverage of this topic in the docs (in the appropriate places): > > > > - What is a de

Re: can not send mail was Postfix users not listening ...

2020-09-01 Thread Doug Denault
On Mon, 31 Aug 2020, Noel Jones wrote: Staring at postconf (or somewhat easier, postconf -n) output is unlikely to fix this without clues in the log of what the problem is. Start here: http://www.postfix.org/DEBUG_README.html#logging If you need more help from us: http://www.postfix.org/DEBUG