Christian Lerrahn | 1 Oct 12:03 2009
Picon

Using vusaged

Hi,
I need good quota support, so I decided to upgrade my vpopmail to
version 5.4.28. However, I found that version to be rather inconsistent
and really hard to package for Gentoo's portage.

Here are my problem. Maybe someone can tell me how to work around these
issues.

1. The package produces segfaults on most tools (at least vuserinfo and
vchkpw) if vusaged is not installed. However, vusaged does not get
compiled and installed by the main makefile. That doesn't seem to make
sense.

2. If I try to install vusaged before having installed the new
version of vpopmail, it will not build because needs to find
libvpopmail first. I can pass a path with --with-vpopmail= but this
cannot be the path of the source directory where the libraries would be
after compiling but before being installed.

3. Once I have installed the vpopmail package I can run the configure
for vusaged but not compile it. It uses several include files that come
with vpopmail but don't seem to get installed into a standard path. I
assume that they get installed into /var/vpopmail/include/ but have
currently no system to test that (I reverted my production system to
5.4.26).

Are there solutions to the problems described? How can I compile and
install everything in one go? Did I overlook something?

Cheers,
(Continue reading)

Ro Achterberg | 1 Oct 12:37 2009
Picon

Re: non-root courier-imap + vmysql.c problem

At 17:04 28-9-2009, Matt Brookings wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Ro Achterberg wrote:
> > Hi all,
> >
> > I'm using the vpopmail MySQL module to manage my domains and to provide
> > an authorization backend for courier-imapd's authdaemon (among other
> > things). However, it seems that since the MySQL module (vmysql.c +
> > vmysql.h) doesn't bother registering the Maildir domain's uid and gid
> > (thereby storing them with a default value of 0), courier-imap runs into
> > problems when trying to authenticate a user, since I have it run as a
> > non-root user.
> >
> > Basically what happens is that courier-imap is unable to setgid() from
> > 'root', since that's what it's reading from the SQL table, that the
> > MySQL module had created. Am I missing a configuration parameter
> > somewhere, or could this be considered a bug? Any insights would be
> > greatly appreciated.
>
>Ro, Courier-MTA has dropped all support for vpopmail, and as such,
>vpopmail has dropped all support for Courier-MTA, and it's various
>parts such as Courier-IMAP.
>
>This isn't really considered a bug because this worked in the past, but
>they simply chose to take a stance of non-support.  I saw that you sent
>me a patch that allows authentication to work, but the uid/gid fields
>in vpopmail are not used as named.  The fields are called that so that
>implementors realize it's authentication scheme is based on the Unix-based
(Continue reading)

Harm van Tilborg | 1 Oct 13:52 2009
Picon

Re: Using vusaged

Hi Christian,

I suggest trying the 5.5 build (that can be found on SF.net) first - on 
a test machine of course.

It solved a lot of problems I had with vusage and friends in 5.4.28.

-- 
Kind regards,
Harm van Tilborg

Christian Lerrahn wrote:
> Hi,
> I need good quota support, so I decided to upgrade my vpopmail to
> version 5.4.28. However, I found that version to be rather inconsistent
> and really hard to package for Gentoo's portage.
> 
> Here are my problem. Maybe someone can tell me how to work around these
> issues.
> 
> 1. The package produces segfaults on most tools (at least vuserinfo and
> vchkpw) if vusaged is not installed. However, vusaged does not get
> compiled and installed by the main makefile. That doesn't seem to make
> sense.
> 
> 2. If I try to install vusaged before having installed the new
> version of vpopmail, it will not build because needs to find
> libvpopmail first. I can pass a path with --with-vpopmail= but this
> cannot be the path of the source directory where the libraries would be
> after compiling but before being installed.
(Continue reading)

Matt Brookings | 1 Oct 16:02 2009

Re: Using vusaged


Christian Lerrahn wrote:
> Hi,
> I need good quota support, so I decided to upgrade my vpopmail to
> version 5.4.28. However, I found that version to be rather inconsistent
> and really hard to package for Gentoo's portage.
> 
> Here are my problem. Maybe someone can tell me how to work around these
> issues.
> 
> 1. The package produces segfaults on most tools (at least vuserinfo and
> vchkpw) if vusaged is not installed. However, vusaged does not get
> compiled and installed by the main makefile. That doesn't seem to make
> sense.

There's a bug in .28 that wasn't discovered until after it was marked
stable where if the vusagec.conf file is not in ~vpopmail/etc, tools
trying to utilize the vusage client API would cause a segfault.

5.4.29 addresses this, and some other smaller issues.  If you want to
fix it locally for the time being, create ~vpopmail/etc/vusagec.conf.

> 2. If I try to install vusaged before having installed the new
> version of vpopmail, it will not build because needs to find
> libvpopmail first. I can pass a path with --with-vpopmail= but this
> cannot be the path of the source directory where the libraries would be
> after compiling but before being installed.

In 5.4, it was meant as an add-on, and so, even though it's packaged
along with vpopmail, it required vpopmail be installed to compile.
(Continue reading)

Rob Wright | 2 Oct 23:14 2009
Picon

Logging vpopmail password failures

Greetings,

I have vpopmail installed by Inter7. How can I set up logging to see what 
password users are passing for POP3, IMAP and SMTP? Is it even possible. I 
don't even need to see the good passwords, just the failures.

Thanks,

Rob Wright

!DSPAM:4ac66d2d32712770219346!

Rick Macdougall | 3 Oct 00:49 2009

Re: Logging vpopmail password failures

Rob Wright wrote:
> Greetings,
> 
> I have vpopmail installed by Inter7. How can I set up logging to see what 
> password users are passing for POP3, IMAP and SMTP? Is it even possible. I 
> don't even need to see the good passwords, just the failures.
> 
> Thanks,
> 
> Rob Wright
> 
> 
> 

Hi,

Mine just does it.

In /var/log/maillog I get entries similar to

Oct  2 18:33:27 mail002 vpopmail[22243]: vchkpw-pop3: password fail 
(pass: 'dtapt') someuser <at> mydomain.com:10.10.10.10

The compile option, I believe, that does this is --enable-logging=v

Regards,

Rick

!DSPAM:4ac6839b32712122210896!
(Continue reading)

dave vz | 6 Oct 14:46 2009
Picon

Trouble compiling under solaris 10 sparc

hello
I'm having problems compiling vpopmail 5.4.28 under solaris 10 sparc.

I receive following error :

storage.h:30:20: endian.h: No such file or directory
storage.h:31:22: byteswap.h: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `libvpopmail_a-maildirquota.o'
Current working directory /src/vpopmail-5.4.28
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='cdb'; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /src/vpopmail-5.4.28
*** Error code 1
make: Fatal error: Command failed for target `all'


which is normal since both endian.h and byteswap.h don't exist under solaris.

Does anyone know a sollution which does not force me to backtrack every release to find the latest version that does compile?
!DSPAM:4acb3c2932711020371026!

Matt Brookings | 6 Oct 15:44 2009

Re: Trouble compiling under solaris 10 sparc


dave vz wrote:
> hello
> I'm having problems compiling vpopmail 5.4.28 under solaris 10 sparc.

The vusage daemon is not required in 5.4.28, but you may want to try 5.4.27.
If you can, to help me out since I don't have a Solaris system to test with
currently, can you edit storage.h and remove the two lines that include
those headers and try to compile again?
--
/*
    Matt Brookings <matt <at> inter7.com>       GnuPG Key FAE0672C
    Software developer                     Systems technician
    Inter7 Internet Technologies, Inc.     (815)776-9465
*/
Alessio Cecchi | 6 Oct 16:04 2009
Picon

Vpopmail Postfix and SQL query for SMTP-Auth

Hello,

this is my situation, one qmail+vpopmail(MySQL)+dovecot server that 
works like an MX record and provide access on mailbox via POP3 or IMAP.

Another server with postfix and SASL for SMTP-Auth only, with SASL that 
query the vpopmail DB for user authentication.

My intention is to set a query into SASL for use the same flags for 
SMTP-Auth that read vpopmail and qmail.

Now the SASL query is very simple:

$ cat /etc/postfix/sasl/smtpd.conf
pwcheck_method: auxprop
auxprop_plugin: sql
mech_list: PLAIN LOGIN
#password_format: crypt
sql_engine: mysql
sql_hostnames: 10.0.0.1
sql_user: postfix
sql_passwd: pippo
sql_database: vpopmail
sql_select: SELECT pw_clear_passwd FROM vpopmail WHERE pw_name='%u' and 
pw_domain='%r' and smtppostfix = '1'

the only condition is the column "smtppostfix" that I must set manually.

There is the way to change the SELECT query in order to check the 
original vpopmail flags? So i can manage SMTP users authentication from 
vpopmail command line and reflect this configuration into a postfix 
server :-)

I have read this discussion:

http://www.mail-archive.com/vchkpw <at> inter7.com/msg17260.html

but I have not found a solution :-(

Thanks
--

-- 
Alessio Cecchi is:
 <at>  ILS -> http://www.linux.it/~alessice/
on LinkedIn -> http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz/
 <at>  PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
 <at>  LOLUG -> Socio http://www.lolug.net

!DSPAM:4acb4e5f32711494420535!

DAve | 6 Oct 17:24 2009

chkuser and mailbox quotas

Good morning,

We have, for a long time now, successfully used MailScanner on our 
gateway servers and then routing clean mail to our pop toasters.

The pop toasters are running netqmail, vpopmail 5-4-17, and chkuser 2.0.8.

I am having an issue where users are going overquota and not doing 
anything about it until mail begins to bounce. What limits cause chkuser 
to switch from "rcpt mailbox is overquota" to "not existing recipient"? 
I am unable to find the answer, though it might be staring me in the face.

Right now if a users don't fix their quota issue in time I have to 
manually restart milter-ahead on my MailScanner servers to clear the 
cache of non-existant users.

Trying to understand the problem before I decide what to do about it.

Thanks,

DAve

--

-- 
"Posterity, you will know how much it cost the present generation to
preserve your freedom.  I hope you will make good use of it.  If you
do not, I shall repent in heaven that ever I took half the pains to
preserve it." John Quincy Adams

http://appleseedinfo.org

!DSPAM:4acb614f32714985119730!


Gmane