You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pop3-dev@httpd.apache.org by Sa...@nokia.com on 2001/07/08 16:21:27 UTC
2 questions...
Hello,
I tried compiling mod_pop with Apache 2_0_16, and it was giving a few
compilation errors - eg. extra int& argument to get_brigade and a call to a
nonexistant apr_file_trunc...
Also - more importantly, considering that ap_process_http_connection will be
registered prior to ap_process_pop_connection, shouldn't
ap_process_http_connection somehow decline a POP3 session... eg. on the
basis of connection->base_server->port...
Or how would it work otherwise...?
-Sapan
RE: 2 questions...
Posted by rb...@covalent.net.
On Sun, 8 Jul 2001, Sean R. Bright wrote:
> My understanding is that its not pop_process_connection's responsibility to
> decline HTTP sessions. You need stricter Listen/VirtualHost directives.
>
> This is my setup:
> ===========================><8===========================
> ###########################################################
> # Listen
> ###########################################################
> Listen 24.6.145.136:80
> Listen 192.168.0.24:80
>
> Listen 24.6.145.136:110
> Listen 192.168.0.24:110
>
> ###########################################################
> # VirtualHosts
> ###########################################################
> <VirtualHost 24.6.145.10:80 192.168.0.10:80>
> ServerAdmin blah@host.com
> DocumentRoot /usr/local/etc/httpd-2.0/htdocs
> ServerName myhost.com
> ErrorLog logs/error_log
> CustomLog logs/access_log common
> </VirtualHost>
>
> <VirtualHost 24.6.145.10:110 192.168.0.10:110>
> POP3Protocol On
> POP3MailDrops /var/spool/mail
> </VirtualHost>
> ===========================8><===========================
>
> Works fine for me. Requests coming in on 110 are handled by mod_pop and the
> rest are handled by mod_http.
That's about right. I should warn you, if your mail has a '.' as the
first character of a line, the POP3 server will not escape it properly.
This is likely to break your client app.
I have the solution, I just need to test and commit it.
Ryan
_____________________________________________________________________________
Ryan Bloom rbb@apache.org
Covalent Technologies rbb@covalent.net
-----------------------------------------------------------------------------
RE: 2 questions...
Posted by "Sean R. Bright" <el...@erols.com>.
My understanding is that its not pop_process_connection's responsibility to
decline HTTP sessions. You need stricter Listen/VirtualHost directives.
This is my setup:
===========================><8===========================
###########################################################
# Listen
###########################################################
Listen 24.6.145.136:80
Listen 192.168.0.24:80
Listen 24.6.145.136:110
Listen 192.168.0.24:110
###########################################################
# VirtualHosts
###########################################################
<VirtualHost 24.6.145.10:80 192.168.0.10:80>
ServerAdmin blah@host.com
DocumentRoot /usr/local/etc/httpd-2.0/htdocs
ServerName myhost.com
ErrorLog logs/error_log
CustomLog logs/access_log common
</VirtualHost>
<VirtualHost 24.6.145.10:110 192.168.0.10:110>
POP3Protocol On
POP3MailDrops /var/spool/mail
</VirtualHost>
===========================8><===========================
Works fine for me. Requests coming in on 110 are handled by mod_pop and the
rest are handled by mod_http.
Sean
> -----Original Message-----
> From: Sapan.Bhatia@nokia.com [mailto:Sapan.Bhatia@nokia.com]
> Sent: Sunday, July 08, 2001 3:51 PM
> To: rbb@covalent.net
> Cc: pop3-dev@httpd.apache.org
> Subject: RE: 2 questions...
>
>
> //The HTTP process_connection phase is registered as
> HOOK_REALLY_LAST, so
> //it
> //is always the last process_connection phase run. If you create a
> //Virtual
> //host, and setup POP to run on it, the
> pop_process_connection phase will
> //run first, and it will handle the connection. Let me know if that
> //doesn't
> //explain it. :-)
>
> Fine.
>
> But then how does pop_process_connection decline HTTP sessions??
>
> This is something I'd struggled with for many hours, and
> finally had to
> resort to declining on the basis of base_server->port... so
> I'll be annoyed
> and relieved if there's a better solution...
>
> -Sapan
>
Re: 2 questions...
Posted by rb...@covalent.net.
> I tried compiling mod_pop with Apache 2_0_16, and it was giving a few
> compilation errors - eg. extra int& argument to get_brigade and a call to a
> nonexistant apr_file_trunc...
The POP module will only work with the latest version of Apache 2.0. I
have tested it with the CVS versions, but that is it. I believe it will
work with Apache 2.0.19, but I haven't tried.
> Also - more importantly, considering that ap_process_http_connection will be
> registered prior to ap_process_pop_connection, shouldn't
> ap_process_http_connection somehow decline a POP3 session... eg. on the
> basis of connection->base_server->port...
>
> Or how would it work otherwise...?
The HTTP process_connection phase is registered as HOOK_REALLY_LAST, so it
is always the last process_connection phase run. If you create a Virtual
host, and setup POP to run on it, the pop_process_connection phase will
run first, and it will handle the connection. Let me know if that doesn't
explain it. :-)
I am going to try to write docs to explain how to set this up later today.
Ryan
_____________________________________________________________________________
Ryan Bloom rbb@apache.org
Covalent Technologies rbb@covalent.net
-----------------------------------------------------------------------------