Re: It's that time of the year again

2006-04-17 Thread Rian A Hunter
myself, I've just read results so anyone correct me if I'm wrong. Rian

Re: Listen directive, port specification

2006-04-06 Thread rian
for their protocol. (For example SmtpProtocol on, SSLEngine on, etc) Well hey I like that too but isn't the Protocol directive deprecated? While this is cool: Listen 6025 smtp I don't think a protocol specifier should be in a listen directive (or at least the preferred way to specify a protocol). Rian

Listen directive, port specification

2006-04-05 Thread Rian Hunter
. There is also ap_get_server_protocol(server_rec *s) that returns the protocol based on the Listen directive. The second way is similar to the way handlers are selected. Rian

Re: prefork mpm in linux: ap_process_connection isn't called on connection

2006-04-03 Thread Rian Hunter
On Mar 31, 2006, at 6:42 AM, Jeff Trawick wrote: On 3/28/06, Rian A Hunter [EMAIL PROTECTED] wrote: On the httpd trunk in prefork.c ap_process_connection isn't called until there is data on the new connection (instead of just when a client connects). Is there a kernel accept filter

prefork mpm in linux: ap_process_connection isn't called on connection

2006-03-28 Thread Rian A Hunter
there is no APR_POLLCONNECTION (or something similar) in apr. What should be done? Rian

APR resolver?

2006-03-28 Thread Rian A Hunter
-lresolv. I know there is apr_sockaddr_info_get but this doesn't handle getting mx records (or other DNS record types). Should a resolver API be added to APR. Actually I think yes and I think I'm going to implement this. Any objections? Rian

mod_smtpd documentation location

2006-03-13 Thread Rian Hunter
of mod_smtpd. Where should these files go? Should I add a doc subdirectory to mod_smtpd or what? I want it to be easily build-able and available online, etc. Rian

Re: [mod_smtpd] patch need for the SIZE extension

2006-02-09 Thread Rian Hunter
On Feb 8, 2006, at 11:22 PM, Brian J. France wrote: On Feb 8, 2006, at 9:28 PM, Rian Hunter wrote: On Feb 8, 2006, at 10:56 AM, Brian J. France wrote: +1, I like the idea of the storing the setting in the per connection instance. Leaving the default in the core and copying it to an per

Re: [mod_smtpd] patch need for the SIZE extension

2006-02-08 Thread Rian Hunter
. Changing scr-should_disconnect to scr-allows_commands which is a bit-field of what commands that are allowed. Then smtp_protocol.c handles denying command instead of having a module hook every command and doing it, right? Yeah exactly right! Rian

Re: [mod_smtpd] patch need for the SIZE extension

2006-02-07 Thread Rian Hunter
On Feb 7, 2006, at 8:15 PM, Brian J. France wrote: Hi Rian, Before I started converting my other modules to the new code I figured I would start with writing a new module to handle the SIZE extension. I needed to apply the following patch (link below) to the mod_smtpd code to get

Re: svn commit: r374754 - in /httpd/site/trunk: docs/ docs/mod_smtpd/ docs/modules/ xdocs/ xdocs/mod_smtpd/ xdocs/modules/

2006-02-03 Thread Rian Hunter
strongNick Kew/strong and strongPaul Querna/ strong. It continues +its life being developed and maintained by Rian Hunter with help from the httpd +developers. Ok, now we're seeing this both in the mod_mbox and mod_smtpd web pages. This is supposed to be a community project, ASF

Bouncing messages in mod_smtpd

2006-02-01 Thread Rian Hunter
to look at is in http://svn.apache.org/repos/asf/httpd/mod_smtpd/trunk/src/ smtp_protocol.c, the function is smtpd_bounce_unqueued (smtpd_session_rec *). Thanks!! Rian Hunter

Re: Bouncing messages in mod_smtpd

2006-02-01 Thread Rian Hunter
an SMTP client but I may just end up doing that. Rian Hunter

Re: Best Available Version?

2006-01-30 Thread Rian Hunter
On Jan 10, 2006, at 11:57 PM, Paul Querna wrote: Rian Hunter wrote: This version of Apache is principally a security and bug fix release, and represents the best available version of Apache HTTP Server. That string is currently under the Apache 2.0.55 Released section of http

Header Handling in mod_smtpd

2006-01-17 Thread Rian Hunter
this: ---begin_rfc822_message--- From: Rian Hunter [EMAIL PROTECTED] To: Rian Hunter [EMAIL PROTECTED] Subject: Testing. Hi this is the body of the message. ---end--- mod_smtpd saves: ---begin body--- Hi this is the body of the message. ---end--- when normal mail clients usually show the body like this: ---begin body

Best Available Version?

2006-01-09 Thread Rian Hunter
? Rian Hunter

Re: mod_smtpd changes

2006-01-05 Thread Rian Hunter
On Sat, 2005-12-31 at 13:47, Brian J. France wrote: On Dec 31, 2005, at 1:23 PM, Rian Hunter wrote: Any comments, ideas and criticisms are highly welcomed! Thanks! Any changes on how recipients and queue/deliver is handled? I started implementing my proposal from a while back and got

mod_smtpd changes

2005-12-31 Thread Rian Hunter
it was extensibility. Any comments, ideas and criticisms are highly welcomed! Thanks! Rian Hunter

Re: autotools woe

2005-12-29 Thread Rian Hunter
and env | grep -i path On Thu, 2005-12-29 at 10:05, Philip M. Gollucci wrote: Can you do : cd /var/db/pkg ls -ld gnu-* nothing in there s and env | grep -i path PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/rian/bin Thanks! rian

Re: mod_smtpd: handling rctp addresses

2005-10-04 Thread rian
is from (ip and mail from)) or headers seem more and more rare. -rian On Tue, 2005-10-04 at 09:23 -0500, Brian J. France wrote: I would like to propose a change on how rcpt to addresses are validated and messages are handled (expanded) and how queue modules know it needs to process

Preliminary mod_smtpd doc work

2005-09-28 Thread rian
, minor interface changes, and code reviews. Thanks. Rian Hunter

Re: mod_smtpd_auth and mod_smtpd_auth_dbd

2005-09-27 Thread rian
On Tue, 2005-09-27 at 08:33 -0500, Brian J. France wrote: Here are two modules I worked on last week while on a trip and ready for some discussion. mod_smtpd_auth mod_smtpd_auth_dbd http://www.brianfrance.com/software/apache/ mod_smtpd.patch will be needed which adds the auth hooks

Re: mod_smtpd_access_dbd code review, mod_smtpd_auth plan

2005-09-20 Thread Rian Hunter
) very soon for incorporation into the modules tree. Rian Hunter

Re: svn commit: r232338 [1/2] - in /httpd/mod_smtpd/trunk: ./ Makefile.in README autogen.sh configure configure.ac mod_smtpd.h smtp.h smtp_core.c smtp_protocol.c

2005-09-18 Thread Rian Hunter
that only modules included in the core httpd distribution should use AP_DECLARE_HOOK and all others should be optional hooks because they might not always be loaded. If this is not the case, this should change soon. -rian

Re: svn commit: r289845 - in /httpd/mod_smtpd/trunk/modules/queue: ./ mod_smtpd_queue_postfix/ mod_smtpd_queue_postfix/mod_smtpd_queue_postfix.c

2005-09-18 Thread Rian Hunter
On Sep 17, 2005, at 8:35 PM, Garrett Rooney wrote: On 9/17/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: +static int cleanup_socket; This global worries me. How will it behave in a multithreaded MPM? -garrett Right, I'll fix that up. -rian

Re: mod_smtpd and old versions of apache2

2005-09-18 Thread Rian Hunter
by one of the filters in http_filters.c to set a timeout, but since those filters weren't used i had to do it manually in mod_smtpd but now it has it's own I/O functions so it doesn't need to set this. -rian

to the users of mod_smtpd

2005-09-09 Thread Rian Hunter
soon. Thanks! Rian Hunter

Re: mod_smtpd module review

2005-08-31 Thread Rian Hunter
of strings like SIZE=5. Does that sound good? Rian Hunter

mod_smtpd filter support

2005-08-29 Thread Rian A Hunter
. - DATA command input filter support per transaction. - RFC822 Header parsing via libapreq2 - Exported IO functions. Have Fun! -rian

Re: mod_smtpd overhaul

2005-08-23 Thread Rian Hunter
, APR_HOOK_MIDDLE); } - You do it at connect so when the user gives ehlo, the server can respond with the list of all the extensions supported by the various modules. There will be more documentation/example code for mod_smtpd very soon. -rian

mod_smtpd hook system

2005-08-23 Thread Rian Hunter
APR_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL_MOD and defined in smtpd.h, but would something like this make it into the APR release? It seems silly and hackish within smtpd.h. Also should a APR_IMPLEMENT_OPTIONAL_HOOK_RUN_FIRST also be defined in APR? Thanks. -rian

Re: mod_smtpd overhaul

2005-08-23 Thread Rian Hunter
/modules/misc mod_smtpd_load : Allow temp error if load to high on the server +1, Jem since you have checked in the first plugin for mod_smtpd would you mind creating a directory structure similar to this if it seems fine to you? -rian

mod_smtpd overhaul

2005-08-22 Thread Rian Hunter
with AP_MODE_GETLINE, just because SMTP is a line oriented protocol was there any explicit reason you wanted it to be called with AP_MODE_READBYTES? You can check it out from https://svn.apache.org/repos/asf/httpd/mod_smtpd/trunk/. -rian

mod_smtpd overhaul

2005-08-22 Thread Rian Hunter
with AP_MODE_GETLINE, just because SMTP is a line oriented protocol was there any explicit reason you wanted it to be called with AP_MODE_READBYTES? You can check it out from https://svn.apache.org/repos/asf/httpd/mod_smtpd/trunk/. -rian

Re: mod_smtpd overhaul

2005-08-22 Thread Rian Hunter
undefined function _smtpd_hook_connect. Is this the right way or is there an example module I could compare with? Actually no, you should use: APR_OPTIONAL_HOOK(smtpd, connect, smtpd_access_dbi_connect, NULL, NULL, APR_HOOK_MIDDLE); Since it's an optional hook. Thanks. -rian

Re: svn commit: r235759 - in /httpd/mod_smtpd/trunk: mod_smtpd.h smtp.h smtp_core.c smtp_protocol.c

2005-08-22 Thread Rian Hunter
! In the future I'll be a lot more careful about code I commit. -rian

Re: Supporting RBL in mod_smtpd

2005-08-19 Thread Rian Hunter
On Aug 19, 2005, at 9:58 AM, Brian J. France wrote: On Aug 18, 2005, at 6:22 PM, Rian Hunter wrote: Don't do this just yet, mod_smtpd is changing completely! completely = structures/io. I should commit my changes very soon so you can start working on this. Any ETA on this? I

Re: Supporting RBL in mod_smtpd

2005-08-18 Thread Rian Hunter
and Rian, let me know if I should be going about this a different way? I thought the most modular fashion would be to create a mod_smtpd_rbl that registers the following mod_smtpd hooks: smtpd_run_connect (might deny service to connecting IP, per request_rec) smtpd_run_mail (might deny service

Re: [PATCH] use arrays in smtpd_request_rec

2005-08-16 Thread Rian Hunter
structures that require casting in order to access what you've stored in them... The version that Rian committed is slightly different, but still has the same problem. I'd post a patch, but it's probably faster to fix it by hand than it is to detach a patch from an email and apply it. Over

Re: New mod_smtpd release

2005-08-16 Thread Rian Hunter
-without-RFC(2)822. I figure we'll have an input filter registered and if the data doesn't look like RFC-(2)822, then it passes it on verbatim. -rian

Re: New mod_smtpd release

2005-08-16 Thread Rian Hunter
On Aug 16, 2005, at 6:47 AM, Nick Kew wrote: Rian Hunter wrote: [chop] I think I should have looked harder before replying ... looks like you've done more than I realised. I guess what I was asking about slots easily in to data_post ? Which question exactly? -rian

Re: New mod_smtpd release

2005-08-15 Thread Rian Hunter
probably 99% of SMTP transfers involve messages in the RFC 2822/MIME formats. Although I think that maybe there will be a plugin that wants data from the DATA command verbatim. I still feel this needs some thought. -rian

Re: [PATCH] use arrays in smtpd_request_rec (was Re: smtpd_request_rec questions)

2005-08-15 Thread Rian Hunter
On Aug 14, 2005, at 11:08 PM, Garrett Rooney wrote: Rian Hunter wrote: This patch looks good but I have some questions. You seem to use the returned pointers from apr_array_push without checking if they are NULL. Even in apr_array_push, apr_palloc is used without checking for NULL

Re: New mod_smtpd release

2005-08-14 Thread Rian Hunter
plugin not in mod_smtpd. -rian

Re: mod_smtpd compile problem

2005-08-14 Thread Rian Hunter
Sorry I removed one part of code and not the other. -rian

Re: smtpd_request_rec questions

2005-08-14 Thread Rian Hunter
apr_array_t (or you can send in a patch if you like). -rian

Re: New mod_smtpd release

2005-08-14 Thread Rian Hunter
On Aug 14, 2005, at 8:12 PM, Joe Schaefer wrote: Rian Hunter [EMAIL PROTECTED] writes: On Aug 14, 2005, at 1:22 PM, Joe Schaefer wrote: +RELEASE SHOWSTOPPERS: + + + smtp_process_connection_internal should take a smtp_proto_rec + argument (which is what the current smtp_request_rec

Re: [PATCH] use arrays in smtpd_request_rec (was Re: smtpd_request_rec questions)

2005-08-14 Thread Rian Hunter
not sure whether or not you don't check for NULL on purpose. Could you explain? Thanks. -rian On Aug 14, 2005, at 8:52 PM, Garrett Rooney wrote: Garrett Rooney wrote: Rian Hunter wrote: Ah I didn't even realize the key allocation, I'll fix that. Thanks! The reason I don't use an apr_array_t

New mod_smtpd release

2005-08-12 Thread Rian Hunter
this code out from: http://svn.apache.org/repos/asf/httpd/mod_smtpd/trunk/ Have Fun! -rian

httpd 2.1 and ap_hook_create_request()

2005-07-24 Thread Rian Hunter
, or is my temporary solution to ignore it correct enough? If calling ap_run_create_request should be necessary for a module like mod_smtpd, then other modules shouldn't register filters on the request_rec without checking if its the appropriate protocol/request. -rian

Re: Initial mod_smtpd code.

2005-07-20 Thread Rian Hunter
of configuration in a context that may not make sense to a user or admin. Either way, conf like that is irrelevant to core mod_smtpd. -rian

Re: Initial mod_smtpd code.

2005-07-19 Thread Rian Hunter
of us can deal with this code. It sucks that most are busy with ApacheCon right now. -rian

Re: Initial mod_smtpd code.

2005-07-19 Thread Rian Hunter
different handlers trying to read data from the socket. Is this problem solved by spooling the data, and letting the two separate requests read from the spool bucket? -rian

Initial mod_smtpd code.

2005-07-17 Thread Rian Hunter
different smtp command). Jem/Paul/Nick: I'm especially interested in what you think about the design I've laid out in this implementation. -rian

Re: Questions from a newbie

2005-07-03 Thread Rian Hunter
the ap_rgetline function. Does this sound like a bad idea to you? any security issues? The other solution (letting mod_smtpd read the whole thing into a buffer and then passing the buffer) seems way too memory hungry for me. -rian

mod_smtpd design.

2005-07-01 Thread Rian Hunter
design, basically we'll still call these logical hooks. Are there any complications I've overlooked? Any criticism or comments are very welcome!! -rian

more mod_smtpd stuff [was Summer of Code]

2005-07-01 Thread Rian Hunter
servers, even though mod_smtpd will be powerful enough to be a production mail server i just think sys admins are more stubborn about changing their mail server setup than the web server setup. -rian

Re: mod_smtpd design.

2005-07-01 Thread Rian Hunter
amount of protocols and protocol specific data. -rian

Re: mod_smtpd design.

2005-07-01 Thread Rian A Hunter
Quoting Garrett Rooney [EMAIL PROTECTED]: Rian Hunter wrote: type misc_smtp_handler(request_rec *r) { smtpd_request_rec *smtp_data; if (strncmp(http, r-protocol_name, 4)) { // decline to handle, this module doesn't handle // http requests

Re: mod_smtpd project planning

2005-06-30 Thread Rian Hunter
(for a response to the ehlo command), and you don't have to worry about the details of writing a new SMTP server when most of the tedious work has already been taken care of. -rian

Re: mod_smtpd project planning

2005-06-29 Thread rian
appreciate that! To everyone managing SoC: about how long until our svn accounts are activated? I know there are a lot details being worked out still, but I still feel a little in the dark. -rian