Re: [vchkpw] courier IMAP server authentication failed

2008-03-09 Thread Michael Johnson

You need to create a user and group for Dovecot to run under. You could
use the vpopmail user, but it is best to be safe and have a unique user
for Dovecot.

Depending on what you're running, this should be sufficient:

# groupadd -g 202 dovecot
# useradd -d /dev/null -s /bin/false -u 202 -g 202 dovecot

Make sure to confirm those IDs are open before running the commands.

 - Michael


Zhan Li wrote:

Thanks Michael!
 
I have change my conf file and run* devoct* on command line and get the 
following error:

Error: Login user doesn't exist: dovecot
Fatal: Invalid configuration in /usr/local/etc/dovecot.conf
 
any suggestions?
 
Thanks
 
zhan
 



 
On 3/10/08, *Michael Johnson* <[EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]>> wrote:


The info at http://wiki.dovecot.org/AuthDatabase/VPopMail is very much a
good start. The info at http://wiki.dovecot.org/QuestionsAndAnswers is a
bit old, but also helpful.

The Dovecot example config has vpopmail listed (assuming it was compiled
in), so you can use that as well. Just comment the other passdb and
userdb sections and uncomment the vpopmail ones.

I'm actually working on replacing Courier with Dovecot, but ran into an
unrelated issue that needs to be resolved before I can deploy (bug
concerning mtime updates in JFS in older Linux kernel 2.6 versions).


For my config, this is what I'm using (output from dovecot -n):

# 1.0.12: /etc/dovecot.conf
login_dir: /var/run/dovecot/login
login_executable: /usr/libexec/dovecot/imap-login
first_valid_uid: 89
last_valid_uid: 89
first_valid_gid: 89
last_valid_gid: 89
mmap_disable: yes
mail_plugins: quota imap_quota
auth default:
  mechanisms: plain login
  user: vpopmail
  passdb:
driver: vpopmail
  userdb:
driver: vpopmail
plugin:
  quota: maildir



- Michael



Zhan Li wrote:
 > Hi Quey,
 > I searched on internet and mailing list, could not found a sample of
 > dovecot file for vpopmail.
 >
 > can you please give me a link for a sample conf file?
 >
 > Thanks
 >
 > Zhan
 >
 >
 >
 > On 3/9/08, *Quey* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>>>
 > wrote:
 >
 >
 > Top posting cause its more appropriate:)
 >
 > Dump courier and use dovecot, the archives show the best
config many
 > people including myself have posted our configs
 >
 > Zhan Li wrote:
 >  > Dear List,
 >  >
 >  > I have installed netqmail 1.06+latest version of
 >  > vpopmail+couier-authlib+imap.
 >  >
 >  > All compile and installation looks good. I have created
virtual
 > domain
 >  > and email accout by vpopmail command, I have tested to
send mail
 > to my
 >  > virtual account , and my virtual accout recieved mail without
 > problem.
 >  > I just enabled authvchkpw module for authlib, and tested
virtual
 >  > account with authtest utility, and virtual accout is
successfully
 >  > authenticated.
 >  >
 >  > The pop3 server login is OK. but when I telnet localhost
143, ab
 > login
 >  > userid passwd, authentication is faild and the error
message is
 > listed
 >  > below:
 >  >
 >  > Mar  9 19:58:36 mail authdaemond: stopping authdaemond
children
 >  > Mar  9 19:58:51 mail authdaemond: modules="authvchkpw",
daemons=5
 >  > Mar  9 19:58:51 mail authdaemond: Installing libauthvchkpw
 >  > Mar  9 19:58:51 mail authdaemond: Installation complete:
authvchkpw
 >  > Mar  9 20:01:10 mail imapd: Connection,
ip=[:::127.0.0.1 <http://127.0.0.1>
 > <http://127.0.0.1>
 >  > <http://127.0.0.1>]
 >  > Mar  9 20:01:15 mail imapd: authdaemon: s_connect() failed:
 > Connection
 >  > refused
 >  > Mar  9 20:01:15 mail imapd: [Hint: perhaps authdaemond is not
 > running?]
 >  > Mar  9 20:01:15 mail imapd: LOGIN FAILED, user=xxx,
 >  > ip=[:::127.0.0.1 <http://127.0.0.1> <http://127.0.0.1>
<http://127.0.0.1>]
 >  > Mar  9 20:01:15 mail imapd: authentication error:
Connection refused
 >  >
 >  > I am sure the authdaemond is started.
 >  >
 >  > Any suggestion?
 >  >
 >  > Thanks
 >  >
 >
 >
 >
 >
 >







!DSPAM:47d4d001120502696417240!



Re: [vchkpw] courier IMAP server authentication failed

2008-03-09 Thread Michael Johnson

The info at http://wiki.dovecot.org/AuthDatabase/VPopMail is very much a
good start. The info at http://wiki.dovecot.org/QuestionsAndAnswers is a
bit old, but also helpful.

The Dovecot example config has vpopmail listed (assuming it was compiled
in), so you can use that as well. Just comment the other passdb and
userdb sections and uncomment the vpopmail ones.

I'm actually working on replacing Courier with Dovecot, but ran into an
unrelated issue that needs to be resolved before I can deploy (bug
concerning mtime updates in JFS in older Linux kernel 2.6 versions).


For my config, this is what I'm using (output from dovecot -n):

# 1.0.12: /etc/dovecot.conf
login_dir: /var/run/dovecot/login
login_executable: /usr/libexec/dovecot/imap-login
first_valid_uid: 89
last_valid_uid: 89
first_valid_gid: 89
last_valid_gid: 89
mmap_disable: yes
mail_plugins: quota imap_quota
auth default:
  mechanisms: plain login
  user: vpopmail
  passdb:
driver: vpopmail
  userdb:
driver: vpopmail
plugin:
  quota: maildir



 - Michael



Zhan Li wrote:

Hi Quey,
I searched on internet and mailing list, could not found a sample of 
dovecot file for vpopmail.
 
can you please give me a link for a sample conf file?
 
Thanks
 
Zhan



 
On 3/9/08, *Quey* <[EMAIL PROTECTED] > 
wrote:



Top posting cause its more appropriate:)

Dump courier and use dovecot, the archives show the best config many
people including myself have posted our configs

Zhan Li wrote:
 > Dear List,
 >
 > I have installed netqmail 1.06+latest version of
 > vpopmail+couier-authlib+imap.
 >
 > All compile and installation looks good. I have created virtual
domain
 > and email accout by vpopmail command, I have tested to send mail
to my
 > virtual account , and my virtual accout recieved mail without
problem.
 > I just enabled authvchkpw module for authlib, and tested virtual
 > account with authtest utility, and virtual accout is successfully
 > authenticated.
 >
 > The pop3 server login is OK. but when I telnet localhost 143, ab
login
 > userid passwd, authentication is faild and the error message is
listed
 > below:
 >
 > Mar  9 19:58:36 mail authdaemond: stopping authdaemond children
 > Mar  9 19:58:51 mail authdaemond: modules="authvchkpw", daemons=5
 > Mar  9 19:58:51 mail authdaemond: Installing libauthvchkpw
 > Mar  9 19:58:51 mail authdaemond: Installation complete: authvchkpw
 > Mar  9 20:01:10 mail imapd: Connection, ip=[:::127.0.0.1

 > ]
 > Mar  9 20:01:15 mail imapd: authdaemon: s_connect() failed:
Connection
 > refused
 > Mar  9 20:01:15 mail imapd: [Hint: perhaps authdaemond is not
running?]
 > Mar  9 20:01:15 mail imapd: LOGIN FAILED, user=xxx,
 > ip=[:::127.0.0.1  ]
 > Mar  9 20:01:15 mail imapd: authentication error: Connection refused
 >
 > I am sure the authdaemond is started.
 >
 > Any suggestion?
 >
 > Thanks
 >







!DSPAM:47d4c108120502870914827!



Re: [vchkpw] Wrong quota warning in vpopmail 5.4.26

2008-02-28 Thread Michael Johnson

It's a bug in 5.4.26. You can either revert to the previous version, or
try the CVS code, which should have the bug fixed (I believe Rick Widmer
said he had fixed the bug back in November 2007).

- Michael


Nicolas Croiset (VDL) wrote:

Hello,

since we use vpopmail 5.4.26d I have a problem of quota warning for some 
pop account.


This problem didn't exist in 5.4.24.

When I remove the files quotawarn maildirsize, it falls back to normal. 
when I do vuserinfo, the quota used is less than 5% (before the 
deletion)...


How can I solve this problem ?

Bye.

Nicolas Croiset  - VDL -   [EMAIL PROTECTED]
Tel : +33 4 78 56 09 83Fax : +33 4 72 84 06 01








!DSPAM:47c79b07120501637823860!



Re: [vchkpw] OT - Preferred File Systems

2007-12-21 Thread Michael Johnson
Jeff Koch wrote:
> 
> 
> We're setting up a new mailserver with a Gigabyte i-ram drive to handle
> the qmail queue, and qmail logs. The i-ram drive uses standard DDR
> modules, has a battery backup and is lightning fast - much faster than
> solid state drives. We'll use SATA RAID for the maildirs and remainder
> of the server.
> 
> I'd like to get some input on the best filesystem for the i-ram drive.
> EXT3 is out because writes are slowed to the speed of a hard drive. I'm
> leaning towards reiserfs or xfs. However, I've read (wikipedia) that
> reiserfs is easily corrupted. xfs seems the best.
> 
> Anyone have any comments of suggestions.
> 
> 
> 
> 
> Best Regards,
> 
> Jeff Koch, Intersessions
> 
> 
> 
> 
> 

Personally, I haven't had major issues with ReiserFS. It had some
problems when it first came out, but has become quite the stable
filesystem since then. In fact, I once had to use an early version of it
when an RH 7.x system kept hitting a race condition with ext3 (I
couldn't upgrade to the patched version of the kernel, the system was
running software that had a license key tied to the software versions -
evil). The main thing to look out for is keeping uncompressed copies of
reiserfs-formatted files (disk images) on a reiserfs drive. That totally
breaks things when you run an fsck.

Honestly though, unless you need the journaling capabilities, look at
the non-journaled systems like ext2 as well. In most situations, your
queue won't need to be journaled, and neither will your logs.

!DSPAM:476beb90310541644812091!



Re: [vchkpw] After 7 years of neglect Qmail is now ours

2007-12-03 Thread Michael Johnson
For those that don't mind Flash, there is also a video up on Google
Videos (http://video.google.com/videoplay?docid=-3147768955127254412)
where he announces it as well.

I just can't help but wonder if his action is too little too late.

 - Michael

Tren Blackburn wrote:
> Well, http://cr.yp.to has been his site for...ummm...I don't know when
> did time begin again? ;)
> 
> But yes, this would be the official place where the announcement would
> be. I must admit, I'm surprised, but happy qmail has been released. Just
> in time for Christmas too!
> 
> Regards,
> 
> Tren
> 
> - Original Message -
> From: Boris Pavlov <[EMAIL PROTECTED]>
> To: vchkpw@inter7.com 
> Sent: Mon Dec 03 07:41:34 2007
> Subject: Re: [vchkpw] After 7 years of neglect Qmail is now ours
> 
> Quey wrote:
>> Dan J Bernstein has recently put Qmail into the public domain,
>>  _http://cr.yp.to/qmail/dist.html_
>>
>>
>>
> 
> HAH! Is this confirmed in some way?
> 
> 
> 
> 

!DSPAM:475427fc32002121017011!



Re: [vchkpw] Possible Quota Bug

2007-11-09 Thread Michael Johnson
Steve Cole wrote:
> On Friday 09 November 2007, Michael Johnson wrote:
>> I've recently noticed strange behavior with user quotas after an upgrade
>> to vpopmail 5.4.25 from 5.4.18. The upgrade also moved from the cdb
>> backend to the MySQL backend (due to locking issues I was experiencing).
>>
>> When delivering a message, the size of the message is placed twice in
>> maildirsize. When deleting the message, it is removed only once. This
>> causes quota usage to grow over time, disconnected from the actual size
>> of the mailbox.
> 
> I am seeing this as well.  I haven't had time to track down the issue.  
> Thanks!
> 
> 

What version and backend are you using? The better it can be narrowed,
the easier it will be to determine what change broke it.

 - Michael

!DSPAM:4734c62332002121615507!



Re: [vchkpw] smtp after pop

2007-11-09 Thread Michael Johnson
ckubu wrote:
> Hi,
> 
> I have vpopmail running with smtp-after-pop functionality 
> (--enable-roaming-users). the pop-daemon is from qmail. this works fine for 
> normal (unsecure) connection via port 110. but this doesn't work if 
> connecting via strunnel on port 995. I know, thats correct, because stunnel 
> is connecting to qmail's pop3 daemon from ip 127.0.0.1. 
> 
> Is there any setup known, that results in writing users ip-address to 
> open-smtp file so that smtp-after-pop work's even if connected via stunnel ?
> 
> best wishes
> christoph
> 
> 
> 
> 
> 

As STunnel proxies the connection, it probably looks like a connection
on 127.0.0.1 to the SMTP server.

You might want to look at using ucspi-ssl
(http://www.superscript.com/ucspi-ssl/intro.html) which is an
SSL-enabled version of tcpserver.

 - Michael

!DSPAM:4734b96c32001702069144!



[vchkpw] Possible Quota Bug

2007-11-09 Thread Michael Johnson
I've recently noticed strange behavior with user quotas after an upgrade
to vpopmail 5.4.25 from 5.4.18. The upgrade also moved from the cdb
backend to the MySQL backend (due to locking issues I was experiencing).

When delivering a message, the size of the message is placed twice in
maildirsize. When deleting the message, it is removed only once. This
causes quota usage to grow over time, disconnected from the actual size
of the mailbox.

For example, this is the maildirsize for a 100 megabyte mailbox at the
initial creation of the quota:

104857600S
356213 62


After that account got a 1.6 megabyte e-mail, this was the same file:

104857600S
356213 62
1725576 1
1725657 1


You will see that there are two entries in the file with slightly
different sizes.

After deleting the e-mail from the box (POP3 and IMAP both exhibit the
same issue), the file read:

104857600S
356213 62
1725576 1
1725657 1
-1725657 -1


Is this a known bug or configuration issue, and if so, is there a fix
for it, or a clue someone can smack me with?

For reference purposes:

vpopmail: 5.4.25
Courier-IMAP: 4.2.1
OS: Slackware Linux 11.0 with kernel 2.6.20.3
Mailboxes are stored on an NFS volume mounted with options noatime,soft,tcp

 - Michael

!DSPAM:4734b8b132002082413612!



Re: [vchkpw] new server OS suggestions

2007-11-04 Thread Michael Johnson
Quey wrote:
> Michael Johnson wrote:
>> It is nice to use Slackware because it doesn't do funky stuff with
>> software. qmail installs fairly easily and fits in decently well. Oh, it
>> also works great on slower hardware because you can strip services to
>> the bare essentials easily and thus leave more resources for the actual
>> functions it needs to do.
>>
>>   
> and boots in 1/8th of the time RHES/CentOS does :)
> 
> 

Likely because RH actively probes for new hardware on every boot and
also launches a bunch of processes. While you can cut all that out and
make it boot fast, it takes a lot of work.

>> The only downside to Slackware is that it doesn't use PAM, so you need
>> to make local login accounts. Personally, I don't like PAM (it has had
>> many security issues in the past) and qmail doesn't use it, so it isn't
>> a big thing. Also, Slackware doesn't hold your hand on dependencies, but
>> if you are a decent system administrator, you shouldn't have problems
>> with that.
>>
>>   
> Eh? for what do you create local login accounts?
> 
> 
> 

I follow the rule that one should never log in directly as root. In this
case, you need at least one mortal local account as an initial login.

 - Michael

!DSPAM:472e589f32001838832398!



Re: [vchkpw] new server OS suggestions

2007-11-04 Thread Michael Johnson
Rainer Duffner wrote:
> Quey schrieb:
>> Remo Mattei wrote:
>>> Hello I have a few questions since I am building a new server. Now the
>>> box is running centos 4.5 with qmail and fuzzyocr, spamassassin,dspam
>>> and tmda with simscan the load during the day is hi since it's an old P3
>>> 1.2mgz and 1.5g of mem. this box is running mysql 4.1.x, vpopmail 5.4.17
>>> with the DB already modified for the 5.4.20. I was looking at the new
>>> centos 5 with mysql 5. Anyone has done the installation on this distro
>>> or is anyone suggesting any other.
>>>
>>> Thanks.
>>>
>>>
>>>
>>>   
>> Sl;ackware 12, MySQL 5,  Qmail, MailScanner, S.A and so on...
>> MailScanner has the advantage of processing for spam/viruses in batch
>> mode, thereby not holding open smtp connections and running multiple
>> copies of everything, also nicely does phishing fraud tests and bad
>> files and so on.
>>
>> I've used RH based OS's before and trust me, for servers, I'd never
>> use anything but Slackware now, its modern, clean and lean and not
>> really modified from what all the programs were in tarball releases,
>> which = less problems and less required updates because the likes of
>> RH and co have not butchered it to bits.
> 
> 
> But it's still Linux ;-) Who would want to run a linux-distribution when
> most of the software he wants are not included in the packaging-system?
> I try to run as much as possible on FreeBSD.
> FreeBSD has most of the stuff that is needed for a Toaster in the ports
> - and what is missing is on http://mail-toaster.org/
> 
> I tried CentOS5 once, but I'm not sure if I could get happy with it.
> E.g. I can't seem to be able to get around the 32bit vs. 64bit
> package-mess (I tried the 64 bit version inside VMware).
> 
> 
> 
> 
> cheers,
> Rainer
> 
> 
> 
> 
> 
> 
> 
> 
> 

Slackware is actually fairly nice for this. I'm running on Slackware
11.0 using qmail + vpopmail with MySQL auth and NFS mounted mailboxes. I
have a different server handle spam and virus scanning so I can optimize
each for the task they handle.

It is nice to use Slackware because it doesn't do funky stuff with
software. qmail installs fairly easily and fits in decently well. Oh, it
also works great on slower hardware because you can strip services to
the bare essentials easily and thus leave more resources for the actual
functions it needs to do.

The only downside to Slackware is that it doesn't use PAM, so you need
to make local login accounts. Personally, I don't like PAM (it has had
many security issues in the past) and qmail doesn't use it, so it isn't
a big thing. Also, Slackware doesn't hold your hand on dependencies, but
if you are a decent system administrator, you shouldn't have problems
with that.

As for choosing what to use, you shouldn't base your decision on what
has a "toaster". You should instead learn how the system is put together
so you can diagnose issues and fix problems. Use the "toaster" and other
items as a guide in assembly, not the actual solution.

My personal procedure on installing is a combination of jms' scripts and
patches, some points in QMR, and my own preferences (and limitations,
I'm stuck with pop-before-smtp). I'd be happy to send a copy of my
install notes if anyone is interested.

 - Michael

!DSPAM:472e15ff32001688120240!



Re: [vchkpw] busy try again later error

2007-10-10 Thread Michael Johnson
Rick Macdougall wrote:
> 
> And you have about 6K users ???  Our server with about 30K users almost
> never goes over 40 concurrent connections, and we do have quite a few
> users checking every minute.
> 
> Are you sure there isn't some issue with authentication or perhaps I/O
> that is slowing down the pop connections ?
> 
> Regards,
> 
> Rick
> 

Yes, the processes are a bit overkill, and we maybe have 100 concurrent
connections as many of our customers use e-mail as a file delivery
service and so utilize the connection for some time when getting messages.

I don't believe I remembered to note that the mailboxes are on an NFS
mount. The filesystem on that server is JFS mounted with the noatime
option. The connection between the mail and file server is on a private
switch with the file server being on a gigabit port, and the mailserver
on a 100 mbit port. Perhaps it could be some weird locking issues with
the cdb files over NFS, but I would think that would have exhibited
itself before now when the office staff all connects to get mail.

This is a new problem. It started in September and we haven't added many
new accounts since then, maybe 100 domains. Nothing mail-related on the
mail server, and nothing on the fileserver has changed since before that
time.

 - Michael


Re: [vchkpw] busy try again later error

2007-10-10 Thread Michael Johnson
Rick Macdougall wrote:
> Michael Johnson wrote:
>> I don't have that file, so I'm using the default (7200 then).
>>
>> How would this have an effect on POP3 connections?
>> ___________
>> Michael Johnson  909-740-3156 x3163
>> System Administrator  [EMAIL PROTECTED]
>> PhD Computing  http://www.phdcomputing.net/
>>
>>
>> Rick Macdougall wrote:
>>> Michael Johnson wrote:
>>>> -BEGIN PGP SIGNED MESSAGE-
>>>> Hash: SHA1
>>>>
>>>> I've been running into an issue on our mail server recently. As traffic
>>>> has been increasing on it, I've been getting the response that I listed
>>>> in the subject more often, and now customers are also seeing it (busy
>>>> try again later!). Of course, this response causes any mail clients to
>>>> prompt for password, making it rather annoying.
>>>>
>>> Is your timeoutsmtpd set in /var/qmail/control to something lower than
>>> 7200 ?  (I'm using 180, I know at least one person on this list is using
>>> 60).
>>>
> 
> Heh, sorry. I just glanced through it and assumed it was an smtp error.
> I didn't see any mention of pop3 in there.
> 
> You could increase the number of allowed pop3 connections though.  The
> default is 40.  You can increase it by using the -c xx flag with
> tcpserver, where xx is your required number of connections.
> 
> Regards,
> 
> Rick
> 
> 
> 

Sorry if I wasn't clear on which protocol is having the issue.

I'm using sslserver from the ucspi-ssl package so I can offer
ssl-encrypted connections as well. The non-encrypted process is set to
300 connections, and the ssl process is at 200.

 - Michael


Re: [vchkpw] busy try again later error

2007-10-10 Thread Michael Johnson
I don't have that file, so I'm using the default (7200 then).

How would this have an effect on POP3 connections?
_______
Michael Johnson  909-740-3156 x3163
System Administrator  [EMAIL PROTECTED]
PhD Computing  http://www.phdcomputing.net/


Rick Macdougall wrote:
> Michael Johnson wrote:
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> I've been running into an issue on our mail server recently. As traffic
>> has been increasing on it, I've been getting the response that I listed
>> in the subject more often, and now customers are also seeing it (busy
>> try again later!). Of course, this response causes any mail clients to
>> prompt for password, making it rather annoying.
>>
> 
> Is your timeoutsmtpd set in /var/qmail/control to something lower than
> 7200 ?  (I'm using 180, I know at least one person on this list is using
> 60).
> 
> Regards,
> 
> Rick
> 
> 
> 


[vchkpw] busy try again later error

2007-10-10 Thread Michael Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I've been running into an issue on our mail server recently. As traffic
has been increasing on it, I've been getting the response that I listed
in the subject more often, and now customers are also seeing it (busy
try again later!). Of course, this response causes any mail clients to
prompt for password, making it rather annoying.

The closest I can find to the problem is an old message on this list
back in 2005 from Gaetan Minet
(http://www.mail-archive.com/vchkpw@inter7.com/msg22797.html).

That particular fix won't help since vpopmail has it already. Does
anyone have some suggestions for detecting the cause of this issue?


Server Specs:
Dual 1.8gHz Xeon Processors (P4 family)
1gB RAM


Software:
OS: Slackware Linux 11.0 with kernel 2.6.20.3
vpopmail: 5.4.18
Filesystem: ReiserFS with noatime option


I am using cdb user maps with pop-before-smtp. I have 2112 domains on
the system (counting aliased domains) and 6034 accounts (counting
forwards and aliases).

I am also using validrcpthosts, but running generation on a cron every
15 minutes instead of via pipe (pipe method was causing slowdowns on
qmailadmin).

- --
_______
Michael Johnson  909-740-3156 x3163
System Administrator  [EMAIL PROTECTED]
PhD Computing  http://www.phdcomputing.net/
-BEGIN PGP SIGNATURE-

iD8DBQFHDR6KehyONlqb1LIRAt9XAKDV0RD/SWrEbMaHZVtVKl83DIDGDwCg81ko
ZA+VLuoTWXmdPLyu7yaNcao=
=QXgb
-END PGP SIGNATURE-


Re: [vchkpw] Compiling vpopmail on Opensolaris

2007-07-26 Thread Michael Johnson
I'm not sure if OpenSolaris is still using the old Solaris make utility
(which usually doesn't work for stuff written for the GNU tools), or if
they have moved to GNU make. See if you have a "gmake" command and use
that instead.
_______
Michael Johnson
System Administrator  [EMAIL PROTECTED]
PhD Computing  http://www.phdcomputing.net/


Patrick Ale wrote:
> Hi all,
> 
> Today I tried to compile vpopmail on a x86 box running Opensolaris.
> During the compilation I got the following error:
> 
> # make
> make  all-recursive
> Making all in cdb
> gcc  -L/usr/sfw/lib/openssl -Wall  -I/usr/sfw/include/openssl -o
> vchkpw  vchkpw.o md5.o hmac_md5.o libvpopmail.a -lcrypt
> Undefined   first referenced
> symbol in file
> warnlibvpopmail.a(libvpopmail_a-vpopmail.o)
> ld: fatal: Symbol referencing errors. No output written to vchkpw
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `vchkpw'
> Current working directory /export/qmail/qmailrocks/vpopmail-5.4.13
> *** Error code 1
> The following command caused the error:
> set fnord $MAKEFLAGS; amf=$2; \
> 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) \
>   || case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
> 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 /export/qmail/qmailrocks/vpopmail-5.4.13
> *** Error code 1
> make: Fatal error: Command failed for target `all'
> 
> 
> Do you guys have any idea what can be going on?
> 
> 
> Cheers,
> 
> Patrick
> 
> 


Re: [vchkpw] quota for a domain

2007-06-06 Thread Michael Johnson
Franck wrote:
> Hi,
> 
>> Hi
>>
>> i've a problem with quota support in vpopmail and vqadmin (vqadmin 2.3.6
>> and vpopmail 5.4.13)
>> Vpopmail config is in MysQl database in limits table.
>>
>> I've a domain with 200 account and quota 2000M
>> But i can't update quota more than 2000M with vqadmin or directly in the
>> limits table (diskquota and defaultquota  int12) :(
>>
>> What's the solution ?
>> If i put 0 in quota, is 0 like no limit ?
> 
> perhaps, i've found ...
> Int(12) = -2147483648 -> 2147483647
> and 2Gb in octet near 20
> 
> Can i changed int by bigint in table schema for diskquota and defaultquota ?
> Will vpopmail, vqadmin and qmailadmin always work ?
> 
> Franck

It isn't just a database thing, the actual code in the maildir++ patch
and in vpopmail needs to be changed.

>From a while back on the list:

** snip **

From: Tom Collins
Date: Mon, 15 Jan 2007 15:32:35 -0800
Subject: Re: [vchkpw] vpopmail max quota of 2GB

On Jan 15, 2007, at 9:29 AM, Iulian Liviu Ionescu wrote:
> It seems that there's a limit in quota at 2GB. What are the options
> available to have mail accounts with more than 4 GB quota?

One options: rewrite the Maildir++ patches for qmail and POP/IMAP
servers, along with vpopmail's quota support code to use a larger
variable type to store the sizes (long long?).  It might be possible
to work around it with a hack of storing message sizes in bytes, but
the total of the sizes (and the user's quota) in KB.  This would get
you up to 2TB quotas.

foreach message_size do {
   bytes += message_size;
   kbytes += bytes / 1024;
   bytes = bytes % 1024;
}

I'm sure that at the time it was written, 2GB seemed like an insane
quota for a mailbox.  Unfortunately it's now a realistic number.

Keep in mind that if you've got 2GB mailboxes, it probably requires
lots of resources to recalculate disk usage.  Consider running a
nightly cronjob that calculates disk usage for all email users and
warns the ones who are over "quota".  If they stay over for a certain
period, bill them or turn their account off.

Not a pretty solution, but I'm afraid there's no easy way to support
quotas over 2GB.

** snip **

___
Michael Johnson
System Administrator  [EMAIL PROTECTED]
PhD Computing  http://www.phdcomputing.net/



Re: [vchkpw] Anti-spam solution - favs?

2007-05-29 Thread Michael Johnson
One of the new tricks spammers are using is placing their spammy text in
an image and trying to bypass Bayesian scanning with junk text. The
pharma and stock spams seem to be particularly fond of this tactic.

I've been using the FuzzyOCR plugin for SpamAssassin
(http://fuzzyocr.own-hero.net/) to combat this. It has worked very well,
but does require a bit of setup to get going.


ISP Lists wrote:
> I've got vpopmail/netqmail built using typical clamav and spamassassin
> (clamd, spamd).  I've got XBL filtering and CHKUSER enabled on smtp.  I'm
> actively training my Bayes filters.  I do not use verified sender or SPF.
> 
> Spamassassin's local.cf look like this:
> 
> required_score 6
> rewrite_header Subject [SPAM]
> report_safe 0
> use_pyzor 0
> use_razor2 1
> use_dcc 0
> dcc_home /var/dcc
> skip_rbl_checks 0
> rbl_timeout 3
> score RCVD_IN_BL_SPAMCOP_NET 2
> use_bayes 1
> bayes_auto_learn 1
> bayes_path /home/spamd/.spamassassin/bayes
> 
> 
> I STILL find a good bit of spam is getting through. (pharma, mortgages,
> stock hype, etc)
> 
> I wonder whether there are other/better anti-spam tools I should use to
> cull the spam more effectively.  Suggestions most welcome.
> 
> 
> 
> 
> 


Re: [vchkpw] Mailbox exists but vuserinfo says it doesn't

2006-11-01 Thread Michael Johnson
Well, the issue has been solved (and it wasn't vpopmail at all).

There was a slight disconnect between the client and me, so while I saw
the box, it was misspelled on the system (missing an "e") causing the
problem.

Yet another example for the box labeled "check the obvious things first".

*sigh*


Re: [vchkpw] Mailbox exists but vuserinfo says it doesn't

2006-11-01 Thread Michael Johnson
Yes. The problem user is the top user in the file.

Oddly enough, vuserinfo is currently showing the user as existing.


I also checked one of the old domains that hasn't been touched since the
upgrade, and the vpasswd format was the same as I indicated. (We were
running 5.2.1)

 - Michael


Rick Macdougall wrote:
> Michael Johnson wrote:
>> Checked against a domain added just yesterday, and the entries match
>> in fields:
>>
>> _boxname_:_cryptpass_:1:0:_comment_:_directorypath_:_quota_:_clearpass_
>>
>> ___
>>>
>>> Check the vpasswd file.  Most likely you are missing a : at the end
>>> of that user because the old 5.2 didn't have one of the fields that
>>> 5.4 does,
>>>
>>> Add the : at the end f the users line and run vpasswd
> 
> Hi,
> 
> All the lines in the vpasswd file ?  Including the one before the user
> with the problem ?
> 
> Regards,
> 
> Rick
> 
> 
> 


Re: [vchkpw] Mailbox exists but vuserinfo says it doesn't

2006-11-01 Thread Michael Johnson

Checked against a domain added just yesterday, and the entries match in fields:

_boxname_:_cryptpass_:1:0:_comment_:_directorypath_:_quota_:_clearpass_

___
Michael Johnson   626-852-9696 Ext. 103
System Administrator  [EMAIL PROTECTED]
PhD Computing  http://www.phdcomputing.net/

Rick Macdougall wrote:

Michael Johnson wrote:
I just encountered a strange problem with a user account that vpopmail 
seems to think doesn't exist (sometimes).


I was previously on vpopmail 5.2 and just upgraded to 5.4 recently. 
I'm not sure if that might be part of the problem.


One of my clients had sent up a mailbox and then added a separate 
forward to an outside account with the same name. This was working, 
but recently they dropped that account and wanted to get their mail 
directly.


I went into the system and removed the forward and checked that the 
mailbox was still existent (it was), however, that user cannot log 
into the account.


When they try to log in over pop3, the following message shows in logs:

vchkpw-pop3: vpopmail user not found [EMAIL PROTECTED]

If I look at the domain via vqadmin or qmailadmin, the account shows 
properly. If I use vuserinfo -D theirdomain, the account shows up in 
the listing. However, if I just look up their account (via vuserinfo 
[EMAIL PROTECTED]), I am told there is no such user.


I have tried removing the mailbox, and re-creating it, but the problem 
persists. Permissions look good, as does ownership.


Any ideas on this behavior?



Hi,

Check the vpasswd file.  Most likely you are missing a : at the end of 
that user because the old 5.2 didn't have one of the fields that 5.4 does,


Add the : at the end f the users line and run vpasswd


Regards,

Rick





[vchkpw] Mailbox exists but vuserinfo says it doesn't

2006-11-01 Thread Michael Johnson
I just encountered a strange problem with a user account that vpopmail seems to 
think doesn't exist (sometimes).


I was previously on vpopmail 5.2 and just upgraded to 5.4 recently. I'm not sure 
if that might be part of the problem.


One of my clients had sent up a mailbox and then added a separate forward to an 
outside account with the same name. This was working, but recently they dropped 
that account and wanted to get their mail directly.


I went into the system and removed the forward and checked that the mailbox was 
still existent (it was), however, that user cannot log into the account.


When they try to log in over pop3, the following message shows in logs:

vchkpw-pop3: vpopmail user not found [EMAIL PROTECTED]

If I look at the domain via vqadmin or qmailadmin, the account shows properly. 
If I use vuserinfo -D theirdomain, the account shows up in the listing. However, 
if I just look up their account (via vuserinfo [EMAIL PROTECTED]), I am told there is 
no such user.


I have tried removing the mailbox, and re-creating it, but the problem persists. 
Permissions look good, as does ownership.


Any ideas on this behavior?


Mail Server Info:
OS: FreeBSD
vpopmail version: 5.4.17
qmailadmin version: 1.2.10
Auth style: cdb



--

_______
Michael Johnson   626-852-9696 Ext. 103
System Administrator  [EMAIL PROTECTED]
PhD Computing  http://www.phdcomputing.net/


Re: [vchkpw] Troubleshooting enable-roaming-users

2006-11-01 Thread Michael Johnson
By default, there is a file called ~vpopmail/etc/open-smtp that is in the same 
format as tcp.smtp. The first thing to do would be to check that this file 
exists and your IP has been placed in it. That will ensure at least the first 
half of the process is working.


After every authentication where an IP is added, this file is combined with 
/etc/tcp.smtp and hashed in /etc/tcp.smtp.cdb. You will also want to check that 
this file is being created and is writable by your vpopmail user.


___
Michael Johnson   626-852-9696 Ext. 103
System Administrator  [EMAIL PROTECTED]
PhD Computing  http://www.phdcomputing.net/

Quinn Comendant wrote:

Hi y'all

How can I troubleshoot why roaming users (POP-before-SMTP) isn't working for me? I've 
compiled vpopmail with --enable-roaming-users, and recompiled everything else after 
installing. But I still get a "553 sorry, that domain isn't in my list of allowed 
rcpthosts (#5.5.3 - chkuser)."  I'm not quite sure the mechanisms that allow this to 
work. vchkpw intercepts a pop/imap connection and appends the remote IP to a cdb file 
used by chkuser?

Thanks for any direction pointing.

Quinn




Re: [vchkpw] squirrel mail box

2006-10-24 Thread Michael Johnson
If you have filesystem access, you can delete the message files. They
are in the Maildir folder for each user. You can use the vuserinfo
command to find the user's folder.

Mail not marked as new will be in "cur". New mail will be in "new".
___________
Michael Johnson   626-852-9696 Ext. 103
System Administrator  [EMAIL PROTECTED]
PhD Computing  http://www.phdcomputing.net/


saimir hafizi wrote:
> Hi there,
> 
>  
> 
> Lately I can’t open emails in squirrel. I reaches the quote of 2600 emails.
> 
> How can I erase them manually in the server.
> 
>  
> 
> Thank you
> 
>  
> 


Re: [vchkpw] vdominfo bug report

2006-10-10 Thread Michael Johnson
You can use the bugtracker for the SourceForge project to submit the issue.

http://sourceforge.net/tracker/?group_id=85937&atid=577798

___
Michael Johnson   626-852-9696 Ext. 103
System Administrator  [EMAIL PROTECTED]
PhD Computing  http://www.phdcomputing.net/

Quinn Comendant wrote:
> Whew. I thought I was nuts. Does inter7 have a bug-tracker we can submit this 
> to?
> 
> Q
> 
> On Mon, 09 Oct 2006 23:38:10 -0600, Adam Cantwell wrote:
>> Anyhow, just letting you know you are not seeing things.
> 
> 


Re: [vchkpw] qmailadmin question

2006-09-05 Thread Michael Johnson
Saimir, next time please keep discussion on the list.

>From the file he sent, apache is running as www-data:www-data

___
Michael Johnson   626-852-9696 Ext. 103
System Administrator  [EMAIL PROTECTED]
PhD Computing  http://www.phdcomputing.net/

Remo Mattei wrote:
> what's the username that apache is running under? not were it is..
> 
> Remo
> 
> saimir hafizi wrote:
>> /usr/share/apache
>> /usr/share/apache/default-configs/apache
>> /usr/lib/apache
>> /var/lib/apache
>> /etc/apache
>>
>> -Original Message-
>> From: Remo Mattei [mailto:[EMAIL PROTECTED] 
>> Sent: Tuesday, September 05, 2006 1:59 PM
>> To: vchkpw@inter7.com
>> Subject: Re: [vchkpw] qmailadmin question
>>
>> who is apache running under?
>>
>> saimir hafizi wrote:
>>   
>>
>>
>>
>>   
> 
> 


Re: [vchkpw] qmailadmin question

2006-09-05 Thread Michael Johnson
That is just who owns those files. Check httpd.conf for lines like the
following:

User nobody
Group #-1

Then say what those read.

___
Michael Johnson   626-852-9696 Ext. 103
System Administrator  [EMAIL PROTECTED]
PhD Computing  http://www.phdcomputing.net/

saimir hafizi wrote:
> Remo,
> Am I missing anything?
> 
> -Original Message-
> From: Remo Mattei [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, September 05, 2006 2:06 PM
> To: vchkpw@inter7.com
> Subject: Re: [vchkpw] qmailadmin question
> 
> what's the username that apache is running under? not were it is..
> 
> Remo
> 
> saimir hafizi wrote:
>> /usr/share/apache
>> /usr/share/apache/default-configs/apache
>> /usr/lib/apache
>> /var/lib/apache
>> /etc/apache
>>
>> -Original Message-
>> From: Remo Mattei [mailto:[EMAIL PROTECTED] 
>> Sent: Tuesday, September 05, 2006 1:59 PM
>> To: vchkpw@inter7.com
>> Subject: Re: [vchkpw] qmailadmin question
>>
>> who is apache running under?
>>
>> saimir hafizi wrote:
>>   
>>
>>
>>
>>   
> 
> 
> 
> 
> 


Re: [vchkpw] qmail-spf-rc5.patch conflicts with qmail-smtpd-auth-0.5.6

2006-08-15 Thread Michael Johnson
You can always try applying the patch manually, or try applying the patches in 
the reverse order (sometimes that works).

___
Michael Johnson
System Administrator  [EMAIL PROTECTED]
PhD Computing  http://www.phdcomputing.net/

Bulent Kolay wrote:

Hello

I use vpopmail5.4  on qmail-1.03.

I patched qmail-smtpd-auth.0.5.6 on vpopmail5.4.

I want to use qmail-spf.patch on the same server but I get a conflict while
patching.

How can I patch both of them ?





Re: [vchkpw] cannot find -lmysqlclient

2006-08-09 Thread Michael Johnson
If the MySQL install is off the normal path you can use a few additional flags 
on the configure command to help vpopmail find MySQL.


--enable-incdir=/path/to/mysql/include/mysql
--enable-libdir=/path/to/mysql/lib/mysql

___
Michael Johnson   626-852-9696 Ext. 103
System Administrator  [EMAIL PROTECTED]
PhD Computing  http://www.phdcomputing.net/

Bob Hutchinson wrote:

On Tuesday 08 August 2006 12:55, Aneesh Joseph wrote:

Hi ,

I am getting the following error when installing vpopmail with
mysql(vpopmail-5.4.9 + Mysql 5). any idea ?

gcc  -g -O2 -Wall   -o vchkpw  vchkpw.o md5.o hmac_md5.o libvpopmail.a
-L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt /usr/bin/ld: cannot find
-lmysqlclient
collect2: ld returned 1 exit status
make[2]: *** [vchkpw] Error 1
make[2]: Leaving directory `/downloads/qmailrocks/vpopmail-5.4.9'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/downloads/qmailrocks/vpopmail-5.4.9'
make: *** [all] Error 2


either you need to install the mysqlclient libraries or they are not on the 
library path.



Thanks & Regards,

Aneesh Joseph
System Administrator
Internet Sales Promotion Group
28/118A, Parapilly Lane, Panampilly Nagar,
Cochin , Kerala -682036
Ph : 91 484 4010972, Mobile :91 9895012331
E-mail : [EMAIL PROTECTED] ; [EMAIL PROTECTED]




Re: [vchkpw] POP3 Not Showing Messages

2006-01-12 Thread Michael Johnson
Such a simple thing... That'll teach me to trust NTP is running on the 
machine without a double check. Thanks.

___
Michael Johnson   626-852-9696 Ext. 103
System Administrator  [EMAIL PROTECTED]
PhD Computing  http://www.phdcomputing.net/

Rick Macdougall wrote:

Michael Johnson wrote:

I am in the middle of testing a migration of a vpopmail system and am 
having strange behavior with POP3. Basically, the new server shows 
that there are 0 messages in the test mail account when there are 
actually messages. The old server (with access to the same mail 
directory) sees the messages just fine. I can confirm that it is only 
pop3 as IMAP4 on the new server shows the messages just fine.


There are a few differences in how the servers are set up, but it 
would be a long message if I were to detail them.


Does anyone have a short list of items to check? I can provide more 
details if needed.





Hi,

Check the date and time on the two machines.  I believe you will find 
they are not the same.


Regards,

Rick





[vchkpw] POP3 Not Showing Messages

2006-01-12 Thread Michael Johnson
I am in the middle of testing a migration of a vpopmail system and am 
having strange behavior with POP3. Basically, the new server shows that 
there are 0 messages in the test mail account when there are actually 
messages. The old server (with access to the same mail directory) sees 
the messages just fine. I can confirm that it is only pop3 as IMAP4 on 
the new server shows the messages just fine.


There are a few differences in how the servers are set up, but it would 
be a long message if I were to detail them.


Does anyone have a short list of items to check? I can provide more 
details if needed.



--

___
Michael Johnson   626-852-9696 Ext. 103
System Administrator  [EMAIL PROTECTED]
PhD Computing  http://www.phdcomputing.net/