New Windows build - Apache 2.2.3

2006-08-02 Thread hunter
The error(s) that I am getting are not caused by the defines. I still get the error I indicated in my first email. Creating library .\Release\mod_unique_id.lib and object .\Release\mod_unique_id.exp nmake -nologo -f mod_usertrack.mak CFG=mod_usertrack - Win32 Release RECURSE=0

Re: New Windows build - Apache 2.2.3

2006-07-31 Thread hunter
On 7/31/06, Steffen [EMAIL PROTECTED] wrote: I understand now and I missed the script. I have reports that all now is building fine with VC2005-IDE with the Windows source after executing the script. Thanks! Steffen - Original Message - From: William A. Rowe, Jr. [EMAIL PROTECTED]

New Windows build - Apache 2.2.3

2006-07-30 Thread hunter
I am getting an error while building Apache 2.2.3 for Windows... Creating library .\Release\mod_unique_id.lib and object .\Release\mod_unique_id.exp nmake -nologo -f mod_usertrack.mak CFG=mod_usertrack - Win32 Release RECURSE=0 rc.exe /l 0x409 /foDebug/mod_usertrack.res /i

Re: New Windows build - Apache 2.2.3

2006-07-30 Thread hunter
On 7/30/06, Jorge Schrauwen [EMAIL PROTECTED] wrote: ah using visual studio 2005? Try using the unix source instead... wrowe posted a notice about this. On 7/30/06, hunter [EMAIL PROTECTED] wrote: I am getting an error while building Apache 2.2.3 for Windows... Creating library .\Release

Re: It's that time of the year again

2006-04-17 Thread Rian A Hunter
Quoting Ian Holsman [EMAIL PROTECTED]: ideas so far (half joking): - mod_ircd - implementing a UDP protocol - a caching module implement CML (cache-meta-language) - a SEDA type MPM http://www.kegel.com/c10k.html I think a SoC project that profiles Apache (and finds out where we fall short) so

Listen directive, port specification

2006-04-05 Thread Rian Hunter
Hi, So the Listen directive now takes an optional protocol argument. In the documentation it states that if the protocol isn't specified then if the port number is 443, it is set to https otherwise http. This seems like a good idea. What about if the port number is 25, personally I want

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
Hey All, 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). I don't know if this is the intended behavior but from what I can see this is because the poll descriptor is set to poll on POLL_IN, in

APR resolver?

2006-03-28 Thread Rian A Hunter
While implementing the message bounce in mod_smtpd I ran into a snag. I need to get mx records for host names!! There seems to be no portable DNS resolver library/interface. For UNIX there is at least res_search() and dn_expand() except on BSD this is in the standard library and in linux you need

mod_smtpd documentation location

2006-03-13 Thread Rian Hunter
Hi Everyone, I have written up some preliminary documentation (not done yet) that describes how to write a module for mod_smtpd. It is based on the format of the manualpage dtd used in the Apache Documentation Project. I'm also planning on writing a modulesynopsis document for users of

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
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 connection struct would allow modules to tweak the setting per connection. One other addition to

Re: [mod_smtpd] patch need for the SIZE extension

2006-02-07 Thread Rian Hunter
the best, what do you think? Rian Hunter

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
On Feb 3, 2006, at 5:36 PM, Paul Querna wrote: Garrett Rooney wrote: On 2/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: +ttmod_smtpd/tt started it's life as a 2005 Google Summer of Code project +taken on by strongRian Hunter/strong and strongJem Berkes/strong with +mentors

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
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 starts with gnu- 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

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
On Sep 17, 2005, at 9:50 PM, Paul Querna wrote: Sorry for bring this up so late [ snip ] Why are these APR Optional Functions? Why can't they be AP_DECLARE_HOOK's? -Paul I decided that they should be optional because after talking to some people I was under the impression that

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
On Sep 17, 2005, at 1:27 PM, Garrett Rooney wrote: So I'm playing around with mod_smtpd_queue_smtp, a module that has mod_smtpd queue messages by forwarding them on to another smtp server, and I ran into a little snag. It appears that in older versions of apache2 (2.0.53 in this case)

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
Hi, I just checked in support for input filters and header parsing in mod_smtpd. This currently means little since there is no documentation on how to use mod_smtpd or many example plugins. In the next few days (once I receive power) I will have a couple of example plugins checked in (regular

Re: mod_smtpd overhaul

2005-08-23 Thread Rian Hunter
On Tue, 2005-08-23 at 11:04, Brian J. France wrote: Is there a way to add more options to the EHLO response (an example)? Sure. Extensions are registered on a per-connection basis. Ideally you would register an SMTP extension at the connect hook like so: --- smtpd_retcode

mod_smtpd hook system

2005-08-23 Thread Rian Hunter
I've changed the hook system for mod_smtpd a little to allow more flexibility and module cooperation. Basically it works like this now: When a hook is called smtpd_run_*, each registered hook is called until one returns something other than SMTPD_DECLINED or SMTPD_OK. If all the hooks return

Re: mod_smtpd overhaul

2005-08-23 Thread Rian Hunter
On Tue, 2005-08-23 at 11:04, Brian J. France wrote: On Aug 23, 2005, at 12:18 AM, Jem Berkes wrote: I noticed a couple posts about examples, there is now one as I have committed all the RBL stuff I wrote. See: https://svn.apache.org/repos/asf/httpd/mod_smtpd/trunk/mod_smtpd_rbl/ This

mod_smtpd overhaul

2005-08-22 Thread Rian Hunter
Hi, I just have committed mod_smtpd with changes that free it from request_rec. There are now two major structures in mod_smtpd: smtpd_conn_rec, and smtpd_trans_rec. These are distinguished by how often these get cleared. Also mod_smtpd no longer uses the ap_getline and ap_rprintf functions for

mod_smtpd overhaul

2005-08-22 Thread Rian Hunter
Hi, I just have committed mod_smtpd with changes that free it from request_rec. There are now two major structures in mod_smtpd: smtpd_conn_rec, and smtpd_trans_rec. These are distinguished by how often these get cleared. Also mod_smtpd no longer uses the ap_getline and ap_rprintf functions for

Re: mod_smtpd overhaul

2005-08-22 Thread Rian Hunter
On Mon, 2005-08-22 at 23:17, Brian J. France wrote: Trying to build build a smtpd module, but having a problem. I added a line like this: smtpd_hook_connect( smtpd_access_dbi_connect, NULL, NULL, APR_HOOK_MIDDLE ); in the register_hooks function, but when I load the module I get

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
On Mon, 2005-08-22 at 23:37, Garrett Rooney wrote: Modified: httpd/mod_smtpd/trunk/mod_smtpd.h URL: http://svn.apache.org/viewcvs/httpd/mod_smtpd/trunk/mod_smtpd.h?rev=235759r1=235758r2=235759view=diff == ---

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
On Aug 18, 2005, at 7:11 PM, Jem Berkes wrote: Here is my current plan for introducing the RBL support in mod_smtpd, using the existing mod_dnsbl_lookup which I posted earlier. This way of accomplishing the RBL support should not require any code modification to mod_smtpd itself. Nick and

Re: [PATCH] use arrays in smtpd_request_rec

2005-08-16 Thread Rian Hunter
On Aug 15, 2005, at 10:05 PM, Garrett Rooney wrote: Joe Schaefer wrote: Garrett Rooney [EMAIL PROTECTED] writes: Index: smtp_protocol.c === --- smtp_protocol.c(revision 232680) +++ smtp_protocol.c(working copy) [...]

Re: New mod_smtpd release

2005-08-16 Thread Rian Hunter
On Aug 16, 2005, at 6:37 AM, Nick Kew wrote: Spooling and dealing with multiple recipients are things I'd like to think about now. ISTR posting about this before: I think each recipient needs a separate request processing cycle, because each recipient may have completely different processing

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
On Aug 15, 2005, at 10:22 AM, Joe Schaefer wrote: Jem Berkes [EMAIL PROTECTED] writes: Well there's also another problem. RFC 2821 (SMTP) doesn't define a particular message format for SMTP (in wide use there the RFC 822 and MIME message formats). I don't think that mod_smtpd should

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
On Aug 14, 2005, at 1:22 PM, Joe Schaefer wrote: snip... +CURRENT RELEASE NOTES: + + Virtual hosts a'la mod_ftpd don't work. It does work like this: Listen 80 Listen 25 NameVirtualHost *:80 NameVirtualHost *:25 VirtualHost *:80 ServerName localhost DocumentRoot htdocs

Re: mod_smtpd compile problem

2005-08-14 Thread Rian Hunter
On Aug 14, 2005, at 2:05 PM, Garrett Rooney wrote: So I'm having a little trouble getting mod_smtpd to compile, once I fixed up the configure script to find apxs and apache correctly, I end up with the following error: $ make /usr/bin/apxs2 -Wc,-Wall -o mod_smtpd.la -c smtp_core.c

Re: smtpd_request_rec questions

2005-08-14 Thread Rian Hunter
On Aug 14, 2005, at 4:21 PM, Garrett Rooney wrote: I was just looking at the smtpd_request_rec in mod_smtpd, and I had a few questions. It seems that extensions and rcpt info is being stored in an apr_hash_t, but it's only being keyed by integer. If you're only going to use ints as

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
Hi, I've checked in mod_smtpd 0.9 and its API should be completely frozen by now. This version of mod_smtpd is heavily based on Qpsmtpd, so the same extensibility you expect from Qpsmtpd can be achieved with this version of mod_smtpd. I haven't written any documentation yet but here is a

httpd 2.1 and ap_hook_create_request()

2005-07-24 Thread Rian Hunter
While working on mod_smtpd and verifying it works with current httpd I had a problem getting the ap_rgetline function to properly work without calling ap_run_create_request(). I figured the root of this problem was that core.c registers a net time filter that sets a default timeout on the

Re: Initial mod_smtpd code.

2005-07-20 Thread Rian Hunter
On Jul 19, 2005, at 7:39 PM, Jorge Schrauwen wrote: Wouldn't something like VirtualHost www.apache.org:25 ServerName www.apache.org:81 ServerAlias httpd.apache.org internal_dev ServerAdmin [EMAIL PROTECTED] ErrorLog logs/error.log TransferLog logs/access.log SMTP On # like with mod_dav (dav

Re: Initial mod_smtpd code.

2005-07-19 Thread Rian Hunter
Nifty! I had some compilation problems involving regex, so in the attached patch I use ap_regex.h and change some defines. Hope this doesn't break anything. that was a good idea, ap_regex.h was implictly getting included for me. The other bug I partially fixed was, strstr in

Re: Initial mod_smtpd code.

2005-07-19 Thread Rian Hunter
On Jul 19, 2005, at 6:51 AM, Nick Kew wrote: the problem i found when i did my poc is when there is in the command, different destination email. It's difficult here to keep the virtualHost scheme. It would be nice to keep a conf file like virtualHost ServerName mail.bla.com

Initial mod_smtpd code.

2005-07-17 Thread Rian Hunter
Hi, This is my first attempt at writing an experimental version of mod_smtpd. I don't yet have svn access yet so this code can be downloaded from http://rian.merseine.nu/mod_smtpd-0.1.tar.gz. This implementation shows my vision for mod_smtpd and it isn't perfect, so please test/look at

Re: Questions from a newbie

2005-07-03 Thread Rian Hunter
Jem Berkes wrote: For example, for SMTP support we are contemplating the protocol unit (mod_smtpd) passing on mail to a module that specifically delivers mail. How do those two entities communicate with each other? A mod_smtp_deliver would get a potentially large chunk of data (const char* ?)

mod_smtpd design.

2005-07-01 Thread Rian Hunter
Hi, Currently there are two approaches we are looking at for mod_smtpd. We can use the existing request_rec structure, and store smtp specific data in a structure stucture in the r-request conf vector. With this we can reuse some of the existing core hooks that make sense (handler,

more mod_smtpd stuff [was Summer of Code]

2005-07-01 Thread Rian Hunter
Jem Berkes wrote: To address one of the points brought up on IRC, if there is actually a non-experimental target for this software any time soon it would make more sense to support the 2.0 server as I think few production servers would be running 2.1? I'm just speaking from what I saw, that is,

Re: mod_smtpd design.

2005-07-01 Thread Rian Hunter
Ben Laurie wrote: Another approach still would require a fairly large change to the core and many modules, but it strikes me as a better option... struct http_data { . . . }; struct smtp_data { . . . }; struct request_rec { . . /* common stuff */ .

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
Paul A Houle wrote: Jem Berkes wrote: Hi all, I'm another student working on mod_smtpd Been running httpd 2.x since it appeared, but am new to development. What does mod_smtpd do? Is it a sendmail replacer or does it let people request content via smtp or what? It's a SMTP protocol