Re: basic plugin help

2008-01-18 Thread Matt Sergeant
On 18-Jan-08, at 3:11 PM, Jared Johnson wrote: I've made a bit of progress though, I found /var/log/qpsmtpd/ qpsmtpd.log which has the following output: FATAL PLUGIN ERROR: Can't coerce GLOB to string in entersub at / usr/lib/perl/5.8/Data/Dumper.pm line 179. So perhaps Data::Dumper is

Re: plugin changes, 0.3x forkserver - 0.42 async

2008-01-18 Thread Matt Sergeant
On 18-Jan-08, at 3:34 PM, Brian Szymanski wrote: Thanks all for your responses. So, to be clear, moving to -async from -forkserver should be a performance win, even if the plugins stay as they are? Still depends what your plugins are, and what your mail profile is. If you're processing 200

Re: plugin changes, 0.3x forkserver - 0.42 async

2008-01-18 Thread Matt Sergeant
On 18-Jan-08, at 2:39 PM, Chris Lewis wrote: When we deploy, if the then-current spamd/clamd don't work at production volumes, we'll make those servers run forkserver, and leave the trap servers as async. Regarding that, I have a gearman setup at $work which works really well for running

Re: plugin changes, 0.3x forkserver - 0.42 async

2008-01-18 Thread Matt Sergeant
On 18-Jan-08, at 11:36 AM, Brian Szymanski wrote: If we want to migrate from 0.3x forkserver to 0.42 async, do we need to change our plugins at all? I seem to remember some discussion of this, but can't find it for the life of me... What kinds of things do plugins need to avoid in an

Re: plugin changes, 0.3x forkserver - 0.42 async

2008-01-18 Thread Matt Sergeant
On 18-Jan-08, at 12:52 PM, Guy Hulbert wrote: On Fri, 2008-01-18 at 12:19 -0500, Matt Sergeant wrote: What kinds of things do plugins need to avoid in an asynchronous world? Blocking. :-) Could you elaborate a little on this or provide a reference (link not biblio). Sure. Basically I

Re: basic plugin help

2008-01-18 Thread Matt Sergeant
On 18-Jan-08, at 2:49 PM, Jared Johnson wrote: Hi, I'm writing my first qp plugin, in order to write logs to our custom db when a message is queued. I first wrote a small routine to simply dump $self and $transaction in order to better understand the resources available for plugin

Re: queue/smtp-forward --- Does it queue when forward server is down?

2008-01-16 Thread Matt Sergeant
On 16-Jan-08, at 10:25 AM, Charlie Brady wrote: On Tue, 15 Jan 2008, Hanno Hecker wrote: There's no real queueing mechanism with the smtp-forward plugin, the mail will be rejected with a temporary error, which means the mail will stay in the client's queue and sent later again... well at

Re: queue/smtp-forward --- Does it queue when forward server is down?

2008-01-15 Thread Matt Sergeant
I think it sends a 4xx error back to the sender, which means they will queue it for resend at their end. I haven't tested this though. On 15-Jan-08, at 10:38 AM, David Bouw wrote: I installed qsmtpd last weekend to give it a try. I opted to install it on a different machine and used the

Re: poll server smtp session runs out of order?

2008-01-02 Thread Matt Sergeant
On 18-Dec-07, at 7:36 PM, David Sparks wrote: Hi, Has anyone noticed the poll server running out of order when under high load? I can connect to one of my qp servers and successfully do most of a smtp transaction before the banner even arrives. Session dump: # telnet 1.2.3.4 25 Trying

Re: poll server smtp session runs out of order?

2007-12-21 Thread Matt Sergeant
On 18-Dec-07, at 10:54 PM, Charlie Brady wrote: mail from:[EMAIL PROTECTED] rcpt to:[EMAIL PROTECTED] 250 mx1 Hi [4.3.2.1] [4.3.2.1]; I am so happy to meet you. ... 250 Queued! 220 220 mx ESMTP custom banner here; Ah, OK - I see what your point is. The banner appears to have been

Re: accessing client socket state from plugin?

2007-12-21 Thread Matt Sergeant
On 21-Dec-07, at 3:52 PM, [EMAIL PROTECTED] wrote: I'm currently developing a plugin which tries to connect back to the client in order to check if it is a real smtp server. Don't do that. There are good reasons why you might want to split sending and receiving servers. You could check

Re: Reload plugins without restarting qpsmtpd-forkserver?

2007-12-03 Thread Matt Sergeant
On 3-Dec-07, at 2:45 PM, Niklas Therning wrote: I'm writing a qpsmtpd plugin for our custom spam filter. The plugin reads a couple of custom configuration files at startup. The config files may change at any time and I would like my plugin to pick up those changes automatically. Now,

Re: qmail license change

2007-11-30 Thread Matt Sergeant
On 30-Nov-07, at 11:58 AM, Les Mikesell wrote: Is the license change on qmail likely to change the direction of qpsmtpd? Doubtful. Qpsmtpd wasn't written because of a dislike of the license. An interesting move though. Matt.

Re: CONTINUATIONS

2007-11-28 Thread Matt Sergeant
On 27-Nov-07, at 9:39 AM, [EMAIL PROTECTED] wrote: I've had a look at the webmail example and am not much the wiser. Could someone have a look at my plugin and give me a big kick in the right direction so I can make it use continuations please? OK, so in AxKit continuations are designed for

Re: AxKit::XSP::WebUtils::redirect causing (many) warnings in error_log

2007-11-27 Thread Matt Sergeant
On 27-Nov-07, at 11:35 AM, Martijn wrote: On Nov 26, 2007 7:45 PM, Lars Skjærlund [EMAIL PROTECTED] wrote: And if not (they're just warnings after all), how to stop them from clogging the error log file. (They occur, even though I've set Apache's LogLevel to 'error' - though if this is really

Re: Danga and watching other FDs

2007-11-27 Thread Matt Sergeant
On 27-Nov-07, at 8:03 AM, [EMAIL PROTECTED] wrote: 1) $bbref should be stored somewhere, but where? I presume in the notes of something. If this is correct, which notes and how do I get them? I suppose Ax2/Danga somehow maintains a list of watched fds along with a persitent data structure?

Re: Modification of non-creatable hash value attempted

2007-11-27 Thread Matt Sergeant
On 27-Nov-07, at 12:21 PM, Vince LaMonica wrote: } So at this level $r isn't in scope. At least not the proper AxKit $r. You need } to be in the main output stage of the XSP page for the right $r to be valid. Thanks for the help - it is much appreciated! The only issue is that this code

Re: _convert_to_ssl failures with async (Re: Hi, bug report/feature request)

2007-10-29 Thread Matt Sergeant
On 29-Oct-07, at 4:32 PM, Charlie Brady wrote: Is there any reason that $self-qp-sock couldn't be set to STDIN for non-async variants? Don't think there's any particular reason, no. Though I should note that the patch doesn't work :-) SSL with async is going to be really hard to implement

Re: _convert_to_ssl failures with async (Re: Hi, bug report/feature request)

2007-10-29 Thread Matt Sergeant
On 29-Oct-07, at 6:11 PM, Ask Bjørn Hansen wrote: On Oct 29, 2007, at 2:06 PM, Matt Sergeant wrote: Though I should note that the patch doesn't work :-) SSL with async is going to be really hard to implement (though doable). Why harder than it's been in perlbal / djabberd? No harder

Re: more reset_connection() and uninitialized values

2007-10-08 Thread Matt Sergeant
Hanno Hecker wrote: I can't test with -async, because Matt's last change involved some changes that's not available on CPAN (Event::Lib 1.03 does not have the dns export), reverting to the old ParaDNS works. Yeah, that was a bad commit. I'll try and revert it.

Re: For purposes of comparison

2007-10-04 Thread Matt Sergeant
On 3-Oct-07, at 9:45 PM, Tom Callahan wrote: I've been doing some performance analysis of a qpsmtpd instance I have set up. Using async with SPF,database-driven rcpt to checker,anglebrackets,logging/file,queue/smtp-forward can drop ~76msgs per second to invalid senders and deliver ~23

Re: Hi, bug report/feature request

2007-10-04 Thread Matt Sergeant
On 4-Oct-07, at 7:59 AM, Chris Lewis wrote: Sending here. Code shamelessly stolen from qpsmtpd-forkserver Thanks. Applied. __ This email has been scanned by the MessageLabs Email Security System. For more information please

Re: Hi, bug report/feature request

2007-10-04 Thread Matt Sergeant
On 4-Oct-07, at 1:00 PM, Chris Lewis wrote: Chris Lewis wrote: Any idea why I'd be getting these: _convert_to_ssl failed (Could not create SSL socket: Socket operation on non-socket at ./plugins/tls line 158 [At end of _convert_to_ssl(), I'm logging $@ if it's non-null] I've confirmed,

Re: Hi, bug report/feature request

2007-10-03 Thread Matt Sergeant
On 3-Oct-07, at 5:25 PM, James Turnbull wrote: Chris Lewis wrote: I've hacked qpsmtpd-async to support daemonization and pid locking files. Rather than dig into SVN, who should I send the modified copy to? Matt? Chris Since no one else answered the question I'd recommend logging a ticket

Re: authnull plugin in config.sample/plugins enables relaying?

2007-09-24 Thread Matt Sergeant
Ask Bjørn Hansen wrote: On Sep 23, 2007, at 9:35 PM, Sydney Bogaert wrote: The problem I think is that this config is found in the .tar.gz file, the file that most people download and install as is... Yeah, I'm thinking of rolling a 0.41 with the changes we have now. +1

Re: Patch for spamassassin plugin to add X-Spam-Level header

2007-09-22 Thread Matt Sergeant
On 22-Sep-07, at 2:36 AM, Robert Spier wrote: How is that header more useful? Please provide an example. It's so you can do threshold filtering in your MUA (or in procmail). Otherwise your MUA (or procmail) has to be able to understand numbers in the headers. Matt.

Re: qpsmtpd-forkserver seems awfully slow

2007-09-18 Thread Matt Sergeant
On Tue, 18 Sep 2007, John L wrote: I turned off the qmail-smtpd and added its IP to qpsmtpd, and it went nuts, 90 processes, load averages upwards of 15. I have some custom plugins, a couple that make very cheap UDP calls, to check greylisting and to check whether a rcpt address is valid, a

Re: qpsmtpd-forkserver seems awfully slow

2007-09-18 Thread Matt Sergeant
On Tue, 18 Sep 2007, John L wrote: Well, now I restarted it and the load is a reasonable 3 to 5. Must have been a spam blast, will have to wait and see if it happens again. I see a lot of plugins that read config files in the hook routines. Seems to me that in forkserver, that means each

Re: Whitelisting

2007-09-15 Thread Matt Sergeant
On 15-Sep-07, at 2:27 AM, Hanno Hecker wrote: The current dnsbl plugin returns DENY if the client is in one of the given lists, but there are some lists I trust more than others. I'd like to see something where I can set a score right below the threshold for (e.g.) the geoip plugin and then

Re: Does the received_line hook work in 0.40?

2007-09-14 Thread Matt Sergeant
On 14-Sep-07, at 8:10 AM, John L wrote: How/what do you return from your hook_received_line()? The first value should be the OK constant, the second the received line. Any other value than OK, will ignore the results from your hook. It's clearly returning OK. Here's what the debug log

Re: Does the received_line hook work in 0.40?

2007-09-14 Thread Matt Sergeant
On 14-Sep-07, at 9:36 PM, John L wrote: Of course that only means it *should* work, not that it does... I'll have a look when I have a bit more time. Well, I stuck in some LOGDEBUG lines to see what was going on, at which point it worked fine, then I commented them out, and it still

Re: Theory behind rcpt_ok doing relaying check?

2007-09-07 Thread Matt Sergeant
On 6-Sep-07, at 8:29 PM, Robert Spier wrote: Some of this will be easier to fix if if let plugins register to be run first and last. Eeep. No. I like the strict ordering guarantees given by the config file. The first/last stuff ends up just being a morass. Yes, if you want that, use

Re: Whitelisting

2007-09-06 Thread Matt Sergeant
On 6-Sep-07, at 11:33 AM, Johan Almqvist wrote: My idea would be that there are only two things that can be whitelisted: connections and transactions. On the base of what logic, and at what stage, is up to the plugin, but if the whitelist flag is set, any DENY* return value from subsequent

Re: Whitelisting

2007-09-06 Thread Matt Sergeant
On 6-Sep-07, at 1:47 PM, Johan Almqvist wrote: Matt Sergeant wrote: The way I see it is that whitelisting is basically meant as a bypass for anti-spam filters, but not (for example) certain other filters (like recipient checks). So I wondered if hooks should declare themselves

Re: Transaction ID suggestions

2007-09-05 Thread Matt Sergeant
On Tue, 4 Sep 2007, Peter Eisch wrote: Would it be possible to implement -id as a hook? The actual key could then be left to the creativity of the user. The plugin could then implement the other hooks and tune the id as necessary (connect, mail, queue, etc.). Yes, it's possible to do it

Re: Transaction ID suggestions

2007-09-04 Thread Matt Sergeant
On 4-Sep-07, at 12:43 PM, Peter J. Holzer wrote: I was playing around a bit on the weekend, yes. Since neither Matt nor Ask have cried out in horror on what I did, FWIW I didn't object simply because it seems so pointless with everyone having such conflicting ideas about what this should

Re: [svn:qpsmtpd] r780 - in trunk: . lib/Qpsmtpd

2007-08-31 Thread Matt Sergeant
On Thu, 30 Aug 2007 [EMAIL PROTECTED] wrote: Modified: trunk/lib/Qpsmtpd/Connection.pm trunk/qpsmtpd-forkserver Log: Connection id similar to the transaction id by Matt. For what it's worth I really don't like this implementation - if we're going to add in a connection id it should be

Re: Transaction ID suggestions

2007-08-30 Thread Matt Sergeant
On 30-Aug-07, at 4:45 AM, Tony L. Svanstrom wrote: True, but the code makes both the security guy and the programmer in me twitch... Well, don't think of it for security then :-) The part of the unique ID meant to identify the server is now focusing on the OS/computer instead of the

Re: Transaction ID suggestions

2007-08-30 Thread Matt Sergeant
On 30-Aug-07, at 9:34 AM, Guy Hulbert wrote: On Thu, 2007-08-30 at 09:14 -0400, Matt Sergeant wrote: The part of the unique ID meant to identify the server is now Is this unique ID the transaction ID we've been discussing. Yes. Has someone already implemented it in svn - I thought

Re: Transaction ID suggestions

2007-08-30 Thread Matt Sergeant
On 30-Aug-07, at 10:07 AM, Tony L. Svanstrom wrote: On Thu, 30 Aug 2007 the voices made Guy Hulbert write: GH wtf does this mean - the *purpose* of the discussion is to *fix* a GH *unique* transaction ID when the discussion is over it is *fixed* and GH the discussion *documents* the

Re: Transaction ID suggestions

2007-08-30 Thread Matt Sergeant
On 30-Aug-07, at 2:52 PM, Guy Hulbert wrote: Actually, I think the right answer is just a sequence generator (mod 1). That guarantees different consecutive results. I think so too. In my testing perl only switches to floating point at or around 2**50 on 32 bit platforms, which should

Re: Transaction ID suggestions

2007-08-29 Thread Matt Sergeant
On 28-Aug-07, at 11:04 PM, Charlie Brady wrote: Err, actually I had a brain fart. It should be remote_port. No, it should be remote_IP.remote_port.local_port and should include a transaction_within_connection count. I don't think that pid adds anything. Please try any way you can to get

Re: Transaction ID suggestions

2007-08-29 Thread Matt Sergeant
Tony L. Svanstrom wrote: Then forget about the word security, and let's just say that people might want to have unique IDs that'll be unique even when they've got more than one server and centralized/aggregated logging... But we're not even there right now, we are still stuck on how to make

Re: Plugin for tcpserver cdb rules files ?

2007-08-29 Thread Matt Sergeant
John L wrote: Does anyone have a plugin to interpret the CDB files that tcpserver uses? I'm working in a mixed environment of qmail-smtpd and qpsmtpd and it would be nice not to have to maintain two sets of rule files in parallel. It's not hard to write, but I'd just as soon not duplicate

Re: Transaction ID suggestions

2007-08-29 Thread Matt Sergeant
On 29-Aug-07, at 1:07 PM, Guy Hulbert wrote: On Wed, 2007-08-29 at 18:15 +0200, Tony L. Svanstrom wrote: Then forget about the word security, and let's just say that people might want to have unique IDs that'll be unique even when they've got more than one server and

Re: Transaction ID suggestions

2007-08-29 Thread Matt Sergeant
On 29-Aug-07, at 5:50 PM, Charlie Brady wrote: Except with multiple CPUs is a big problem. OTOH, as has been mentioned multiple times, a four-tuple identifying the TCP connection plus a timestamp will be satisfactory with any number of CPUs, and with very fast networks. pid entirely

Re: Transaction ID suggestions

2007-08-29 Thread Matt Sergeant
On 29-Aug-07, at 6:03 PM, Charlie Brady wrote: That is just asserting that no single process could receive two connections in the same tick of time() (because if it could, it's trivial to arrange for them to have the same remote port). I can conceive of that happening, so we should do

Re: Transaction ID suggestions

2007-08-29 Thread Matt Sergeant
On 29-Aug-07, at 6:38 PM, Tony L. Svanstrom wrote: On Wed, 29 Aug 2007 the voices made Matt Sergeant write: MS I've added in a basic hashed version of hostname now. Would this be a bad time to mention that people might get the idea that they want to run two different setups of qpsmtpd

Re: Transaction ID suggestions

2007-08-29 Thread Matt Sergeant
On 29-Aug-07, at 7:02 PM, m. allan noah wrote: On 8/29/07, Matt Sergeant [EMAIL PROTECTED] wrote: On 29-Aug-07, at 5:50 PM, Charlie Brady wrote: Except with multiple CPUs is a big problem. OTOH, as has been mentioned multiple times, a four-tuple identifying the TCP connection plus

Re: Transaction ID suggestions

2007-08-28 Thread Matt Sergeant
I've checked in $transaction-id support now. Please let me know if you think it's OK. Matt.

Re: Transaction ID suggestions

2007-08-28 Thread Matt Sergeant
On 28-Aug-07, at 3:12 PM, JT Moree wrote: Matt Sergeant wrote: I've checked in $transaction-id support now. Please let me know if you think it's OK. which method did you use? hires_time.pid.local_port Matt.

Re: Transaction ID suggestions

2007-08-28 Thread Matt Sergeant
On 28-Aug-07, at 3:51 PM, JT Moree wrote: I found the svn web interface: # generate id my $conn = $args{connection}; my $ip = $conn-local_port || 0; my $start = time; my $id = $start.$$.$ip; Some people have suggested adding the remote IP address. I'm curious why use local port

Re: Transaction ID suggestions

2007-08-25 Thread Matt Sergeant
On 24-Aug-07, at 6:40 PM, David Sparks wrote: I'm using the poll server which means that there aren't threads to worry about. However the future probably means running multiple daemons to take advantage of multi-core systems so there would need to be a daemon id encoded in there. Yeah,

Re: tls question

2007-08-16 Thread Matt Sergeant
On 15-Aug-07, at 10:08 PM, John Peacock wrote: The reason for this is that you only need to Trust forever the server-signed cert once, when you first configure your client to use TLS. After that, I'm not aware of any mail clients that even give you any feedback that you are using a TLS

Re: Performance / Tuning questions

2007-08-16 Thread Matt Sergeant
On 16-Aug-07, at 8:32 PM, Guy Hulbert wrote: On Thu, 2007-08-16 at 18:45 -0500, Peter A Eisch wrote: That's BS. Anyone is free to download tcpserver without any acknowledgements. If you don't like the ucspi-tcp license you can use ipsvd. snip Check out http://pkgsrc.org/ and try and

Re: disable autoflush in Qpsmtpd::Postfix?

2007-08-15 Thread Matt Sergeant
On 14-Aug-07, at 11:21 PM, Joe Schaefer wrote: [EMAIL PROTECTED] (Matt Sergeant) writes: On Tue, 14 Aug 2007, Joe Schaefer wrote: Apache has been running with $self-autoflush(0); added to Qpsmtpd::Postfix::open_cleanup() with no ill effects for a year or two now, and it has IME had

Re: Odd plugin needed

2007-08-15 Thread Matt Sergeant
On 15-Aug-07, at 11:58 AM, Jim Murray wrote: Is anyone aware of a plugin for qpsmtpd which duplicates the functionality of Inter7's qmail-tap patch for 'stock' qmail (http://inter7.com/index.php?page=qmailtap)? Is it possible to do this with a qpsmtpd plugin? Yup. See my article (linked from

Re: Performance / Tuning questions

2007-08-15 Thread Matt Sergeant
On 15-Aug-07, at 5:35 PM, Stefan Priebe wrote: But be careful - the 0.40 preforkserver version has MANY MANY BUGS!!! We tried to use it for about 500 servers with over 10 000 connections / 10 minutes - and it wasn't useable at all. We've now changed many lines - in the code and it works

Re: Performance / Tuning questions

2007-08-15 Thread Matt Sergeant
On 15-Aug-07, at 5:39 PM, Ed McLain wrote: I'm all for any changes you have. I found most, I think, of the issues on our beta system had to do with some of the plugins, not sure though.. If you have any patches though I'd be open to trying to them out. I gotta do something. We currently

Re: Performance / Tuning questions

2007-08-15 Thread Matt Sergeant
On 15-Aug-07, at 7:08 PM, Ed McLain wrote: IS there any documentation anywhere on how and what needs to be changed? I've looked on the wiki and don't see anything on there about it. As an aside, I'll dig through the dnsbl plugin for async and see what I can come up with. Any information

Re: no_residential_zombies, request for comments

2007-08-14 Thread Matt Sergeant
On Tue, 14 Aug 2007, Brad Fitzpatrick wrote: I just did a write-up about my experiences here: http://brad.livejournal.com/2336579.html Cool. We need more users and you're just the sort of PR we need. In a nutshell, I wrote two to-be-released modules (Mail::ZombieDetector and

Re: disable autoflush in Qpsmtpd::Postfix?

2007-08-14 Thread Matt Sergeant
On Tue, 14 Aug 2007, Joe Schaefer wrote: Apache has been running with $self-autoflush(0); added to Qpsmtpd::Postfix::open_cleanup() with no ill effects for a year or two now, and it has IME had a noticable impact on performance for queueing large emails. Any reason not to add it to qpsmtpd

Re: Queue speed

2007-08-11 Thread Matt Sergeant
On 11-Aug-07, at 9:19 AM, Guy Hulbert wrote: On Sat, 2007-08-11 at 08:29 +0200, Hanno Hecker wrote: +while (my $size = $fh-read(my $line, 4096)) { Is 4096 the file system block size ? Not every file system uses 4k though it is a common default. I suspect that using the exact value

Re: OT: Message Systems, Inc.

2007-08-10 Thread Matt Sergeant
On 10-Aug-07, at 2:59 PM, John Peacock wrote: John Peacock wrote: The above mentioned company is based 30 minutes from my house and is advertising for a developer position. Does anyone have actual experience with them as a company (or employer)? Just to follow up on this thread; I have

Re: dealing with a DDOS

2007-08-10 Thread Matt Sergeant
On 10-Aug-07, at 9:13 PM, Brian Szymanski wrote: Does anyone have any ideas for dealing with a DDOS? [snip] We're currently using forkserver - is it possible that we'd have better luck with Apache::Qpsmtpd or pollserver? Yes :-) Either would be better for dealing with the load. What's

Re: Pulling the subject line

2007-08-02 Thread Matt Sergeant
On 2-Aug-07, at 10:27 AM, [EMAIL PROTECTED] wrote: qpsmtpd 0.32 forkserver $subject = $transaction-header-get( 'Subject' ) || '' ; This only pulls the first line of a multi-line Subject header. Is this a bug or can I obtain the entire subject line? What is a multi-line

Re: Pulling the subject line

2007-08-02 Thread Matt Sergeant
On 2-Aug-07, at 11:47 AM, [EMAIL PROTECTED] wrote: In my test module, I put the following in after reading the subject line as noted: $self-log( 2, SUBJECT:$subject ) ; All I get is the first line without any continuation (on the same line or a new line). I've also

Re: many recipients (52) in msg sending cause Unable to queue message()

2007-07-18 Thread Matt Sergeant
On 18-Jul-07, at 5:37 PM, Charlie Brady wrote: [EMAIL PROTECTED] wrote: I have a problem when sending msg with many recipients: ... I agree that the log produced by queue::smtp_forward could be a bit more verbose... IMO the smtp forward plugin should be rewritten to relay the

Some fun stats

2007-07-14 Thread Matt Sergeant
Looking at our accumulated stats for our spamtrap: Max concurrency was 5.6k connections in EST state. Average mails/sec was ~100, peaking to ~200. Pretty amazing what this bit of perl can do. (and yes this is all running stock 0.40 -async code).

Re: How to get port number used?

2007-07-14 Thread Matt Sergeant
On 14-Jul-07, at 9:37 PM, [EMAIL PROTECTED] wrote: Currently using qpsmtpd 0.32 in forkserver mode. I would like to know if it is possible for a plugin to determine which port a connection came in on, so that it could be treated differently from connections on other ports.

Re: OT: Message Systems, Inc.

2007-07-06 Thread Matt Sergeant
On 6-Jul-07, at 2:21 PM, John Peacock wrote: The above mentioned company is based 30 minutes from my house and is advertising for a developer position. Does anyone have actual experience with them as a company (or employer)? Yes, it's OmniTI - George and Theo Schlossnagle who many on this

How to do slow stuff with -async

2007-06-28 Thread Matt Sergeant
Using gearman, that's how. http://www.danga.com/gearman/ Example plugin: #!/usr/bin/perl -w use Gearman::Client::Async; use Storable qw(thaw); sub register { my ($self, $qp, @args) = @_; my @gearmen = $qp-config('gearmand_hosts'); if ([EMAIL PROTECTED]) { $gearmen[0] =

Re: How to do slow stuff with -async

2007-06-28 Thread Matt Sergeant
On 28-Jun-07, at 5:44 PM, Ask Bjørn Hansen wrote: On Jun 28, 2007, at 13:19, Matt Sergeant wrote: Using gearman, that's how. Didn't we talk about this before? Maybe just in my head. Yep. We should have a generic gearman plugin configured something like gearman real_plugin

Re: 0.40 async weirdness

2007-06-15 Thread Matt Sergeant
mark warren bracher wrote: any thoughts? since it's the same config and the same process listening on multiple network interfaces, I'm a bit stumped about why it behaves differently on one than it does on the others.. The core check_early_talker will make it hang forever probably. Make

Re: another log analyzing tool (with munin plugins)

2007-06-14 Thread Matt Sergeant
Guy Hulbert wrote: To be fair, in general a parser written in lex/yacc will usually be an order of magnitude faster than the same parser written in perl with regexp. Always that much? I realize that a lex/yacc parser will be more efficient but I thought perl's regex engine was pretty fast.

Re: another log analyzing tool (with munin plugins)

2007-06-13 Thread Matt Sergeant
Charlie Brady wrote: I don't think a lex/yacc parser will necessarily parse faster than a perl parser, so I don't think that GB of logfiles would justify writing a parser in C. Frequent executation of a parser OTOH might. A perl parser will very likely be slower to start up, but might execute

Re: Uploading files

2007-06-12 Thread Matt Sergeant
[EMAIL PROTECTED] wrote: Lo, I did offer to write a file upload. Well, I haven't as yet... Mainly because I have no clue about Danga. Would a mod to the parse_post_params work ie have the danga stuff carefully hidden from me or will one of the project coders have to hack at it? You certainly

Re: Clarification about qpsmtpd-async minor challenges

2007-06-12 Thread Matt Sergeant
On Mon, 11 Jun 2007, David Favor wrote: 1) async appears to start correctly and work correctly when no -j given OK. 2) when starting async incorrectly senses how Danga::Socket will poll, which should access Danga::Socket-method() Yup. That's minor, but easily fixed. It doesn't affect

Re: qpsmtpd 0.40 released!

2007-06-12 Thread Matt Sergeant
Ask Bjørn Hansen wrote: On Jun 12, 2007, at 6:42, Peter J. Holzer wrote: Get it while it's fresh from http://smtpd.develooper.com/get.html :-) I've just updated the RPMs. Excellent. Unless Matt, John or Robert disagrees then I think we should link to them from the above URLs (and maybe

Re: Ready for release

2007-06-11 Thread Matt Sergeant
Ask Bjørn Hansen wrote: On Jun 5, 2007, at 9:09, Matt Sergeant wrote: I've updated the Changes file now. We should be ready to go. Ask: can you tag 0.33 and do a release? I liked the suggestion of calling it 0.40 - so I tagged it as 0.40rc1 Unless something comes up I will tag and push

Re: qpsmtpd 0.40 released!

2007-06-11 Thread Matt Sergeant
Congrats to all. This should be a great release (I really should upgrade!).

Re: Problem stopping qpsmtpd-async 0.40

2007-06-11 Thread Matt Sergeant
David Favor wrote: If the -j option is supplied, then CNTL-C leaves all processes running. With no -j supplied, CNTL-C seems to shutdown the single process correctly. I thought you couldn't get it started? ;-) What OS and Perl version are you on?

Re: AxKit2, Apache and all that

2007-06-09 Thread Matt Sergeant
Martijn wrote: Okay, that makes sense. But still, I'd like Apache and mod_perl to do all the other things -serving images, pdfs, taking care of authentication etc.- they have been doing so nicely for me all this time. But I am kind of confused about where to start. Or, since I would like to keep

Re: Is qpsmtpd threadsafe? Evidence to the contrary

2007-06-08 Thread Matt Sergeant
Darren Griffith wrote: In the following logs, we have: (1) our customer: tbmailer.triobet.com [83.218.12.49] on thread 16846 (2) a spammer: OL12-45.fibertel.com.ar [24.232.45.12] on thread 16845 The spammer's server triggers the check_earlytalker plugin. Then it triggers the dnsbl plugin

Ready for release

2007-06-05 Thread Matt Sergeant
I've updated the Changes file now. We should be ready to go. Ask: can you tag 0.33 and do a release?

Ready for release

2007-06-05 Thread Matt Sergeant
I've updated the Changes file now. We should be ready to go. Ask: can you tag 0.33 and we'll do a release? We should put together a plan for the next release so that it's less ad-hoc. __ This email has been scanned by the

Re: Apache::Qpsmtpd

2007-05-31 Thread Matt Sergeant
On 31-May-07, at 9:27 AM, Bill Jones wrote: On 5/30/07, Guy Hulbert [EMAIL PROTECTED] wrote: On Wed, 2007-05-30 at 15:08 -0400, Bill Jones wrote: The other issue I see is that the cpan link indicates that Apache::Qpsmtpd is no longer available... Or maybe I'm missing something? It's

Re: qpsmtpd as Primary MTA

2007-05-31 Thread Matt Sergeant
On 31-May-07, at 4:47 PM, JT Moree wrote: The amount of work to be done to make qpsmtpd deliver properly to local and remote users may be more than it's worth? Not particularly... You've already got the info as to whether it's to be relayed or not (though I guess you need to check whether

Re: Release (Re: How to configure stunnel Ver. 4)

2007-05-29 Thread Matt Sergeant
On 29-May-07, at 8:20 AM, James Turnbull wrote: What does that spell? Release! :) Yeah I think we just need to update Changes (it's gonna be a long one!)

Re: qpsmtpd as Primary MTA

2007-05-29 Thread Matt Sergeant
JT Moree wrote: I thought I was reading a post the other day that discussed something like this. Searching now is getting me nowhere. What are the possibilities that qpsmtpd could be the only MTA on a system? It would need to handle * incoming mail * local mail forwarded to MDA * Internet

Re: Is re2c 0.10.x really needed?

2007-05-27 Thread Matt Sergeant
On 27-May-07, at 4:24 PM, Duncan Findlay wrote: The version of re2c currently in Debian is 0.9.x, and according to the sa-compile man page, 0.10.x is needed for the Rule2XSBody plugin. As far as I can tell, sa-compile is working fine with 0.9.x. Anybody know the reason behind recommending

Re: bus error on OS X

2007-05-26 Thread Matt Sergeant
On 25-May-07, at 11:11 PM, S. Woodside wrote: Anyone else running on OS X? It's developed on OS X :-) But I'm running XML::LibXML 1.59. I don't really trust macports... - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: auth_ok plugin

2007-05-25 Thread Matt Sergeant
On 25-May-07, at 5:21 AM, Robin Bowes wrote: 1. Is the register sub still required these days? Nope. But in this example yes because it registers two hooks to the same sub. 2. What's the auth equivalent to relay_client()? e.g. $self-qp-connection-authenticated() ?? You don't need to

Re: Ax2 file handling

2007-05-24 Thread Matt Sergeant
On 23-May-07, at 7:57 AM, Lars Skjærlund wrote: How do I make the XSLT engine fetch it's files from Ax2 like it did in Ax1? Ah I see... Yeah, so one of the decisions I made for Ax2 was that all this stuff in AxKit1 was too horribly fragile and broke too much, so I just didn't implement

Re: Ax2 file handling

2007-05-23 Thread Matt Sergeant
[EMAIL PROTECTED] wrote: Lars, I had created an Ax1 module that could extract the 'content.xml' from an OpenDocument .odt file - which is really just a zip-file wrapper around a collection of datafiles. It worked so well that I could call the document() function in an XSLT stylesheet, passing

Re: Logging outbound mail....

2007-05-20 Thread Matt Sergeant
See my O'Reilly article. On 20-May-07, at 1:07 PM, Isamar Maia wrote: Dear Sirs, I am looking for a qpsmtpd plugin to forward to me any mail sent out by a specific user. Thanks in advance for any indication. Isamar

Re: [svn:qpsmtpd] r740 - in trunk: . lib/Qpsmtpd plugins

2007-05-17 Thread Matt Sergeant
On 17-May-07, at 6:27 PM, Ask Bjørn Hansen wrote: On May 17, 2007, at 15:16, [EMAIL PROTECTED] wrote: +my $has_ipv6 = Qpsmtpd::TcpServer::has_ipv6; Does that work with the Apache and the async server? Sort of :-) It works in the sense that all has_ipv6() does is check the perl IPv6

Re: More Plugin Tests

2007-05-17 Thread Matt Sergeant
On 26-Mar-07, at 12:18 PM, Guy Hulbert wrote: I would like to propose that we create 'config.tests' and change the code in t/Test/Qpsmptd.pm from: sub config_dir { './config.sample'; } to: sub config_dir { './config.tests'; } I'm

Re: Pushing for a release again...

2007-05-17 Thread Matt Sergeant
On 17-May-07, at 6:10 PM, Ask Bjørn Hansen wrote: On May 17, 2007, at 14:45, Robert Spier wrote: Sure, lets just tag it and call it a release :) I want to update the Changes file ... I'll try to work on it this weekend. I'll see if I can get that done tonight/tomorrow. In the meantime

Re: Ax2 AIO bug

2007-05-10 Thread Matt Sergeant
On 8-May-07, at 8:00 AM, [EMAIL PROTECTED] wrote: No. But I've just d/l it with the same result. It's probably a packet size problem as per my last problem OK, fixed in svn. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

<    1   2   3   4   5   6   7   8   9   10   >