Merlin | 28 Jun 2002 09:13

popa3d 0.5.1 with maildir

Does anyone have a patch to get popa3d 0.5.1 working with Maildir-style
mail boxes?

Or any version of popa3d for that matter. I'm sure I can adopt it.

Thanks,
-Merlin

Andi | 30 Jun 2002 20:29
Picon
Favicon

logging problems...

hi!
i´m using slackware 8.1 with popa3d.
i want to stop popa3d logging in /var/log/messages when a client contacts
his mailbox!
is this possible? and how can i do it?

greetings andi

Solar Designer | 30 Jun 2002 20:47
Favicon

Re: logging problems...

On Sun, Jun 30, 2002 at 08:29:00PM +0200, Andi wrote:

Hi,

> i'm using slackware 8.1 with popa3d.

Are you using the popa3d package included with Slackware or did you
build popa3d yourself?

> i want to stop popa3d logging in /var/log/messages when a client contacts
> his mailbox!
> is this possible? and how can i do it?

Well, currently the log facility and priority popa3d uses are defined
at compile time in params.h.  If you're using the distribution-provided
package you need to either get the distribution to apply the change or
switch to building popa3d from source yourself.

Where messages for a given facility/priority are routed is of course
specified in /etc/syslog.conf.

On some systems, the logging daemon (syslogd or equivalent) is able to
route messages based on the ident ("popa3d" in this case).  There you
wouldn't have to apply any configuration changes to popa3d itself.

--

-- 
/sd

Solar Designer | 30 Jun 2002 21:00
Favicon

Re: popa3d 0.5.1 with maildir

On Fri, Jun 28, 2002 at 03:13:02AM -0400, Merlin wrote:
> Does anyone have a patch to get popa3d 0.5.1 working with Maildir-style
> mail boxes?

This mailing list is just starting and there aren't many subscribers
yet (just 10 at the moment), so don't expect to reach a large popa3d
userbase yet.  I expect the list to grow to a few hundred subscribers
within a few months.

As for your question, noone has contributed such a patch so far.
Which of course doesn't mean such a thing doesn't exist in private
use.

I might implement Maildir support in the official popa3d, but that
isn't a priority for me.

--

-- 
/sd

Andi | 30 Jun 2002 21:07
Picon
Favicon

AW: logging problems...


-----Ursprungliche Nachricht-----
Von: Solar Designer [mailto:solar@...]
Gesendet: Sonntag, 30. Juni 2002 20:47
An: popa3d-users@...
Betreff: Re: logging problems...

On Sun, Jun 30, 2002 at 08:29:00PM +0200, Andi wrote:

Hi,

> i'm using slackware 8.1 with popa3d.

Are you using the popa3d package included with Slackware or did you
build popa3d yourself?

--> yes i?m using the included package in slackware. i didn?t compiled it
myself.
	i?m a linux newbee...can you explain exactly what to do?
	i?ve to remove the old package and compile the new one by myself with which
options?

thanks andi

> i want to stop popa3d logging in /var/log/messages when a client contacts
> his mailbox!
> is this possible? and how can i do it?

Well, currently the log facility and priority popa3d uses are defined
at compile time in params.h.  If you're using the distribution-provided
(Continue reading)

Solar Designer | 30 Jun 2002 21:18
Favicon

Re: logging problems...

On Sun, Jun 30, 2002 at 09:07:07PM +0200, Andi wrote:
> --> yes i?m using the included package in slackware. i didn?t compiled it
> myself.
> 	i?m a linux newbee...can you explain exactly what to do?
> 	i?ve to remove the old package and compile the new one by myself with which
> options?

The old package you don't have to touch.  You may just build popa3d
from source, without producing a package out of it.  Just download the
original popa3d source tarball and follow the instructions in INSTALL.
Among the instructions it says to review and edit params.h, which you
need to do.  Allocate a unique facility to popa3d, say, LOG_LOCAL0.
Then use the newly built popa3d binary instead of the one that came
with Slackware (edit the inetd.conf line).  Finally, edit syslog.conf
to route the local0 facility wherever you like.

If this is still too complicated for you, then this list is probably
not the right place for further questions on how to setup logging as
that would be in no way specific to popa3d.

--

-- 
/sd

FAI - Thierry Montigneaux | 1 Jul 2002 12:00

Problem with nb of connectiosn from single host

Hello,

I am using popa3d on an OpenBSD box which is acting as our mail gateway.
This box hosts the accounts for about 105 email lists we are running. The
list server (hosted on a separate server) connects to this gateway every 5
minutes to process mail for the lists + admin commands.

This means that there are about 105 POP connections coming in from the same
host every 5 minutes.

Until now, I was running popa3d from INETD. This morning I tried to switch
to using it as a Daemon... I get the following error message when doing so
:

popa3d[4053]: 192.168.1.8: per source limit reached

I guess popa3d is interpreting the connections from 192.168.1.8 as attempts
to flood the system as there are many POP sessions coming in in sequence.

As our mail gateway is firewalled from the outside on the port used by POP3
and our other server is the only machine connecting to the POP port, I am
not too worried about these flooding problems.

Is there any parameter, or way to fine tune popa3d to accept those 105
connections every 5 minutes without problems ?

The reason I am interested in using popa3d as a daemon instead of through
inetd is because our box is rather busy and the popa3d man page advertises
the fact that this mode of operation is less resource intensive for the
server.
(Continue reading)

Solar Designer | 1 Jul 2002 12:50
Favicon

Re: Problem with nb of connectiosn from single host

On Mon, Jul 01, 2002 at 12:00:33PM +0200, FAI - Thierry Montigneaux wrote:
> This means that there are about 105 POP connections coming in from the same
> host every 5 minutes.
> 
> Until now, I was running popa3d from INETD. This morning I tried to switch
> to using it as a Daemon... I get the following error message when doing so
> :
> 
> popa3d[4053]: 192.168.1.8: per source limit reached
> 
> I guess popa3d is interpreting the connections from 192.168.1.8 as attempts
> to flood the system as there are many POP sessions coming in in sequence.
> 
> As our mail gateway is firewalled from the outside on the port used by POP3
> and our other server is the only machine connecting to the POP port, I am
> not too worried about these flooding problems.
> 
> Is there any parameter, or way to fine tune popa3d to accept those 105
> connections every 5 minutes without problems ?

Yes, but at this time this setting is compile-time.  This means that
you'd need to either build popa3d from the original source tarball
(and install under /usr/local) or patch the OpenBSD source tree and
rebuild popa3d from there.

What you're looking for is the MAX_SESSIONS, MAX_SESSIONS_PER_SOURCE,
and/or MIN_DELAY parameters in params.h.

The sessions are opened one at a time, right?  If so, I suggest that
you leave MAX_SESSIONS as is (at 100), increase MAX_SESSIONS_PER_SOURCE
(Continue reading)

FAI - Thierry Montigneaux | 1 Jul 2002 13:03

Re: Problem with nb of connectiosn from single host

Solar Designer wrote:
> 
> Yes, but at this time this setting is compile-time.  This means that
> you'd need to either build popa3d from the original source tarball
> (and install under /usr/local) or patch the OpenBSD source tree and
> rebuild popa3d from there.

I'll go for the source tree patch...

Question: is it preferable in case I want to run popa3d as a daemon to use
the following settings in params.h :

define POP_STANDALONE   1
define POP_OPTIONS      0

> What you're looking for is the MAX_SESSIONS, MAX_SESSIONS_PER_SOURCE,
> and/or MIN_DELAY parameters in params.h.
> 
> The sessions are opened one at a time, right?

yes, I believe so.

>  If so, I suggest that
> you leave MAX_SESSIONS as is (at 100), increase MAX_SESSIONS_PER_SOURCE
> to 50, and decrease MIN_DELAY to 1 second.  That will allow up to 50
> sessions from the same source per second. 

I will try with your suggested parameters as a first step. That should do.

Thanks for the feedback !
(Continue reading)

Solar Designer | 1 Jul 2002 15:32
Favicon

Re: Problem with nb of connectiosn from single host

On Mon, Jul 01, 2002 at 01:03:37PM +0200, FAI - Thierry Montigneaux wrote:
> Solar Designer wrote:
> > 
> > Yes, but at this time this setting is compile-time.  This means that
> > you'd need to either build popa3d from the original source tarball
> > (and install under /usr/local) or patch the OpenBSD source tree and
> > rebuild popa3d from there.
> 
> I'll go for the source tree patch...
> 
> Question: is it preferable in case I want to run popa3d as a daemon to use
> the following settings in params.h :
> 
> define POP_STANDALONE   1
> define POP_OPTIONS      0

Well, I don't see a reason for you to disable support for command line
options.  Passing the -D explicitly is not hard.

--

-- 
/sd


Gmane