Re: How to write a milter with access to carddav

2018-03-16 Thread Andre Rodier
On 16/03/2018 15:36, Michael Munger wrote: We've successfully written milters (Google pymilter) that check a MySQL database to accept inbound mails for anyone who is in this client's CRM system. Since the postfix box is a front-end to an Exchange server, the milter triggers a FILTER relay:192.168

Re: How to write a milter with access to carddav

2018-03-16 Thread Michael Munger
We've successfully written milters (Google pymilter) that check a MySQL database to accept inbound mails for anyone who is in this client's CRM system. Since the postfix box is a front-end to an Exchange server, the milter triggers a FILTER relay:192.168.x.x response to pass the email to Exchange w

Re: How to write a milter with access to carddav

2018-03-12 Thread André Rodier
Hello Bastian, Thanks for the advice, I will consider it. I am pretty sure to know how to do this. However, because the CardDav server is on the same host, I think it should not be an issue. I made a few tests, and the performances are even better than some anti-spam milters like SpamAssassi

Re: How to write a milter with access to carddav

2018-03-11 Thread Bastian Blank
On Fri, Mar 09, 2018 at 11:53:00AM +, André Rodier wrote: > I would like to know if there is any milter for postfix that would let > me query a CardDav server? Well, don't. Milter is latency sensitive and it will break mail delivery if you don't manage to get it right. If you use the correct

Re: How to write a milter with access to carddav

2018-03-11 Thread J Doe
Hi Andre, > On Mar 9, 2018, at 6:53 AM, André Rodier wrote: > > Hello, > > I would like to know if there is any milter for postfix that would let > me query a CardDav server? > > The idea is to add a custom header, for instance 'X-Address-Book: > Personal' if the from email address is referenc

Re: How to write a milter with access to carddav

2018-03-11 Thread Andre Rodier
On 10/03/2018 16:29, J Doe wrote: Hi Andre, On Mar 9, 2018, at 6:53 AM, André Rodier wrote: Hello, I would like to know if there is any milter for postfix that would let me query a CardDav server? The idea is to add a custom header, for instance 'X-Address-Book: Personal' if the from email

How to write a milter with access to carddav

2018-03-09 Thread André Rodier
Hello, I would like to know if there is any milter for postfix that would let me query a CardDav server? The idea is to add a custom header, for instance 'X-Address-Book: Personal' if the from email address is referenced in a personal carddav address book of the recipient. This will be used by a