Re: [vchkpw] Segmentation Fault with new Kernel

2006-05-12 Thread Bill Gradwohl
On Fri, 2006-05-12 at 08:11 -0700, Tom Collins wrote:
> What are you left with in private.ycc/1/qqq?  Has it created the 
> Maildir yet?  The subdirectories?  Can you provide some more lines from 
> the trace (maybe 30 or so) to help track down where it is in the code?
> 
> Also, cdb or one of the database backends?

After some more digging, I believe I discovered a bug in glibc. The code
that uncovered it was code I added to vpopmail on my own setup, so it
probably has no impact on anyone else. 

I added 2 calls to ftw() and its been working for over a year. The
latest kernel upgrades cause the 2nd ftw to seg fault immediately
without ftw ever calling my support function. I bugzilla'd it.

Sorry for the false alarm.

-- 
Bill Gradwohl




RE: [vchkpw] dublicate messages

2006-05-12 Thread saimir hafizi
Thank you for you response
This is happing only today in it is from the same sender
within the domain, but yesterday we didn't have this problem
Mean time I will check those files

-Original Message-
From: Ken Jones [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 12, 2006 5:15 PM
To: vchkpw@inter7.com
Subject: Re: [vchkpw] dublicate messages

saimir hafizi wrote:
> Hi there,
> 
>  
> 
> I am having lately dublicate messages from the same sender in qmail.
> 
> Does anyone know anything about this problem.
> 
> Your answer will be appreciated

Check your smtp and qmail log files.
They may be sending multiple copies

Ken Jones






Re: [vchkpw] dublicate messages

2006-05-12 Thread Ken Jones

saimir hafizi wrote:

Hi there,

 


I am having lately dublicate messages from the same sender in qmail.

Does anyone know anything about this problem.

Your answer will be appreciated


Check your smtp and qmail log files.
They may be sending multiple copies

Ken Jones



[vchkpw] dublicate messages

2006-05-12 Thread saimir hafizi








Hi there,

 

I am having lately dublicate messages from the same sender
in qmail.

Does anyone know anything about this problem.

Your answer will be appreciated

 

Thank you

 

 








Re: [vchkpw] NFS and vpopmail

2006-05-12 Thread John Simpson

On 2006-05-12, at 1512, Jeremy Kister wrote:

On 5/12/2006 3:01 PM, John Simpson wrote:
you don't need to HUP qmail-send when users/assign changes, you  
need  to run "qmail-newu". qmail-lspawn reads users/cdb, users/ 
assign is  just a text file which is used to build users/cdb.


I simply infer that the control files have changed when the assign  
file has changed.


ah... okay, i see.

i do the same thing, but i use control/locals and control/ 
virtualdomains to tell when to send the HUP, since these are the two  
files which are actually re-read when a HUP is received.


actually, i have one script which does it all- compares the  
timestamps on users/assign and users/cdb and runs "qmail-newu" when  
appropriate... the same for control/morercpthosts and control/ 
morercpthosts.cdb, and it also builds validrcptto.cdb and auth.cdb  
(both files relating to my patches) as well. i have a daemontools  
service which waits for input on a named pipe and then runs the  
updater script (so that any process, running as any userid, can  
"touch /tmp/update-qmail" and trigger the updater script), a cron job  
which does the "touch" every half hour, and a vpopmail "onchange"  
script which also does the same "touch" operation whenever a mailbox  
is added, password changed, or whatever. everything pretty much runs  
itself.


--
| John M. Simpson - KG4ZOW - Programmer At Large |
| http://www.jms1.net/   <[EMAIL PROTECTED]> |
--
| Mac OS X proves that it's easier to make UNIX  |
| pretty than it is to make Windows secure.  |
--




PGP.sig
Description: This is a digitally signed message part


Re: [vchkpw] NFS and vpopmail

2006-05-12 Thread Jeremy Kitchen
On Friday 12 May 2006 12:10, John Simpson wrote:
> On 2006-05-12, at 1347, Tom Collins wrote:
> > On May 12, 2006, at 10:22 AM, MT wrote:
> >>> The qmail-smtpd process doesn't have the correct permissions to
> >>> read the vpasswd file for the domain (or the vpopmail.mysql file
> >>> with the MySQL login info).
> >>
> >> So I'm still reinstalling - nice POS hardware I'm given to use
> >> (but that's another story).  If anyone could tell me please, what
> >> should the permissions be?  This is the setup I did:
> >
> > Just make sure qmail-smtpd runs as user vpopmail.
>
> are you the one who came up with this idea, or did you get the idea
> from somebody else? can you explain to me WHY this is supposedly
> necessary?

if you use the chkuser patch you have to.  Either that or make your 
vpasswd.cdb files readable by the qmaild user.

-Jeremy

-- 
Jeremy Kitchen ++ [EMAIL PROTECTED]

http://ipaction.org/ -- defend your rights to fair use


pgpLpYH5bpzBl.pgp
Description: PGP signature


Re: [vchkpw] NFS and vpopmail

2006-05-12 Thread Jeremy Kister

On 5/12/2006 3:01 PM, John Simpson wrote:
you don't need to HUP qmail-send when users/assign changes, you need  
to run "qmail-newu". qmail-lspawn reads users/cdb, users/assign is  
just a text file which is used to build users/cdb.


I simply infer that the control files have changed when the assign file 
has changed.


--

Jeremy Kister
http://jeremy.kister.net./



Re: [vchkpw] NFS and vpopmail

2006-05-12 Thread John Simpson

On 2006-05-12, at 1347, Tom Collins wrote:

On May 12, 2006, at 10:22 AM, MT wrote:
The qmail-smtpd process doesn't have the correct permissions to  
read the vpasswd file for the domain (or the vpopmail.mysql file  
with the MySQL login info).


So I'm still reinstalling - nice POS hardware I'm given to use  
(but that's another story).  If anyone could tell me please, what  
should the permissions be?  This is the setup I did:


Just make sure qmail-smtpd runs as user vpopmail.


are you the one who came up with this idea, or did you get the idea  
from somebody else? can you explain to me WHY this is supposedly  
necessary?


even when i was using vchkpw to support AUTH, i just made vchkpw  
setuid so it always runs as the vpopmail user, and left qmail-smtpd  
running as qmaild, as djb intended. (i'm now using a cdb file to  
support AUTH- much faster, no fork/exec or userid headaches, and much  
easier to make it work across multiple servers- just copy the cdb  
file to the other servers and it's done. patch coming soon.)


--
| John M. Simpson - KG4ZOW - Programmer At Large |
| http://www.jms1.net/   <[EMAIL PROTECTED]> |
--
| Mac OS X proves that it's easier to make UNIX  |
| pretty than it is to make Windows secure.  |
--




PGP.sig
Description: This is a digitally signed message part


Re: [vchkpw] NFS and vpopmail

2006-05-12 Thread John Simpson

On 2006-05-12, at 1026, MT wrote:


Well I think I got it.  I started from scratch, recompiled qmail  
and patched using John Simpsons all-in-one patch v. 1.5 - now it  
works.  I'm going to format and do a fresh install to test it  
again.  I'll post back.


that's an ancient version- the same one that qmailrocks included. the  
current version of my patch is 6c4 (the "1" is part of "jms1".)


that's not to say that version 5 won't work, but there have been a  
lot of new things added since then- in particular the validrcptto.cdb  
patch, which lets qmail-smtpd refuse messages sent to non-existent  
local addresses. imagine, no more spam bounces sitting in the queue  
for a week...


http://qmail.jms1.net/patches/combined.shtml

--
| John M. Simpson - KG4ZOW - Programmer At Large |
| http://www.jms1.net/   <[EMAIL PROTECTED]> |
--
| Mac OS X proves that it's easier to make UNIX  |
| pretty than it is to make Windows secure.  |
--




PGP.sig
Description: This is a digitally signed message part


Re: [vchkpw] NFS and vpopmail

2006-05-12 Thread John Simpson

On 2006-05-11, at 1800, Jeremy Kister wrote:

On 5/11/2006 5:55 PM, MT wrote:

 sends hup signal to qmail-send to accept new domain
So I have /home/vpopmail/domains, /var/qmail/control/, /var/qmail/  
users on my NFS.

[...]
I have to delete / add the domain on 10.0.0.2 to get it to work -  
but  then 10.0.0.1 will give me the same error.


Do you have something on 10.0.0.2 that will hup qmail-send when  
the /var/qmail/users/assign file changes ?


you don't need to HUP qmail-send when users/assign changes, you need  
to run "qmail-newu". qmail-lspawn reads users/cdb, users/assign is  
just a text file which is used to build users/cdb.


the only two programs which do anything with users/assign are "qmail- 
newu" and "qmail-pw2u".


--
| John M. Simpson - KG4ZOW - Programmer At Large |
| http://www.jms1.net/   <[EMAIL PROTECTED]> |
--
| Mac OS X proves that it's easier to make UNIX  |
| pretty than it is to make Windows secure.  |
--




PGP.sig
Description: This is a digitally signed message part


Re: [vchkpw] NFS and vpopmail

2006-05-12 Thread MT


On May 12, 2006, at 11:47 AM, Tom Collins wrote:


On May 12, 2006, at 10:22 AM, MT wrote:
The qmail-smtpd process doesn't have the correct permissions to  
read the vpasswd file for the domain (or the vpopmail.mysql file  
with the MySQL login info).


So I'm still reinstalling - nice POS hardware I'm given to use  
(but that's another story).  If anyone could tell me please, what  
should the permissions be?  This is the setup I did:


Just make sure qmail-smtpd runs as user vpopmail.



Alright, after a (testing) reboot it seems to be working.  Thanks for  
your help Jeremy, Rick, Rick, Remo, Tom, and Dave.


Matt


Re: [vchkpw] NFS and vpopmail

2006-05-12 Thread Tom Collins

On May 12, 2006, at 10:22 AM, MT wrote:
The qmail-smtpd process doesn't have the correct permissions to read 
the vpasswd file for the domain (or the vpopmail.mysql file with the 
MySQL login info).


So I'm still reinstalling - nice POS hardware I'm given to use (but 
that's another story).  If anyone could tell me please, what should 
the permissions be?  This is the setup I did:


Just make sure qmail-smtpd runs as user vpopmail.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/



Re: [vchkpw] NFS and vpopmail

2006-05-12 Thread MT


On May 12, 2006, at 11:30 AM, Dave Weiner wrote:

Have I got my permissions COMPLETELY screwed up?  I know this is  
more  of an NFS question rather than vpopmail - but I figure that  
anyone  who has a working NFS/vpopmail setup should know.


The big thing with NFS is make sure that the UID and GID are the  
_SAME_ on all machines.


On the NFS /etc/passwd & /etc/group has entry:
vpopmail:x:1000:1000::/home/vpopmail:/bin/bash
vchkpw:!:1000:

On the clients it's:
vpopmail:x:1007:1002::/home/vpopmail:/sbin/nologin
vchkpw:!:1002:

That could explain why after mounting the share on the client it gave  
the mount a user/group of alias:nofiles


I'll try making them use the same UID/GID



Re: [vchkpw] NFS and vpopmail

2006-05-12 Thread Dave Weiner
Have I got my permissions COMPLETELY screwed up?  I know this is more  of 
an NFS question rather than vpopmail - but I figure that anyone  who has a 
working NFS/vpopmail setup should know.


The big thing with NFS is make sure that the UID and GID are the _SAME_ on 
all machines.




thanks,
Matt



Dave 



Re: [vchkpw] NFS and vpopmail

2006-05-12 Thread MT


On May 12, 2006, at 9:01 AM, Tom Collins wrote:


On May 12, 2006, at 6:43 AM, MT wrote:
May 12 07:18:03 mail2 vpopmail[15323]: vchkpw-smtp: vpopmail user  
not found [EMAIL PROTECTED]:10.5.4.41


If I do `vuserinfo [EMAIL PROTECTED] on each machine it will  
print the postmaster info.  So each machine does see that it  
exists - just not sure after that.


The qmail-smtpd process doesn't have the correct permissions to  
read the vpasswd file for the domain (or the vpopmail.mysql file  
with the MySQL login info).


So I'm still reinstalling - nice POS hardware I'm given to use (but  
that's another story).  If anyone could tell me please, what should  
the permissions be?  This is the setup I did:


On the NFS server I created /home/domains, /home/users, /home/control
I created user/group vpopmail:vchkpw and group qmail.  The  
directories on the NFS server looks like this:


drwxr-xr-x   2 root qmail  584 May 12 07:33 control
drwxr-xr-x   3 vpopmail vchkpw 160 May 12 07:33 domains
drwxr-xr-x   2 root qmail  128 May 12 07:33 users

On the mail servers / NFS clients I created directories /mnt/ 
domains, /mnt/control, /mnt/users


Do I change the permissions on the client to? (example)
drwxr-xr-x   3 vpopmail vchkpw 160 May 12 07:33 domains

Have I got my permissions COMPLETELY screwed up?  I know this is more  
of an NFS question rather than vpopmail - but I figure that anyone  
who has a working NFS/vpopmail setup should know.


thanks,
Matt


Re: [vchkpw] Segmentation Fault with new Kernel

2006-05-12 Thread Tom Collins

On May 11, 2006, at 4:51 AM, Bill Gradwohl wrote:

I've got an older vpopmail (5.4.10) that now seg faults on vadduser.

This started after a kernel upgrade on Fedora Core 4. I recompiled the
application, thinking it was a library issue but that did not solve the
problem.

strace shows :
stat64("/home/vpopmail/domains/private.ycc/1/qqq", {st_mode=S_IFDIR|
0750, st_size=4096, ...}) = 0
open("/home/vpopmail/domains/private.ycc/1/qqq", O_RDONLY|O_NONBLOCK|
O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


What are you left with in private.ycc/1/qqq?  Has it created the 
Maildir yet?  The subdirectories?  Can you provide some more lines from 
the trace (maybe 30 or so) to help track down where it is in the code?


Also, cdb or one of the database backends?

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/



Re: [vchkpw] NFS and vpopmail

2006-05-12 Thread Tom Collins

On May 12, 2006, at 6:43 AM, MT wrote:
May 12 07:18:03 mail2 vpopmail[15323]: vchkpw-smtp: vpopmail user not 
found [EMAIL PROTECTED]:10.5.4.41


If I do `vuserinfo [EMAIL PROTECTED] on each machine it will 
print the postmaster info.  So each machine does see that it exists - 
just not sure after that.


The qmail-smtpd process doesn't have the correct permissions to read 
the vpasswd file for the domain (or the vpopmail.mysql file with the 
MySQL login info).


--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/



Re: [vchkpw] NFS and vpopmail

2006-05-12 Thread MT


On May 12, 2006, at 7:56 AM, MT wrote:



On May 12, 2006, at 7:43 AM, MT wrote:



On May 12, 2006, at 6:58 AM, Rick Macdougall wrote:


Hummm,

Are the system times all within 1 second of each other on all the  
machines ?


Rick


Oh and a side note - maybe this will help?  I can pull the off each  
server just fine - it only errors when I send the mail.


Matt



Well I think I got it.  I started from scratch, recompiled qmail and  
patched using John Simpsons all-in-one patch v. 1.5 - now it works.   
I'm going to format and do a fresh install to test it again.  I'll  
post back.


Matt



Re: [vchkpw] NFS and vpopmail

2006-05-12 Thread MT


On May 12, 2006, at 7:43 AM, MT wrote:



On May 12, 2006, at 6:58 AM, Rick Macdougall wrote:


Hummm,

Are the system times all within 1 second of each other on all the  
machines ?


Rick


Oh and a side note - maybe this will help?  I can pull the off each  
server just fine - it only errors when I send the mail.


Matt


Re: [vchkpw] NFS and vpopmail

2006-05-12 Thread MT


On May 12, 2006, at 6:58 AM, Rick Macdougall wrote:


Hummm,

Are the system times all within 1 second of each other on all the  
machines ?


Rick


The dates were way off - several months.  I synced all three servers  
up with our NTP server - same error:


May 12 07:18:03 mail2 vpopmail[15323]: vchkpw-smtp: vpopmail user not  
found [EMAIL PROTECTED]:10.5.4.41


If I do `vuserinfo [EMAIL PROTECTED] on each machine it will  
print the postmaster info.  So each machine does see that it exists -  
just not sure after that.


Matt


Re: [vchkpw] restrict users

2006-05-12 Thread Michael Krieger
Remember- they can set the header To/From to be whatever they want, unless you want to scan the whole message.  You can with reasonable ease probably get this going with the envelope from/to.This would probably be a custom job.How I'd approach it: - use the REQUIREAITH patch (note that it no longer works with smtpauth and so on, but it's three lines so if you change the variable names around you'll be good to go) on a submission port - add some code to the mail_rcpt() command if requireauth is true and the requireauth test succeeds [it would be tested at mail_from if requireauth is set, so just check if requireauth is set in the rcpt command], to read one of the vpopmail USER_# flags and if it's set, compare the @mydomain.com in the envelope from with the @authenticateddomain.com in RELAYCLIENT, failing on the mail from otherwise.  If you're not wanting to only have them send to their own domain, just test for the few domains you want
 in sequence.A hack I know, but should be able to implement it in just a few minutes.-MCristi Tauber <[EMAIL PROTECTED]> wrote:   hello,i have qmail + vpopmail installed. is there a way to restrict some users of one domain (i have many domains spread on 4 email servers in different locations) to send mail only to some specific domains (the ones in our company) not to the whole world ? remember that i want only some users of one domain to be restricted and some of the same domain to be able to send mail without restrictions ? and is there a way to have a copy of all sent emails of a certain user ? (qmail does this but i have to recompile it , and is not only for one user but for all traffic
 )thankscristi---This message and its contents have been scanned and certified fortransmission as being free from malicious code by <>. Thismessage may contain confidential, privileged or other legally protectedinformation. It is intended for the addressee(s) only. If you are not theaddressee, or someone the addressee authorized to receive this message, youare prohibited from copying, distributing or otherwise using it. Pleasenotify the sender and return it.Thank you.   

Re: [vchkpw] NFS and vpopmail

2006-05-12 Thread Rick Macdougall

Remo Mattei wrote:

yes

MT wrote:

On May 11, 2006, at 10:23 PM, Rick Widmer wrote:

I thought that was it too so I did a kill -HUP qmail-send but still 
nothing.  I also stopped/started the entire qmail service (going 
along with what Rick was saying) and still nothing.
Could it be an invalid/missing option in my NFS exports or the way 
I'm trying to mount the NFS share?

Matt

How are you updating the files in /var/qmail/control that change when
adding/removing a domain?


I'm using the vadddomain command.  /var/qmail/control is mounted on the
NFS share so it should be updated - right?

Matt


Hummm,

Are the system times all within 1 second of each other on all the machines ?

Rick



Re: [vchkpw] NFS and vpopmail

2006-05-12 Thread Remo Mattei
yes

MT wrote:
> 
> On May 11, 2006, at 10:23 PM, Rick Widmer wrote:
> 
>>>
>>> I thought that was it too so I did a kill -HUP qmail-send but still 
>>> nothing.  I also stopped/started the entire qmail service (going 
>>> along with what Rick was saying) and still nothing.
>>> Could it be an invalid/missing option in my NFS exports or the way 
>>> I'm trying to mount the NFS share?
>>> Matt
>>
>> How are you updating the files in /var/qmail/control that change when
>> adding/removing a domain?
>>
> 
> I'm using the vadddomain command.  /var/qmail/control is mounted on the
> NFS share so it should be updated - right?
> 
> Matt


Re: [vchkpw] NFS and vpopmail

2006-05-12 Thread MT


On May 11, 2006, at 10:23 PM, Rick Widmer wrote:



I thought that was it too so I did a kill -HUP qmail-send but  
still  nothing.  I also stopped/started the entire qmail service  
(going  along with what Rick was saying) and still nothing.
Could it be an invalid/missing option in my NFS exports or the  
way  I'm trying to mount the NFS share?

Matt


How are you updating the files in /var/qmail/control that change  
when adding/removing a domain?




I'm using the vadddomain command.  /var/qmail/control is mounted on  
the NFS share so it should be updated - right?


Matt


Re: [vchkpw] NFS and vpopmail

2006-05-12 Thread MT


On May 11, 2006, at 10:11 PM, Jeremy Kister wrote:



by the phrase "entire qmail service", I take it you did not install  
via LifeWithQmail ?


Well the qmailrocks install - which from reading both LWQ and  
qmailrocks (as far as a basic install goes) qmailrocks seems to be  
builds upon the LWQ install - could be wrong though.


In either case, are you using "vpopmaild"?  I know little about it  
more than how to spell it, but if you're using it I could imagine  
it's part of your problem.


Could it be an invalid/missing option in my NFS exports or the  
way  I'm trying to mount the NFS share?


unlikely.


I kind of figured that and felt silly after I hit "send".

Matt



[vchkpw] restrict users

2006-05-12 Thread Cristi Tauber

 hello,

i have qmail + vpopmail installed. is there a way to restrict some users 
of one domain (i have many domains spread on 4 email servers in 
different locations) to send mail only to some specific domains (the 
ones in our company) not to the whole world ? remember that i want only 
some users of one domain to be restricted and some of the same domain to 
be able to send mail without restrictions ? and is there a way to have a 
copy of all sent emails of a certain user ? (qmail does this but i have 
to recompile it , and is not only for one user but for all traffic )


thanks


cristi

---
This message and its contents have been scanned and certified for
transmission as being free from malicious code by <>. This
message may contain confidential, privileged or other legally protected
information. It is intended for the addressee(s) only. If you are not the
addressee, or someone the addressee authorized to receive this message, you
are prohibited from copying, distributing or otherwise using it. Please
notify the sender and return it.Thank you.