Re: any api to read logs ?

2018-10-04 Thread Bennett Todd
If I were to depart from the unstructured text syslog format, I'd shift to CSV; with a reasonable choice of quoting rules it can robustly round-trip a lot of tabular data, and very fast writers and parsers are available. I, personally, wouldn't find a more complex structure that easily represents h

Re: How to log output from whatever pipe runs ?

2016-03-31 Thread Bennett Todd
How about running a logging wrapper script, instead. Rather than invoking the maildrop executable, invoke a script, perhaps something like #!/bin/sh exec >/tmp/maildrop.log 2>&1 echo $0 "$@" set -x printenv maildrop ...

Re: SMTP scanning server pool

2014-12-18 Thread Bennett Todd
The design sounds familiar. I've a couple of little thoughts, neither specific to your design sketch. Maintaining perfectly consistent distributed configuration without any risk of race conditions is hard; I try to design away from that requirement. So, for instance, I've avoided having serve

RE: Milter to block registrars

2014-05-27 Thread Bennett Todd
Given the situation, perhaps you could set up a resolver that blocks, or that's behind a packet filter that blocks, the IPs of the name servers they're using. That would catch it at the NS lookup, and would be no extra traffic, unlike whois.

Re: Milter to block registrars

2014-05-27 Thread Bennett Todd
Two thoughts. I've received legitimate email from a registrar where I was listed as a contact for a domain. If no one uses an email address in your domain to register, that's not a problem. And second, whois is the way I query to find out about a domain, answers to questions like who registe

Re: Public free (libre) mailbox hosting service for everybody!

2013-02-27 Thread Bennett Todd
The operational cost is non-zero. Besides hardware, which must include backups, and enough physical diversity to offer availability, an email server is an attractive nuisance; spammers and other criminals constantly attempt sabotage and burglary, and it takes ongoing manpower to attempt to hold the

Re: Relay to alternate relayhost if recipients MX servers resolves to a cerrtain network range

2012-05-16 Thread Bennett Todd
Probably many ways to do it. My first try would be a map, I'm inordinately fond of cdb, with the what, 8192 IPs in it? Create it with a little perl -e print for 1..8192 and so forth.

Re: Detecting non 7bit headers

2011-10-29 Thread Bennett Todd
I'm an unapologetic ASCII bigot, at least in this space. It isn't just smartphones, it's been years since folks found unicode homographs (?), code points off in the weeds that look similar to ASCII characters, and started registering internationalized domain names (IDNs) for links to fool people in