Re: [toaster] Applying John Simpsons validrcptto patch

2007-11-03 Thread Bill Shupp

On Nov 3, 2007, at 9:34 AM, Rick Widmer wrote:




Tom Collins wrote:

On Nov 1, 2007, at 4:50 PM, Bill Shupp wrote:

What does this patch do that chkuser doesn't already do?


Validrcptto uses ONCHANGE to monitor actions that add or delete  
accounts on the mail server.  The valid address list is stored in  
a .cdb file that is easy to copy to other servers in a cluster.   
Earlier versions used cron to scan the user list periodically.


Chkuser links to vchkpw and valias_ to determine  
if an address is valid.  This should be much faster, but only works  
on the local machine.  Maybe there could be a version that works  
with vpopmaild, but still I think validrcptto is a better choice  
for clusters.


In the clusters I build, I always have NFS mounts of the mail spool  
on the smtp boxes for just this reason.  chkuser works fine if it has  
access to local files, and there's no syncing needed.


Regards,

Bill


Re: [toaster] Applying John Simpsons validrcptto patch

2007-11-03 Thread Rick Widmer



Tom Collins wrote:

On Nov 1, 2007, at 4:50 PM, Bill Shupp wrote:

What does this patch do that chkuser doesn't already do?


Validrcptto uses ONCHANGE to monitor actions that add or delete accounts 
on the mail server.  The valid address list is stored in a .cdb file 
that is easy to copy to other servers in a cluster.  Earlier versions 
used cron to scan the user list periodically.


Chkuser links to vchkpw and valias_ to determine if an 
address is valid.  This should be much faster, but only works on the 
local machine.  Maybe there could be a version that works with 
vpopmaild, but still I think validrcptto is a better choice for clusters.



One big thing that I like is that it can have custom reject messages for 
each address.  So, if I have to kill an address that's overwhelmed with 
spam, I can have a custom reject like "that address is no longer in use, 
try fred at smith.com instead".  That way a human sending email to my 
old address could (possibly) see the reject and know to try the new 
address.


That might be a good use for passing the first line of a .qmail file to 
chkuser:


#blackhole That address is no longer in use, try fred at smith.com

Antonio Nati (tonix) has asked for a few bits from gid_flags, and I have 
agreed to assign them.  He hasn't given me the list of what they are 
yet.  Also, I don't know if he is aware of it, but he has a pointer to 
the first line of an alias that matches the address being tested, so any 
.qmail- file could have a comment in its first line that chkuser can use.


I want to use the first word after the '#' if the first line is a 
comment, but everything after that is available.  I would also like to 
be able to produce a list of first word values to accept mail, and 
another list to reject. For example, #Alias, #Mini-List, #Mail-List 
would all be accepted by chkuser, and #blackhole would be rejected, 
passing the rest of the line, if any, as the error message.


When he has time to work on it, I'll try to have a discussion of the 
possibilities on the vpopmail list.