Re: milter library for PHP (libMilterPHP)

2022-12-13 Thread Mehmet Avcioglu
Looks great. I'll definitely give it a try. Just a small initial feedback; I am a big fan of PSR4 and PSR12, they make PHP look cool :) -- Mehmet On Tue, Dec 13, 2022 at 1:02 PM wrote: > > Hey everyone, > > I wrote a milter library for PHP, because I wanted to create a bunch of > different

Re: milter library for PHP (libMilterPHP)

2022-12-13 Thread Wietse Venema
Mehmet Avcioglu: > Looks great. I'll definitely give it a try. > > Just a small initial feedback; I am a big fan of PSR4 and PSR12, they > make PHP look cool :) Also, it does not have this week's Sendmail::PMilter bug. It does not reply to SMFIC_ABORT (the user would have to write a handler that

milter library for PHP (libMilterPHP)

2022-12-13 Thread mailmary
Hey everyone, I wrote a milter library for PHP, because I wanted to create a bunch of different milter filters in PHP. I thought maybe others would be interested as well, so I published the library here: https://gitlab.com/noumenia/libmilterphp It supports all of milter protocol version 2.

Re: milter library for PHP (libMilterPHP)

2022-12-13 Thread Jean-François Bachelet
Hello ^^) Le 13/12/2022 à 21:03, mailm...@ionos.gr a écrit : I try to match my coding style to PSR12, so I used PSR12 as a base with 5-6 modifications. There are some things that I haven't tested as much as I want to, for example I haven't found a way to simulate pipelining from postfix.

Re: milter library for PHP (libMilterPHP)

2022-12-13 Thread Wietse Venema
Wietse Venema: > mailm...@ionos.gr: > > > > I try to match my coding style to PSR12, so I used PSR12 as a base > > with 5-6 modifications. > > > > There are some things that I haven't tested as much as I want to, > > for example I haven't found a way to simulate pipelining from > > postfix. > > >

Re: milter library for PHP (libMilterPHP)

2022-12-13 Thread mailmary
Thank you for those links, I'll take a look. On Tue, 13 Dec 2022 15:44:26 -0500 (EST) Wietse Venema wrote: > Wietse Venema: > > When I implemented Postfix Milter protocol support, I followed the > > file milter-protocol.txt (for protocol verion 2). > > > > For newer protocol versions I

Re: milter library for PHP (libMilterPHP)

2022-12-13 Thread Wietse Venema
mailm...@ionos.gr: > > I try to match my coding style to PSR12, so I used PSR12 as a base > with 5-6 modifications. > > There are some things that I haven't tested as much as I want to, > for example I haven't found a way to simulate pipelining from > postfix. > > It is sad that there is no real

Re: Postfix ,ldap with multiple domains.

2022-12-13 Thread Viktor Dukhovni
> On 13 Dec 2022, at 10:01 pm, luckydog xf wrote: > > Hello, Thanks. > Please ignore LDAP here. Whatever attribute names they are, it's just a > sample here. > I read the link ldap_table-5. > > The problem is that there is no way to return one value of an attribute based > on the user's

mynetworks_style -> subnet within containers

2022-12-13 Thread Sam
Hello postfix experts: So today I finished my initial setup of docker with different containers running different email services. There's a container for postfix, one for dovecot, one for fetchmail, one for postfixadmin, etc. The networking is basically bridged from every container to the

Re: Postfix ,ldap with multiple domains.

2022-12-13 Thread luckydog xf
Hello, Thanks. Please ignore LDAP here. Whatever attribute names they are, it's just a sample here. I read the link ldap_table-5. The problem is that there is no way to return one value of an attribute based on the user's input domain. Because of configuration item result_attribute =

Re: Postfix ,ldap with multiple domains.

2022-12-13 Thread luckydog xf
Please forgive my rush. It works. Here it is, use %[1-9]. --- bind = no version = 3 server_host = ldap://172.16.232.201:389 start_tls = no search_base = cn=users,cn=accounts,dc=ipa,dc=pthl,dc=hk scope = sub query_filter = (uid=%u) result_attribute = uid result_format = %u@%2.%1 On Wed, Dec

Re: Postfix ,ldap with multiple domains.

2022-12-13 Thread Viktor Dukhovni
On Wed, Dec 14, 2022 at 11:18:50AM +0800, luckydog xf wrote: > Please forgive my rush. It works. Here it is, use %[1-9]. Actually, your tests are incomplete. > server_host = ldap://172.16.232.201:389 > search_base = cn=users,cn=accounts,dc=ipa,dc=pthl,dc=hk > scope = sub > version = 3 > bind =

Re: Is there an easy way to "warm up" a new sending IP w/ Postfix

2022-12-13 Thread Sean Hennessey
Viktor and anyone else, I'd like your opinion on something I've come up with that seems to work in my test box. What I've done is set things up so that instead of % thresholds I'm using a count of sent email. I fully expect the counting to not be 100% accurate, off by a couple of tens or even

Re: milter library for PHP (libMilterPHP)

2022-12-13 Thread mailmary
I used the "milter-protocol.txt" file that I found everywhere. It is for protocol version 2 only. So I based my implementation on that. Later on, I used archive.org to download a copy of libmilter-docs.tar.gz. I expected the documentation to explain the differences between versions (eg going

Re: milter library for PHP (libMilterPHP)

2022-12-13 Thread mailmary
I try to match my coding style to PSR12, so I used PSR12 as a base with 5-6 modifications. There are some things that I haven't tested as much as I want to, for example I haven't found a way to simulate pipelining from postfix. It is sad that there is no real milter documentation, I did find

Re: milter - wrong ordering of responses on pipelining

2022-12-13 Thread lists+postfix
there is bug report for PMilter: https://rt.cpan.org/Ticket/Display.html?id=145263 On 2022.12.11. 15:10, Wietse Venema wrote: lists+post...@sad.lv: Hello ! I met an issue with milter when multiple messages pushed within single smtp session (using pipelining indeed): warning: milter