Re: [vchkpw] domain to alias failure

2011-04-08 Thread Jukka Kurkela

On 24.3.2011 16:34, Remo Mattei wrote:

ok I digged in a little more and the problem is valias domain. I have
5.4.32 recompiled and when I send it to a user that has a virtual domain
it bouces back if I send it to a virtual user that has a full domain it
goes through. Any suggestions?

thanks 


try valias -s realdomain.tld and then valias -s aliasdomain.tld (that is 
alias of realdomain.tld) and see if output is the same.


also you never told what kind of recipient validation you are using. (or 
anything else about your setup)


!DSPAM:4d9ecb5332711532511742!



Re: [vchkpw] domain to alias failure

2011-03-23 Thread Jukka Kurkela

On 23.3.2011 17:09, Remo Mattei wrote:

Hello all I have a domain called xxyyxx.us and then the main domain
which is an alias to the xxyyxx.us which is xxyyxx.com when I send an
email to a mailing list to the .com it bouces back if I send it to the
.us it works. Any suggestions?
Also the .us is expiring and I wonder if anyone has any suggestions on
how to move those accounts from .us to .com

thanks





Quite a lot of information missing here.. But if you are using some sort 
of validation of recipients (validrcptto maybe), it could be a problem 
with valias -s not working correctly for aliased domains (at least in 
older vpopmail versions).


I fixed this in 5.4.26 couple of years back with this patch
http://qmail.tjc.fi/patches:valias-5.4.26.realdomain.patch

++jukka

!DSPAM:4d8a24e032712142881669!



Re: [vchkpw] Migrating Vpopmail to a new server

2010-01-11 Thread Jukka Kurkela

Srdan Dukic wrote:

Hi,

I've been given the job of migrating one of our existing Vpopmail 
servers accross to a new machine. I have successfully installed the 
latest version of Vpopmail on the new machine, but I have some questions 
about the next part of the migration. The current server has just under 
5000 domains and subdomains and each of those has about 3-4 users each.


What is the process for migrating from one Vpopmail install to another? 
Can I just recursively copy accross all of the files under 
'/home/vpopmail/domains'? And if so, is there some command I have to run 
after the copy accross to re-index the directories or Maildirs? The 
authentication system used is just the default 'CDB' file format on both 
of the servers.


Another, related question is that I'm trying to find out the version of 
the Vpopmail that is installed on the old server, but am having some 
trouble. I've tried running some of the programs under the 
'/home/vpopmail/bin' directory with the '-v' and '--version' flags, but 
was unable to get a version number.


Thank you

--
Srđan Đukić



You can find quite complete answer to the domain migration part from 
John Simpson's web site:


http://qmail.jms1.net/scripts/migrate-domain.shtml

++jukka

!DSPAM:4b4bfe5032711286718033!



Re: [vchkpw] Migrating Vpopmail to a new server

2010-01-11 Thread Jukka Kurkela
You mean CDB is way faster, right? if not, can you provide some 
benchmark results or even explanation?


++jukka

Remo Mattei wrote:
I would not use CDB just my point of view. Go to mysql way faster and 
better for all those domains you got. I used rsync on my server when I 
moved over to the new one as long as you got the same userid (vpopmail) 
you should be good. The question is do you have users email on your 
server or do they  pop that? If they pop3 it that’s easy by using learn 
password make sure they use that for the first time which sets their 
password to what they have now (pop3) as far as I know does not work 
with imap.


Just my 2 cents,

Remo


On 1/11/10 20:55 , Srdan Dukic srdan.du...@gmail.com wrote:

Hi,

I've been given the job of migrating one of our existing Vpopmail
servers accross to a new machine. I have successfully installed the
latest version of Vpopmail on the new machine, but I have some
questions about the next part of the migration. The current server
has just under 5000 domains and subdomains and each of those has
about 3-4 users each.

What is the process for migrating from one Vpopmail install to
another? Can I just recursively copy accross all of the files under
'/home/vpopmail/domains'? And if so, is there some command I have to
run after the copy accross to re-index the directories or Maildirs?
The authentication system used is just the default 'CDB' file format
on both of the servers.

Another, related question is that I'm trying to find out the version
of the Vpopmail that is installed on the old server, but am having
some trouble. I've tried running some of the programs under the
'/home/vpopmail/bin' directory with the '-v' and '--version' flags,
but was unable to get a version number.

Thank you





!DSPAM:4b4c254a32717544416713!



Re: [vchkpw] Delivery of local message results in Aack,_child_crashed

2009-12-17 Thread Jukka Kurkela

Paul H. Giesberts wrote:


Paul H. Giesberts wrote:

Dear All,

I have installed the latest qmail-net as per life with qmail on a RHES 5.3, 
then vpopmail-5.4.28, which I upgraded to 5.4.30. (And dovecot 1.2.8)

I get a Aack,_child_crashed upon mail delivery, when I create:  home/vpopmail/domains/mydomain.com/firstname.lastname/.qmail 


with a local delivery instruction in the .qmail file that reads: 
/home/vpopmail/domains/mydomain.com/firstname.lastname/Maildir/

If I remove the .qmail file it works fine. If I create a .qmail file with a 
forward to an external address it works fine. It's when the delivery 
instruction is local that it fails (./Maildir/ does not work either).

Can you please help?

By the way, what I am after is a local delivery PLUS a forward for a user. Also 
this is NOT yet a production server

Thanks in advance,
Paul Giesberts








try this:

go to http://www.mail-archive.com/vchkpw@inter7.com
and search for aack, child crashed 5.4.30

++jukka


Hi Jukka,

Thanks for your reply. I have seen that post and tried that fix on 5.4.28 and 
now I have tried it on 5.4.30. Unfortunately it has not cured the problem... 
Any other ideas?

Thanks again Paul.


The Solution (for me) ---
I use safecat in the . qmail file

So in /home/vpopmail/domains/domain.com/user/ I have a .qmail file that reads:

|safecat /home/vpopmail/domains/domain.com/user/Maildir/tmp 
/home/vpopmail/domains/domain.com/user/Maildir/new
anot...@email.address ### another email address on a new line that I forward 
email to. ###


--


Regards,
Paul









I meant this solution (by Matt Brookings):



Try this:

cat  ~vpopmail/etc/vusagec.conf  __EOF__
Server:
  Disable = True;
__EOF__



++jukka

!DSPAM:4b2a6cba32718701512120!



Re: [vchkpw] Delivery of local message results in Aack,_child_crashed

2009-12-15 Thread Jukka Kurkela

Paul H. Giesberts wrote:

Dear All,

I have installed the latest qmail-net as per life with qmail on a RHES 5.3, 
then vpopmail-5.4.28, which I upgraded to 5.4.30. (And dovecot 1.2.8)

I get a Aack,_child_crashed upon mail delivery, when I create:  home/vpopmail/domains/mydomain.com/firstname.lastname/.qmail 


with a local delivery instruction in the .qmail file that reads: 
/home/vpopmail/domains/mydomain.com/firstname.lastname/Maildir/

If I remove the .qmail file it works fine. If I create a .qmail file with a 
forward to an external address it works fine. It's when the delivery 
instruction is local that it fails (./Maildir/ does not work either).

Can you please help?

By the way, what I am after is a local delivery PLUS a forward for a user. Also 
this is NOT yet a production server

Thanks in advance,
Paul Giesberts








try this:

go to http://www.mail-archive.com/vchkpw@inter7.com
and search for aack, child crashed 5.4.30

++jukka

!DSPAM:4b27cbe932716782220497!



Re: [vchkpw] vdeliver perimission denied for vadddomain -u

2009-12-04 Thread Jukka Kurkela
rather change the group of vpopmail.mysql to vchkpw and let it be in 
mode 640.. it contains the password for the database, and if anyone who 
don't need to know it has shell access, its a security risk.


++jukka

Michael Mussulis wrote:

Tom/Matt,

I recompiled with spamassassin and maildrop, reinstalled, 
and vpopmail.mysql went back to mode 640, which caused this error:


@40004b184f6a0be9e37c new msg 207176
@40004b184f6a0be9ef34 info msg 207176: bytes 496 from 
r...@localhost.localhost qp 15404 uid 0
@40004b184f6a0be9f704 starting delivery 1: msg 207176 to local 
test10.com-postmas...@test10.com

@40004b184f6a0bea02bc status: local 1/10 remote 0/120
@40004b184f6a0cce9274 delivery 1: deferral: 
vmysql:_can't_read_settings_from_/usr/local/hcp/vpopmail/etc/vpopmail.mysql/vdelivermail:_deferred,_database_down/


As soon as I changed to mode 644, it worked instantly.

@40004b184fe21a1183ec starting delivery 7: msg 206333 to local 
test10.com-postmas...@test10.com

@40004b184fe21a119774 status: local 1/10 remote 0/120
@40004b184fe70d156744 delivery 7: success: 
LibClamAV_Error:_cl_cvdhead:_Can't_open_file_/var/lib/clamav/daily.cvd/maildrop:_non-filtered_mail_delivery/did_0+0+1/

@40004b184fe70da581e4 status: local 0/10 remote 0/120
@40004b184fe70da58d9c end msg 206333

Tom, you're my hero! :)

Now to get rid of that annoying clamav error...

Mike.

  From: t...@tomlogic.com
  Date: Thu, 3 Dec 2009 15:25:05 -0800
  To: vchkpw@inter7.com
  Subject: Re: [vchkpw] vdeliver perimission denied for vadddomain -u
 
  Sorry to just jump in at a random point in the conversation, but here 
are some thoughts.

 
  If you su to the mike4 user, can you run ~vpopmail/bin/vdelivermail 
(i.e., do you have execute access on the file)? It needs to be able to 
do that. Can you cd into the directory with email for that domain? Maybe 
a higher-level directory prevents you from changing into it (you'll 
likely have to cd directly to it).

 
  I think that vdelivermail is self-contained, so you probably don't 
need to have access to other binaries. Qmail-local runs with the uid/gid 
in the users/assign file.

 
  -Tom
 
 


View your other email accounts from your Hotmail inbox. Add them now. 
http://clk.atdmt.com/UKM/go/186394592/direct/01/ 




!DSPAM:4b18c3b132712015298635!



Re: [vchkpw] vdeliver perimission denied for vadddomain -u

2009-12-04 Thread Jukka Kurkela
Thats kind of odd.. did you make sure the user (mike4 i guess) is in 
that group?


++jukka

Michael Mussulis wrote:

Jukka,

Good point, but vpopmail.mysql is already group vchkpw and mode 640 
doesn't work. I tried and it gives:


@40004b19000104a3957c delivery 37: deferral: 
vmysql:_can't_read_settings_from_/usr/local/hcp/vpopmail/etc/vpopmail.mysql/vdelivermail:_deferred,_database_down/


Any other ideas?

Thanks,
Michael.

  Date: Fri, 4 Dec 2009 10:09:44 +0200
  From: jukka.kurk...@tjc.fi
  To: vchkpw@inter7.com
  Subject: Re: [vchkpw] vdeliver perimission denied for vadddomain -u
 
  rather change the group of vpopmail.mysql to vchkpw and let it be in
  mode 640.. it contains the password for the database, and if anyone who
  don't need to know it has shell access, its a security risk.
 
  ++jukka
 



Have more than one Hotmail account? Link them together to easily access 
both.  http://clk.atdmt.com/UKM/go/186394591/direct/01/ 




!DSPAM:4b19126232711894716758!



Re: [vchkpw] vdeliver perimission denied for vadddomain -u

2009-12-04 Thread Jukka Kurkela
you could hard code vpopmail's uid and vchkpw gid in that user_query.. 
not quite sure if that will do what you're looking for though.


++jukka

Michael Mussulis wrote:
Hmm... so basically so far from everything that's been said, it looks 
like the uid/gid values are being used for domain creation purposes, but 
not stored in the sql backend, which brings me to the issue of dovecot 
authentication via IMAP.


As mentioned before, I did a bog standard vpopmail build/install, 
followed by a bog standard dovecot build/install. If I add a domain, 
that is owned by vpopmail/vchkpw - dovecot imap authentication from 
squirremail works just fine.


However, if for a domain owned by a 'mike4', dovecot authentication 
fails with:


auth(default): Info: client in: AUTH1   PLAIN   service=imap   
 secured lip=127.0.0.1   rip=127.0.0.1   lport=143   rport=56559 
resp=AHBvc3RtYXN0ZXJAdGVzdDEwLmNvbQAxMjM=
auth(default): Info: vpopmail(postmas...@test10.com,127.0.0.1): lookup 
user=postmaster domain=test10.com

auth(default): Info: vpopmail(postmas...@test10.com,127.0.0.1): unknown user
auth(default): Info: new auth connection: pid=18526
auth(default): Info: client out: FAIL   1   user=postmas...@test10.com
imap-login: Info: Aborted login (auth failed, 1 attempts): 
user=postmas...@test10.com, method=PLAIN, rip=127.0.0.1, 
lip=127.0.0.1, secured


My dovecot.conf auth section is:

##
## Authentication processes
##

auth default {
   mechanisms = plain

   ### works for vpopmail/vchkpw domains
   #passdb vpopmail {
   #args =
   #}

   #userdb vpopmail {
   #}
   ###

   ### works for -u domains
   passdb sql {
  args = /usr/local/hcp/etc/dovecot-sql.conf
   }


   userdb sql {
   args = /usr/local/hcp/etc/dovecot-sql.conf
}

   user = vpopmail
   count = 1
   ssl_require_client_cert = no
}

and dovecot-sql.conf:

driver = mysql
connect = host=localhost port=3306 user=admin password= dbname=hcp
default_pass_scheme = CRYPT
password_query = SELECT CONCAT(pw_name, '@', pw_domain) AS user, 
pw_passwd AS password FROM vpopmail WHERE pw_name = '%n' AND pw_domain = 
'%d'
user_query = SELECT pw_dir as home, pw_uid AS uid, pw_gid AS gid FROM 
vpopmail WHERE pw_name = '%n' AND pw_domain = '%d'


Also, the pw_uid/pw_gid in vpopmail table MUST have the correct uid/gid 
values for the domain if created with -u, other dovecot will fail with:


dovecot: Error: User postmas...@test10.com not allowed to log in using 
UNIX UID 0 (root logins are never allowed)


Am I doing something wrong? Am I to understand that for any domain I 
create with -u, I then have to update vpopmail table with the real 
uid/gid values?


Thanks,
Michael.
(PS: I know part of the question is about dovecot, but it's closely tied 
to vpopmail authentication).


  Date: Fri, 4 Dec 2009 09:46:37 -0600
  From: m...@inter7.com
  To: vchkpw@inter7.com
  Subject: Re: [vchkpw] vdeliver perimission denied for vadddomain -u
 
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  Pavel V. Yanchenko wrote:
   Could it be that vdelivermail ignores groups? Is it possible at all?
 
  The groups file is not read by uid selection or execution system calls.
  - --
  /*
  Matt Brookings m...@inter7.com GnuPG Key FAE0672C
  Software developer Systems technician
  Inter7 Internet Technologies, Inc. (815)776-9465
  */
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.4.9 (GNU/Linux)
  Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
  iEYEARECAAYFAksZLt0ACgkQIwet2/rgZyyUBACcCRonIobcnTDT02rhYIr43oqA
  /94Ani3PjvK4TTtEB0fmsiHhCi9mbU8E
  =sHP6
  -END PGP SIGNATURE-


Use Hotmail to send and receive mail from your different email accounts. 
Find out how. http://clk.atdmt.com/UKM/go/186394592/direct/01/ 




!DSPAM:4b19a6ae32711147615442!



Re: [vchkpw] vdeliver perimission denied for vadddomain -u

2009-12-04 Thread Jukka Kurkela

dovecot, to get around the uid 0 error.

Michael Mussulis wrote:

sorry modify exactly which user_query? vopmail or dovecot?



snip

that one:

   user_query = SELECT pw_dir as home, pw_uid AS uid, pw_gid AS gid FROM
   vpopmail WHERE pw_name = '%n' AND pw_domain = '%d'



and a side note:
   Also, the pw_uid/pw_gid in vpopmail table MUST have the correct 
uid/gid

   values for the domain if created with -u, other dovecot will fail with:


that is not quite true, since its dovecot that fails, not vpopmail. so 
vpopmail's table does not need to have correct uid/gid, it works fine 
without them.


++jukka

!DSPAM:4b19ab2132711897023641!



Re: [vchkpw] Opinions needed

2009-01-21 Thread Jukka Kurkela
i don't really see 16 exabyte mailboxes in near future. But when the 
time comes for those, there should be 128bit processors and operating 
systems, so replacing the 64bit unsigned int with a 128bit one at that 
point should not be a too great deal. Maybe future proof by defining the 
thing in one place.


just my 2 cents.

++jukka

!DSPAM:4977794732681263011309!



Re: [vchkpw] OpenSolaris 8gb quota displays wrong

2008-12-14 Thread Jukka Kurkela

Rick Romero wrote:
  Ok, I have an odd problem.   I tried both vpopmail 5.4.17 and 5.4.25.  
This is functioning on multiple FreeBSD machines, but failing on 
OpenSolaris.   I've removed my maildirsize file multiple times.
If I look at my account with an 8gb quota, and 923Mb of data (du -h) 
with vuserinfo, it reports 100% full.


/usr/local/vpopmail/bin/vuserinfo r...@havokmon.com
name:   rick
dir:   /usr/home/vpopmail/domains/havokmon.com/rick
quota: 80
usage: 100%
:/usr/home/vpopmail/domains/havokmon.com/rick/Maildir# cat maildirsize
80S
848908105 29941

So that's obviously wrong.   Now, if I check my wife's account it's fine:
:/usr/home/vpopmail/domains/havokmon.com/rick/Maildir# 
/usr/local/vpopmail/bin/vuserinfo she...@havokmon.com

name:   shelby
dir:   /usr/home/vpopmail/domains/havokmon.com/shelby
quota: 2
usage: 49%
cat  /usr/home/vpopmail/domains/havokmon.com/shelby/Maildir/maildirsize
2S
98759830 1339

If I reduce my quota from 8GB to 900Mb, I get:
quota: 9S
usage: 94%

I've played with my quota a bit, and somewhere around 2.2GB (22) 
is where the math starts to fail.


So obviously something is not working right on OpenSolaris.
This works fine on FreeBSD machines, I'm building a new OpenSolaris 
server and am using the same MySQL backend, but a copy of the mailbox data.

#uname -a
SunOS sysvolOne 5.11 snv_101b i86pc i386 i86pc Solaris

It seems to be failing in maildirquota.c in qcalc:

   while (*quota = '0'  *quota = '9')
   i=i*10 + (*quota++ - '0');
   switch (*quota) {
   default:
   if (i  s)
   {
   *percentage=105;
   return (-1);
   }

When I set percentage to 105, that's what my output now says instead of 
100.  If I multiple i by 100 instead of 10.  It says I have 84% used.  
So for some reason it seems 932M of 8Gb is calculating to 840%.


I assume it' some kind of compiler issue, but I don't know where to look.

Rick




i would guess it fails at 2147483648 and off_t ends up being signed 
32bit, so it overflows.


i have no idea why that would happen, or should it happen always with 32 
bit kernel.


++jukka

!DSPAM:49459e7032311621919728!



Re: [vchkpw] quota warn message is broken in vpopmail with maildrop support enable

2008-10-13 Thread Jukka Kurkela
On Mon, 13 Oct 2008 13:41:25 +0200, Alessio Cecchi [EMAIL PROTECTED] wrote:
 Hi,
 
 I'm made many test before write this e-mail, but I think that when I
enable
 
 maildrop support in vpopmail (--enable-maildrop) and I place 
 an /etc/maildroprc (like src/vpopmail-5.4.26/maildrop/maildroprc.v2) the 
 warning about quota warn message not working.
 
 I'm working in a test environment configured as follow:
 
 shupp.org's toaster
 
 vpopmail 5.4.26 build with this options:
 ./configure --enable-mysql-limits 
 --enable-auth-module=mysql 
 --enable-logging=v 
 --enable-maildrop
 
 /etc/maildroprc is this 

http://vpopmail.cvs.sourceforge.net/viewvc/vpopmail/vpopmail/maildrop/maildroprc.v2?revision=1.3view=markup
 but I also tried with others without success.
 
 When a mailbox reach 90% or more the message
 ~vpopmail/domains/.quotawarn.msg 
 is copied only if maildrop for these user is disable (vmoduser -x 
 [EMAIL PROTECTED]), when maildrop support is enable the messagge is not
copied
 to 
 the user mailbox.
 
 Yes, I delete the file quotawarn in the user Maildir every time.
 
 Can be easily corrected this problem?
 
 Maybe just enough to anticipate the process that check the quota, and
copy
 the 
 file, and after running maildrop with maildroprc, but I do not know if
I'm 
 making a wrong assumption.
 
 Thanks


From README.quotas:

MAILDROP

If you use maildrop for filtering, compile it with maildirquota support
if you want to use it with vpopmail 5.1.1 and above with quotas.

did you compile maildrop with maildirquota supporta?

regards,
Jukka Kurkela

!DSPAM:48f335ef32311761212767!



[vchkpw] patch for valias

2008-10-11 Thread Jukka Kurkela
i wrote a patch for valias so valias -s domain lists email accounts for
aliased domains also. 
i made this patch when i encountered a problem with aliased domains not
listing any accounts to validrcptto.cdb.
John Simpson suggested i should send this patch to this list, so it could
be included in next version of vpopmail.

so here it is: http://www.tjc.fi/dist/valias-5.4.26.realdomain.patch

regards,
Jukka Kurkela


 

!DSPAM:48f10b6632315980350982!