Re: [vchkpw] Misc Bugfixes- update, cleanup

2006-06-05 Thread Tom Collins

On Jun 5, 2006, at 12:07 PM, Michael Krieger wrote:
These seem to clear up all of the issues I've noticed with 
vpopmail-5.4.16 at this time [fortunately that big bugfix last release 
helped as well].


Think we may be ready for 5.4.17 soon?  I want to make sure these get 
in there.


I'll make sure they get in, along with Ron Gage's patch related to 
MySQL 5.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/



Re: [vchkpw] [bug][patch] - vchkpw/vmysql and Mysql 5

2006-06-05 Thread Tom Collins

On Jun 5, 2006, at 7:37 AM, [EMAIL PROTECTED] wrote:
That is what I am running here - 5.4.16.  Had the same problem - 
worked fine for
the first 8 hours, then started getting failed auth errors.  I 
minimized the

problem from the MySQL side by changing the interactive_timeout and
wait_timeout values to , but this obviously doesn't actually 
fix the
problem.  If the server is kicked for some reason (mysqladmin 
shutdown then
mysqld_safe), then the auth will still fail since the socket is 
destroyed.


Thanks Ron, I'll get your patch into CVS and the 5.4.17 release and 
shoot for getting something up on SourceForge this week.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/



Re: [vchkpw] New version of vpopmail?

2006-06-12 Thread Tom Collins

On Jun 12, 2006, at 3:59 PM, Steve Cole wrote:
It's been over a month now... any word on a release with the issues 
identified
in 5.4.16 resolved?  I recall Tom saying that we should expect a 
version mid

last week, but Sourceforge isn't reflecting that.


Sorry, last week was a busy one for me (keeping me from paying work in 
addition to vpopmail), and I'm on vacation this week.  I'll try to get 
the submitted patches into CVS and have a release sometime next week.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/



Re: [vchkpw] Blocking Fake Froms?

2006-06-14 Thread Tom Collins

On Jun 13, 2006, at 3:50 AM, Mustafa Şimşek wrote:

2. this spammer use fake ip addresses so i can't detect real user. is
it possible to detect real user from logs?


If you check the Received headers, you can see what SMTP AUTH address 
he used.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/



Re: [vchkpw] Re: Segfaulting in vadddomain

2006-06-19 Thread Tom Collins

On Jun 15, 2006, at 10:54 AM, Manuzhai wrote:
What trips up vpopmail: the localhost line. I'm not sure whether this 
*should* be valid or not, but the extract_domain() function in 
vpopmail.c sure doesn't like it. Here's what it looks like with the 
fprintf statements that are already in the code doing their work:


Rick,

If you can get a patch to me (that fixes the segfault in the 
users/assign sorting code when a domain doesn't have a dot in it) by 
the end of the week, I'll work at getting another vpopmail release out 
(with your patch, and others in my queue).


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/



Re: [vchkpw] sorry, your envelope sender domain must exist (#5.7.1).

2006-06-21 Thread Tom Collins

On Jun 21, 2006, at 12:04 PM, N0K wrote:
Hello, when i try, send a mail with my qmail-smtp server if i used a 
mail

address specifics, i get this error:

An error occurred while sending mail. The mail server responded: sorry,
your envelope sender domain must exist (#5.7.1). Please verify that 
your

email address is correct in your Mail preferences and try again.


What are you using as the from address?  Are you sure there isn't a 
typo in it?  Do you have a /var/qmail/control/mfcheck file?  If so, you 
might be able to put '0' in there to temporarily disable this check.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/



Re: [vchkpw] Forwarding spec. users w/o local domain

2006-06-28 Thread Tom Collins

On Jun 28, 2006, at 6:11 AM, Ted Fines wrote:
Does anyone have any ideas on how to accomplish this goal, using  
qmailtap or something else?


If the server that accepts mail for macalester.edu can be convinced to  
accept mail for somehost.macalester.edu, you can use vpopmail and  
qmailadmin to accomplish your goals.  Make sure  
[EMAIL PROTECTED] is working correctly before modifying your  
gateway system.


Stop qmail-smtpd and qmail-send before doing any of this, to make sure  
you get it set up right.


You're going to add macalester.edu as a vpopmail domain on your gateway  
system.  Change the catchall to [EMAIL PROTECTED].  If  
you're using qmailadmin, you can just enter @somehost.macalester.edu  
as the catchall email address, and it will automatically set it up.


Here's the feature request on that undocumented feature:  
http://sourceforge.net/tracker/index.php? 
func=detailaid=910410group_id=6691atid=356691


Remove the entry from smtproutes.  At this point, you might be able to  
start qmail-send (leaving qmail-smtpd off) and use qmail-inject to  
inject a test message.  Watch the logs to make sure it gets through.   
If so, you can start qmail-smtpd back up.


Now, add aliases for the addresses you want forwarded elsewhere.  Use  
QmailAdmin, or just create a .qmail-user45 file in the domain  
directory.


If an alias exists, the email will be forwarded.  If it doesn't exist,  
it will go to [EMAIL PROTECTED]  You'll probably also want  
to modify the postmaster user to have its mail get forwarded to  
[EMAIL PROTECTED]


If you really want to be safe, you could add the domain as test.com  
first, make sure everything works (using qmail-inject, or manually  
telnetting to port 25 on localhost) before doing it with the real  
domain.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/



Re: [vchkpw] make alias domain the main domain?

2006-06-28 Thread Tom Collins

On Jun 28, 2006, at 1:26 PM, Paul Theodoropoulos wrote:
so how the heck can i do that? i'm baffled how to change the name of  
an existing domain. i don't see any options in vqadmin or in the  
command line interface to accomplish this.


Edit /var/qmail/users/assign.  You'll find two entries related to the  
domain, like this:


+rfpowerdevices.com-:rfpowerdevices.com:89:89:/home/vpopmail/domains/ 
rfpowerdevices.com:-::
+hvvi.com-:rfpowerdevices.com:89:89:/home/vpopmail/domains/ 
rfpowerdevices.com:-::


Change the second field from rfpowerdevices.com to hvvi.com:

+rfpowerdevices.com-:hvvi.com:89:89:/home/vpopmail/domains/ 
rfpowerdevices.com:-::

+hvvi.com-:hvvi.com:89:89:/home/vpopmail/domains/rfpowerdevices.com:-::

Run qmail-newu, HUP qmail-send (you may not need to do that step), and  
you should be all set.


If you want to change the directory for the domain, that gets a bit  
more tricky.  You have to change it in /var/qmail/users/assign, the  
vpasswd file (for CDB) or database table (for the DB backends), .qmail  
files that have a hard-path to a maildir, mailing list configurations,  
etc.


Believe me, it's easier to just keep the old directory name.  You (the  
server admin) should be the only person who will se it.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/



Re: [vchkpw] quotawarn not always working

2006-06-28 Thread Tom Collins

On Jun 28, 2006, at 5:58 PM, Charles Sprickman wrote:
This is vpopmail 5.4.10, haven't gotten around to looking at all the 
release notes on newer versions yet for gotchas.


vdelivermail was rewritten for 5.4.11 (or so).  5.4.16 is a pretty good 
release, I have a few patches to put into 5.4.17, but nothing serious 
enough to keep you from trying 5.4.16.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/



Re: [vchkpw] Misc Bugfixes- update, cleanup

2006-06-29 Thread Tom Collins

On Jun 5, 2006, at 12:07 PM, Michael Krieger wrote:

Hey folks,

I've submitted a few bugfixes against 5.4.16 to fix:
 - a crash when there are no names and one is using the cdb module- 
qmailadmin can cause this one as well as the command line programs

 - a series of lockfile permissions fixes when using the locking to...
  1. comply with the man pages': mode MUST be specified when O_CREAT 
is in the flags, and is ignored otherwise which suggests that mode 
should be specified in those cases, and
  2. prevents lock files from (on my base Debian system) being created 
with 000 and then failing on all future attempts after the first one 
to obtain a lock on the file as a result of a lack of permission.


I advise seeing if you have any ~vpopmail/domain/*/.vpasswd.lock files 
and removing them if they do not have at least some permission.


These seem to clear up all of the issues I've noticed with 
vpopmail-5.4.16 at this time [fortunately that big bugfix last release 
helped as well].


Think we may be ready for 5.4.17 soon?  I want to make sure these get 
in there.


I just added your patch to CVS, and it will be in 5.4.17.

One question related to the vpalias.c fix.  Why is mydir static?  It's 
always set to NULL before that function exits.  Wouldn't making it not 
static and initializing it to NULL make more sense?


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/



Re: [vchkpw] new Installation on Fedora Core 5

2006-06-29 Thread Tom Collins

On Jun 29, 2006, at 4:54 AM, Roger wrote:
 We recently purchased an Intel 64 bit Server which i installed with 
Fedora Core 5 64 bit version. I successfully installed Qmail in about 
2 days. So now when i look at the MySQL database i notice that there 
is a database in there called vpopmail in that database a seperate 
table is created for each domain that i add, when i compare with my 
older running installation of Qmail, there is a database called 
vpopmail and inside that that database is a another table called 
vpopmail which contains all the information on my domains.


 Is there any advantage to the new way of doing things, or did i miss 
something during installation, could someone offer me some advice 
incase i run the risk of breaking things when i deploy this server 
over the weekend.


Two different configure options...

You chose --disable-many-domains on the FC5 box and got a table for 
each domain.

The default, --enable-many-domains puts all domains in a single table.

--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/



Re: [vchkpw] [bug][patch] - vchkpw/vmysql and Mysql 5

2006-06-29 Thread Tom Collins

This patch is in the upcoming 5.4.17 release.

-Tom

On May 29, 2006, at 7:05 AM, Ron Gage wrote:

Greetings:

I don't know if anyone in here is encountering this problem (yet), but 
it has
been affecting me for the past few weeks - ever since I upgraded my 
MySQL
server to 5.0.19.  It took quite a bit of digging, but I believe I 
have found

the problem.

To describe the problem: when you run vpopmail in MySQL mode, with
courier-authdaemond and MySQL v5.0 or later, you will find that for 
the first 8
hours, everything works just fine, but after 8 hours, nobody will be 
able to
authenticate to the email server and you will see MySQL server has 
gone away

errors in the maillog.

The cause of the problem is that in MySQL 5.0 (and probably some 4.1 
releases),
MySQL implements a new timeout definition for connections, a timeout 
that
ignores traffic.  This timeout will shut down the socket thread from 
the MySQL

side.  The problem is that the client (vchkpw and friends) do not
know/understand about this timeout and socket termination so they 
continue on
in ignorate bliss until they try to send to the socket and find that 
it's no

longer valid - literally the server has gone away.

The fix is to simply destroy the internal flags and file handles 
related to that

socket, rebuild a new one, and try again.

The included patch (inline and attached) implements this fix.  Please 
note that
there doesn't appear to be any way at this time to disable the timeout 
feature

in MySQL.

Please feel free to comment, tear apart, beat up, or otherwise rip to 
shreads my

fix!



--
Ron Gage
(LPIC1 MCP A+ Net+)
Westland, Michigan



--- vmysql.c~   2006-05-29 10:17:20.0 -0400
+++ vmysql.c2006-05-29 10:17:20.0 -0400
@@ -465,7 +465,31 @@
 );
 if (mysql_query(mysql_read,SqlBufRead)) {
 fprintf(stderr, vmysql: sql error[3]: %s\n,
mysql_error(mysql_read));
-return(NULL);
+/* Ron Gage - May 29, 2006 - With newer versions of MySQL, 
there is

such a thing
+as a connection timeout regardless of activity.  By default 
under MySQL

5, this
+timeout is 28800 seconds (8 hours).  If your vpopmail system 
runs fine

for the
+first 8 hours, then stops authenticating, this timeout is 
your problem

(especially
+under authdaemond).
+
+What this code does is when an error is encountered, it first 
tries to

drop and
+rebuild a connection to the SQL server and tries again.  If 
this second

attempt
+fails, then something other than the connection timeout is 
the problem.

 This fix
+need to be implemented in other places but in my setup 
(Slackware 10.2,

netqmail,
+vpopmail, courier-authdaemond, courier-imapd and a few 
others), this is

always where
+the auth attempt died with a SQL server has gone away error.
+*/
+
+fprintf(stderr, Attempting to rebuild connection to SQL 
server\n);

+vclose();
+verrori = 0;
+if ( (err=vauth_open_read()) != 0 ) {
+  verrori = err;
+  return(NULL);
+}
+if (mysql_query(mysql_read, SqlBufRead)) {
+  fprintf (stderr, vmysql: connection rebuild failed: %s\n,
mysql_error(mysql_read));
+  return(NULL);
+}
 }

 if (!(res_read = mysql_store_result(mysql_read))) {



This message was sent using IMP, the Internet Messaging Program.
vmysql.diff




Re: [vchkpw] make alias domain the main domain?

2006-06-29 Thread Tom Collins

On Jun 29, 2006, at 1:57 PM, Remo Mattei wrote:
copy the users from the location under the old dir domain 
rfpowerdevices.com

delete the domain
create a script that will recreate all the users you can do this very
easily by doing an ls -l |grep etc...
the run vadduser -n is you have the option in vpopmail to learn passwd
then add the new domain
and all the users then copy back the users dir with the right 
permission

and you should be fine.  You can also just copy the email to their
location without any problems.


But if you have mailing lists or autoresponders you won't be fine, 
because their files will reference the old directory name.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/



Re: [vchkpw] make alias domain the main domain?

2006-06-29 Thread Tom Collins

On Jun 29, 2006, at 3:35 PM, Paul Theodoropoulos wrote:
well, i did it, and it still didn't work. this time, with both lines 
changed, vqadmin saw hvvi.com as the 'real' domain, and rfpowerdevices 
as the alias - and showed no users for either.


so i had to rapidly switch back for fear of disrupting the account's 
access.


so i'm confused. maybe a confused dumbass, but confused nonetheless.


vqadmin hasn't been maintained in a long time...  And before you ask, I 
have NO plans to even try using it.  I just blew about 4-5 hours last 
night and today working on the vpopmail 5.4.17 release.  The last thing 
I need to do is get sucked into another open source project.  ;-)


I'd be curious to hear whether the domain worked correctly in 
qmailadmin or not after making the change.  I just ran a test, and it 
worked fine.  Note that I had problems because I forgot to run 
qmail-newu after making the changes to users/assign.  Once I made that 
change, it was OK.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/



Re: [vchkpw] make alias domain the main domain?

2006-06-29 Thread Tom Collins

On Jun 29, 2006, at 3:59 PM, Paul Theodoropoulos wrote:
gotcha. since i need to keep vqadmin consistent for various reasons, i 
think i'll try doing a complete overhaul of the domain the 'old 
fashioned way'.


If you're using cdb, here's a sneaky way to do it...

First, backup the domain on the off chance that deleting the alias 
domain messes something up.  Stop qmail until you're done making the 
changes.  We'll call the domains old.com and new.com for this process.


# delete the old domain
~vpopmail/bin/vdeldomain new.com

# add it back, as it's own domain (not an alias)
~vpopmail/bin/vadddomain new.com xyz

# use the old domain's files instead
rm -rf ~vpopmail/domains/new.com
mv ~vpopmail/domains/old.com ~vpopmail/domains/new.com

# make an link from the old name to the new name so mailing lists work
cd ~vpopmail/domains
ln -s new.com old.com

Start qmail back up, and you should be in business.

Now you can search through the various .qmail files and mailing list 
configuration files, looking for references to old.com and changing 
them to new.com.  Eventually, you can ditch the link from old.com to 
new.com in the domains directory.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/



Re: [vchkpw] Vpopmail and Global Aliases

2006-07-10 Thread Tom Collins

On Jul 10, 2006, at 7:25 AM, Ken Schweigert wrote:

How can I add this functionality back in?  I'd really hate to have to
add symlinks to the .qmail files every time I add a domain, or worse,
need to add them to every domain for any new global aliases.


I haven't tested it, but see if adding the following to  
virtualdomains would work:


abuse@:abuse

Trying to read djb's code is next to impossible (comments would have  
been helpful), and the docs for qmail-send don't say whether abuse@  
will match or not.  It's worth a shot though.


If it doesn't work, I think you're out of luck.  The domain isn't in  
locals, so .qmail files in ~alias are ignored.  It jumps to  
virtualdomains, which takes it to users/assign, which takes it to the  
domain's directory.  At that point, you'll need a .qmail-abuse in the  
domain's directory.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




[vchkpw] Vpopmail 5.4.17 Released

2006-07-12 Thread Tom Collins
https://sourceforge.net/project/showfiles.php? 
group_id=85937package_id=89115release_id=431536


5.4.17 - released 12-Jul-06

Release Notes:

Lots of fixes to bugs in the 5.4.16 release, some caused by the back- 
ported

code from the 5.5 development series.

This release resolves all known problems with 5.4.16.

ChangeLog:

Rick Widmer
- vpopmaild: remove debug output from find_domain function.
- vpopmail: fix segfault in users/assign sorting code caused by
  entries that don't contain a dot (.). [1514733]

Jeremy Kister
- vdelivermail: pass qmail-inject's error code instead of always
  deferring. [1484105]

Ron Gage
- vmysql: reconnect to server if connection timed out.

Rolf Eike Beer
- vchangepw: add error checking and other code improvements.
  [1371572]
- change API for vgetpasswd() to make more sense. [1371566]
- Update del_control() to properly handle remove_lines() return
  value. [1514613]
- vpopmail: minor improvements to remove_lines(). [1371536]

secnetdk
- vmysql, vpgsql: remove entries from vlog when deleting a domain
  or a user. [1099800, 995762]

Michael Krieger
- vcdb, vpopmail: pass mode to open() when creating files.  Fixes
  bug where lock files were created with  permissions. [1499043]
- vpalias: set mydir to NULL after closing it. [1499045]

Tom Collins
- vpalias: don't trash alias name passed to valias_insert().
  [1491087]
- vpopmaild: don't show last auth if auth-logging disabled.
  [1511313]
- Only include err.h if it's present. [1484110]
- vpgsql: convert domain name to lower case when creating table
  name. [1227383]
- vpopmail: fix minor error in remove_lines() when file locking
  not defined.




Re: [vchkpw] Weird messages in qmail-send

2006-07-18 Thread Tom Collins

On Jul 18, 2006, at 5:15 AM, Christoph Petersen wrote:

Hey guys,

in the last time I've some weird messages in my qmail-send log and  
I don't

where I have to look to solve these problems if they are problems.
I not even know if vpopmail is the cause of these messages. I'm using
netqmail-1.05 with vpopmail 5.4.13, chkuser and simscan.


Looks like a web script on your server (which typically uses  
[EMAIL PROTECTED] as sender) or perhaps a cron job is trying  
to email the root account on your mail server.  You don't have an  
alias set up for root (you need a .qmail-root file in ~alias) so a  
bounce is generated.


You (understandably) don't have an alias for postmaster, so the  
bounce bounces to postmaster, and you don't have an alias for that  
either, so the triple bounce is discarded.  You can use the control  
files doublebouncehost and doublebounceto to change who gets double- 
bounces -- in most cases you just want to throw them out.


Solution:

echo [EMAIL PROTECTED]  ~alias/.qmail-root

--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] file error 1

2006-07-18 Thread Tom Collins

On Jul 18, 2006, at 11:15 AM, Rob Genovesi wrote:
Anyone getting file error 1 errors when using qmailadmin to add/ 
remove/edit aliases?  This seems to be happening randomly and I  
haven't found any cause for it yet.


That error only comes up when QmailAdmin tries to delete a line from  
a .qmail file (or from the valias table if you have valiases enabled).


Is there anything quirky about the .qmail file you're trying to  
delete lines from?


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Upgrading from 5.2.1, qmail-ext and quotas

2006-07-27 Thread Tom Collins

On Jul 27, 2006, at 8:12 AM, Harm van Tilborg wrote:
1) I'm still running vpopmail 5.2.1 on some servers and it's  
finally time to upgrade (yes, finally :[). In the UPGRADE  
instructions it says it shouldn't be a problem (I'm using the cdb  
auth-module). Is that really true?


I think so, but I haven't done an upgrade from 5.2.1 in a long time.

2) And I would like to turn off qmail-ext support in the upgrade.  
Could that give any problems?


If you have users relying on it to get their email, then it will be a  
problem.  Some of my users make use of it to generate unique email  
addresses (like tom-amazon for all email from amazon.com) that they  
can later turn into blackhole or bounce addresses.


3) Domain and user quotas are kind of broken, aren't they? The only  
way to make them work is with the Maildir++-patch, is that true?


Domain quotas are definitely broken, and have been disabled in the  
current release.


4) Will this upgrade change anything to the already set (but not  
working) quotas?


I don't know -- I don't personally use quotas.

--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Upgrading from 5.2.1, qmail-ext and quotas

2006-07-27 Thread Tom Collins

On Jul 27, 2006, at 10:51 AM, Harm van Tilborg wrote:
If users have only access to qmailadmin (maybe not really vpopmail  
related, but ok), are they able to use qmail-ext addresses? Or do  
they really have to know how qmail deals with the 'ext' addresses?


With qmail-ext enabled, users can put -anything after their email  
address and still get the message.  They'd have to know about that  
feature, and chances are they aren't making use of it.


If you're unsure, you could modify vdelivermail to log any qmail-ext  
addresses that it matches.  If nothing comes through in a few weeks,  
you can probably safely disable that feature.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Mail Domain Aliases

2006-08-01 Thread Tom Collins

On Aug 1, 2006, at 9:09 AM, Jeff Koch wrote:
Does anyone know if there is an easy way to setup a mail domain  
alias so that mail addressed to [EMAIL PROTECTED] goes into  
[EMAIL PROTECTED] I know I can do it by adding another rcpt host  
and adding lines to /users/assign but maybe there's an easier way.  
We also use qmailadmin.


I assume you intend for mail sent to all users (not just eric) would  
be aliased...


Is domain2.com on the same server?  If so, vaddaliasdomain will do  
the trick.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Alias becoming default domain

2006-08-02 Thread Tom Collins

On Aug 2, 2006, at 6:31 AM, Alexandre Vasconcelos wrote:

I have a qmail setup from qmailrocks.org running fine on FreeBSD with
some domains. Recently we had some name changes and our names,
domain.com used to be default and domain1.com an alias, now we must
discard domain.com and domain1.com must be default, how can I make  
it work?


Here's a thread from June, with my response on one way to do it.

http://www.mail-archive.com/vchkpw@inter7.com/msg23872.html

--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Virtual Domains

2006-08-02 Thread Tom Collins
On Aug 2, 2006, at 7:24 AM, Doug Appleton wrote:I have configured a qmail+vpopmail mail server that is running on Redhat Enterprise 4 and is running perfectly except there is one small problem with the old mail server we currently have running. As it stands I have created a domain called test.edu and all mailboxes that are not found on this box are flipped over to the old mailserver where the remaining mailboxes are located. This is done with through the .qmail-default file. It seems to be working fine other than when a person tried to send a mail from the webmail client at test2.edu and the test.edu does not recognize the mailboxes and rejects the mail. Question.. Would creating an alias domain on the test.edu box work? And if so, how would I flip it back through the .qmail-default file so that any mailboxes that the alias domain couldn't find would be flipped back over to the old mailserver where the remaining mailboxes are?I'm not sure I completely understand your setup, but if you add test2.edu to the rcpthosts file on test.edu, it will accept email for that domain and forward it on to the server hosting test2.edu. --Tom Collins  -  [EMAIL PROTECTED]Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/ 

Re: [vchkpw] chkuser + localhost as sender MX

2006-08-16 Thread Tom Collins

On Aug 14, 2006, at 7:22 AM, Veit Guna wrote:
I've noticed some spam sending hosts, which use e.g. localhost/ 
127.0.0.1

as their sender MX. When my mailserver tries to verify the sending
account via bounce check (connecting to 127.0.0.1), the rcpt to: check
is ok, because chkuser accepts unknown rcpt to's from localhost. Is
there a settings to get rid of that?


Better would be a patch to qmail-smtpd that only accepted localhost  
and 127.0.0.1 as the HELO name on connections from 127.0.0.1.  I  
don't know enough about chkuser to answer your original question.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] qmail + vqadmin 2.3.5 + vpopmail 5.4.13 problem

2006-08-18 Thread Tom Collins

On Aug 17, 2006, at 5:26 AM, Krzysiek Włodarczak wrote:

Hello!
A am trying to set up qmail to work with non-system passwords. I've  
made
the virtual domain using vadddomain, the folders for my domain have  
been

 created, even mails are reaching the test-user Maildir. Unfortunately
I can't download the e-mails from the server using MUA. Authorization
doesn't work and I guess I can also send the e-mail with no  
authorisation.

Please help me.
--
Best regards,
Chris


Have you configured your POP/IMAP client to use vchkpw to  
authenticate users?


Do you have the SMTP AUTH patch for qmail-smtpd, and have you  
configured its run file to call vchkpw to authenticate users?


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Abort_trap

2006-08-22 Thread Tom Collins

On Aug 21, 2006, at 5:35 PM, kalin mintchev wrote:
using qmailadmin did a vacation message. i see the vacation  
directory and

the .qmail. they are fine.
the default .qmail for the domain is:

| /home/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED]


in the log i get:

Aug 21 20:30:15 chavo qmail: 1156206615.049242 starting delivery  
4546: msg

487281 to local [EMAIL PROTECTED]
Aug 21 20:30:15 chavo qmail: 1156206615.049948 status: local 1/10  
remote 5/10
Aug 21 20:30:15 chavo qmail: 1156206615.059064 delivery 4546:  
deferral:

Abort_trap/


why is that?!


Heck if I know.

What versions of vpopmail and qmailadmin are you using?  I don't see  
abort trap in the recent vpopmail source.


Does the catchall work when you don't have a vacation on  
[EMAIL PROTECTED]


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Abort_trap

2006-08-22 Thread Tom Collins

On Aug 22, 2006, at 2:30 PM, kalin mintchev wrote:

What versions of vpopmail and qmailadmin are you using?


qmailadmin 1.2.0
vpopmail 5.4.0


Upgrade to the latest stable releases (do vpopmail first, then  
qmailadmin) and see if the problem goes away.  Vpopmail 5.4.0 is  
2-1/2 years old.  The 5.4.17 release, even though it's labeled as  
dev, is actually stable enough to move to stable now.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Mail to all users?

2006-09-04 Thread Tom Collins

On Sep 4, 2006, at 12:52 PM, Robin Bowes wrote:

In an ISP situation, i.e. with many domains, each with many users,
what's the easiest/best way to send a mail to all users?

Here's my thoughts so far:

vpopbull
 - would need to loop over all domains and run vpopbull once for each
domain - not a major issue
 - Seems to write directly to the Maildir so it ignores any forwards

ezmlm mailing list
 - Would be a bit of a pain to keep all addresses current, i.e. to  
keep

the list members syncronised with the accounts on the server

Any further ideas?


Use `vpopbull -n` to generate a list of email addresses, and then  
paste that into the bcc of an email sent from your email client.


Or, set up an ezmlm mailing list that doesn't allow users to  
subscribe or unsubscribe.  Before sending an announcement, delete all  
subscribers and re-subscribe them by piping the output of vpopbull -n  
to ezmlm-sub.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Memleak when using vpopmail with mysql, but without --enable-mysql-limits. + patch

2006-09-10 Thread Tom Collins

On Sep 10, 2006, at 5:43 AM, Tijs Zwinkels wrote:

The problem is that, if (mysql_num_rows(res_read) == 0, the function
inmediately returns without freeing res_read.

I attached a little patch that corrects the issue. (simply adds a
mysql_free_result(res_read); )


Thanks a lot.  I'll make sure this gets into the next release.

--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Segfault when invalid domain in ./qmail/users/assign file.

2006-09-13 Thread Tom Collins

On Sep 13, 2006, at 3:33 PM, Rick Macdougall wrote:

Same bug from the 5.4.17 changelog ?

- vpopmail: fix segfault in users/assign sorting code caused by
  entries that don't contain a dot (.). [1514733]


Yep.

BTW - 5.4.17 should be production quality now.  Tom or Bill, are  
you going to release it as stable soon ?  It has passed all my  
stress testing.


Good point -- I just switched it to stable on SourceForge.

--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Segfault when invalid domain in ./qmail/users/assign file.

2006-09-17 Thread Tom Collins

On Sep 16, 2006, at 10:37 AM, Rainer Duffner wrote:

Is that with- or without Me Zwinkels' mem-leak fix?


No, that patch just came out a week ago.  vpopmail 5.4.17 was  
released back in July.



Also, somebody should update
http://www.inter7.com/vpopmail/changelog.txt
Or is it on sf.net somewhere?


SourceForge is the primary home and distribution point for vpopmail  
and qmailadmin.  See my .sig for URLs.


Also ,the changelog should feature the sf.net bugtracking ids, if  
they apply.
So one can deduce which of the bugs and patches still marked active  
on sf.net is actually relevant.


It does include those IDs.  For those curious, here's the system I  
use on SourceForge.


Once a tracker item has been addressed by a particular release (bug  
fixed, patch added), I modify the description of the tracker item to  
start with [in 5.4.17] where 5.4.17 is the relevant release.


Once 5.4.17 is released, I go through and change the status of all  
the [in 5.4.17] tracker items to closed.


Here's a cool way to look at all trackers related to a particular  
release:


https://sourceforge.net/search/? 
type_of_search=artifactgroup_id=85937words=5.4.17


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] vuserinfo and quota

2006-09-25 Thread Tom Collins

On Sep 25, 2006, at 2:02 PM, Rick Macdougall wrote:
All I'm saying is that when you upgrade someone's quota, the  
maildir size file is not rebuilt unless


1) It doesn't exist (you remove it)
2) A new email is delivered
3) The account is popped or IMAPed (with courier-imap or qmail- 
pop3d patched)


If you use vmoduser to change the quota, it will recreate the  
maildirsize file.


You are right on the max quota size -- 2GB is it, and you might be  
able to find a patch on SourceForge to take it up to 4GB (unsigned  
long).  You'd potentially have to modify code in vpopmail, qmail,  
courier-imap and qmail-pop3d to support larger quotas.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] transfer (rename) domain

2006-09-25 Thread Tom Collins

On Sep 21, 2006, at 6:03 AM, Shane Chrisp wrote:

On Thu, 2006-09-21 at 12:58 +0200, Jerkovic Bosko wrote:

Hello,

Im having a problem.
I had one domain domain.com and we have a lot of users there, now we
decided to transfer all users to another domain
domain2.com. How can this be done ? We are using vpopmail + mysql.  
Any

help ?


I think this will work.

1. Create the new domain using vadddomain
2. Update the mysql vpopmail table changing the domain field from
domain.com to domain2.com
3. Physically mv or rsync the users dir from the domain.com to
domain2.com directory.

I guess the 2nd and 3rd steps would be best done with the smtp/pop/ 
imap

access being off.

Im sure if im wrong or someone knows a simpler or better way, they  
will

say so.


Easier to keep everything as-is and add an alias to the original  
domain.  If you want, you can tweak the users/assign file to make the  
new name look like the real domain name, and have the old name as  
the alias.


I'd avoid actually changing the domain path though.  You'll have to  
update all user entries in vpasswd (or the database backend),  
user's .qmail files (in case they have a vacation message),  
autoresponders and mailing lists.  All make use of full pathnames  
(IIRC).


Tom Collins
Tom Logic LLC
PO Box 5717
Napa, CA 94581
(707) 265-6622
(707) 265-6646 fax
[EMAIL PROTECTED]

--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




[vchkpw] Email addresses with spaces

2006-09-25 Thread Tom Collins
There's a tracker item on SourceForge[1] about vdelivermail not accepting email addresses with spaces in the local part (something like "a b [EMAIL PROTECTED]").  The problem is that qmail-smtpd accepts them as valid, but vdelivermail does not.Anyone want to weigh in with an opinion before I make some change we'll regret?  I doubt anyone is using spaces, but a quick web search seems to imply (discussion of RFC2822) that they're legal (along with a lot of other crap).[1] https://sourceforge.net/tracker/?func=detailatid=577798aid=1565423group_id=85937 --Tom Collins  -  [EMAIL PROTECTED]Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/ 

Re: [vchkpw] Why is vadduser creating a hierarchy?

2006-10-14 Thread Tom Collins

On Oct 14, 2006, at 4:16 PM, Joshua Megerman wrote:
Nope, it doesn't (I wrote the patch, and last I heard it hadn't  
even been
considered... ) I posted the patch here a while back - while it may  
take a

little hacking, it should work fine with the latest vpopmail.


Please re-email it directly to me and I'll put it in my queue of  
patched for vpopmail.  A slew of them were just posted to  
SourceForge, so I'll probably try to get a 5.4.18 release out before  
too long.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] MAIL FROM question

2006-10-21 Thread Tom Collins

On Oct 20, 2006, at 8:14 PM, Rick Romero wrote:
I have an auditor who is telling me that allowing non-SMTP-AUTHd  
clients

to use a valid local user in MAIL FROM: is a potential spoof, and a
security vulnerability.


I don't know if it came up in the original thread, but enforcing that  
limitation assumes that your users send all of their email through  
your server.  I guess no one works from the road and has to use the  
ISP's mail server for outbound messages.


It might be a good way to detect possible spam, and I can see a grain  
of truth in their reasoning.  If you enforce that policy, the Return- 
Path header on email received on your sever should be accurate if  
it's a local domain.


I'll tell the auditors that your Received headers contain the SMTP  
AUTH information of any validated users, so if you need to validate a  
message with a forged MAIL FROM header, you just need to look at the  
Received headers.


After that, forge an email from [EMAIL PROTECTED] thanking  
them for their efforts in securing the homeland.  ;-)


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] vdelivermail patch in order to handle maildrop filtering capabilities

2006-10-25 Thread Tom Collins

On Oct 25, 2006, at 8:52 AM, Jérôme MOLLIER-PIERRET wrote:

You'll find our patch below, if it can help someone ...


I'll put it in my personal patch queue for inclusion in a future  
release of vpopmail, but since I don't use maildrop, I may not  
include it unless others tell me it's worth adding.


Please upload it to SourceForge http://vpopmail.sf.net/ so there's  
a permanent record of it out there, and someone searching for that  
functionality can use your patch until it's added to the release  
versions of vpopmail.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Qmail smtp oddity with vpopmail and chkuser

2006-10-27 Thread Tom Collins

On Oct 27, 2006, at 7:06 AM, DAve wrote:

mail from: [EMAIL PROTECTED]
## At this point qmail-smtpd just sits and never responds 250 ok

The only difference is the colon after the mail from command. No  
colon and qmail-smtpd responds, a colon and it does not, ever. I  
narrowed it down to stock qmail works, and qmail + chkuser does  
not. It seems to make no difference which vpopmail I use. This is  
very odd to me because this configuration has passed millions of  
messages in the past two years. I see no reason why it should fail  
to respond to an incoming connection incorrectly now.


Just as an FYI, RFC821 says you need angle brackets around the email  
address (and no space after the colon).


Regardless, qmail-smtpd should come back.  I just tried your test on  
my system (Shupp Toaster) and it came back fine.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] domain quotas

2006-10-28 Thread Tom Collins

On Oct 28, 2006, at 11:37 AM, Jeff Koch wrote:
I remember reading on the list some time ago that domain quotas  
didn't work. Has this been fixed? If so, are there any doc's on how  
this works? Specifically when the domain quotas is reached who is  
notified?


I don't think domain quotas worked in any 5.4.x release, and they  
still don't work.  When (and if) they did work, they could put a  
heavy load on the server if it had lots of mailboxes with lots of  
emails.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




[vchkpw] Missing loop check in vdelivermail

2006-10-30 Thread Tom Collins
I was quite surprised to learn that vdelivermail from vpopmail 5.4.13  
and 5.4.17 (and probably most earlier releases) does not detect all  
mail loops.


The checks are all performed when parsing .qmail files and the like.   
In my particular situation, an Exchange server was picking up mail  
from my server (via POP), and deciding to re-distribute it to  
everyone in the To field (including the mailbox it picked mail  
from).  I ended up seeing messages in this mailbox with the same  
Delivered-To line repeated dozens of times.


I've added a simple fix, which is to check the address right at the  
start of main().  I've tested it, and it works.  I'd really like to  
rework the way Delivered-To headers are checked and added*, but don't  
have the time to get into it now.  For now, here's the patch if  
anyone wants to try it out.


--- vdelivermail-orig.c 2006-06-29 12:36:43.0 -0700
+++ vdelivermail.c  2006-10-28 08:17:42.0 -0700
@@ -111,8 +111,14 @@
  */
int main(int argc, char **argv)
{
+char loopcheck[255];
+
 /* get the arguments to the program and setup things */
 get_arguments(argc, argv);
+snprintf (loopcheck, sizeof(loopcheck), [EMAIL PROTECTED], TheUser,  
TheDomain);

+if ( is_looping( loopcheck ) == 1 ) {
+vexiterr (EXIT_BOUNCE, mail is looping);
+}

#ifdef VALIAS
 /* process valiases if configured */

--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/

* I think vdelivermail should insert 1, maybe 2 Delivered-To headers  
on each email.  The first should be the raw email address from qmail- 
local.  The second should be the catchall address (or non-ext  
address) of the mailbox that ultimately receives the email.  The  
ultimate delivery address would appear in the headers before the  
envelope address.




Re: [vchkpw] Troubleshooting enable-roaming-users

2006-11-02 Thread Tom Collins

On Nov 2, 2006, at 2:59 PM, Quinn Comendant wrote:
So my question should then be: How to get Courier SSL connections  
to pass the connect message to vpopmail? I assume this is an issue  
for IMAP and IMAP-SSL users as well.


You probably just need to recompile/reinstall courier so it relinks  
libvpopmail and picks up the correct setting for roaming users.  My  
guess is that your initial install didn't support roaming users, but  
you updated vpopmail later to enable it.


libvpopmail is always statically linked (for now) so updating  
vpopmail requires updates to Courier-IMAP, QmailAdmin and any other  
app that links to libvpopmail.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Troubleshooting enable-roaming-users

2006-11-03 Thread Tom Collins

On Nov 3, 2006, at 1:42 AM, Quinn Comendant wrote:
Further research turned up some threads that indicate that this is  
maybe just not supported with courier anymore? Can anybody confirm  
this?


Yes, that is correct.  The vchkpw code embedded in courier-imap  
doesn't know the IP address of the end user, so it can't update the  
relay table.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] running sa-learn from valias

2006-11-07 Thread Tom Collins

On Nov 7, 2006, at 4:51 AM, andrej wrote:
are you sure its not working (adding the mail to spam/ham)? My  
guess is

that the mail is still in the queue and cannot be delivered because
after running your script its stuck because it has no more  
instructions

on what to do with it. That should be easy to test by adding a valid
mailbox (of fiddling with the script return code, but thats behind my
qmail knowledge ;). Let me know if it works.


It might be because your script to add it to the spam/ham database  
doesn't use an exit code that qmail-local understands.


From `man qmail-command`:

   command’s  exit  codes  are  interpreted  as follows: 0 means  
that the
   delivery was successful; 99 means that the  delivery  was   
successful,
   but  that qmail-local should ignore all further delivery  
instructions;
   100 means that the delivery failed permanently (hard error);  
111 means
   that  the  delivery failed but should be tried again in a  
little while

   (soft error).

What do you see in the qmail-send log when a message goes through the  
process?


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] vdeluser: Failed to delete user from auth backend / Error: Illegal username

2006-11-07 Thread Tom Collins

On Nov 7, 2006, at 2:16 AM, Jarkko Ranta wrote:
I have a problem: If I try to remove a user, it deletes the user  
from the MySQL-database but doesn't remove the directory structure  
from /home/vpopmail/domains/domain.tld/username and I get an error.  
If I try to create a user by a same virtual username, it fails  
because there is already such user.


What version of vpopmail?  I think we saw this problem during the  
5.3.x development series...


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Error: Entry is out of order

2006-11-08 Thread Tom Collins

On Nov 8, 2006, at 5:40 AM, Alessio Cecchi wrote:

This is the first time that i see this error:

scbs1:~# /home/vpopmail/bin/vadddomain test.lan
Please enter password for postmaster:
enter password again:
Entry is out of order: pippo.com



vpopmail now sorts users/assign and other control files.  The first  
time you run vadddomain, it sees that the file isn't sorted and so it  
sorts it.


Unless you manually edit the files, you won't see the notices again.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/



!DSPAM:455261c127411318765578!



Re: [vchkpw] Memleak when using vpopmail with mysql, but without --enable-mysql-limits. + patch

2006-11-28 Thread Tom Collins
BTW, I just added Tijs's patch to vpopmail CVS yesterday, and it will  
be included in 5.4.18.


-Tom

On Nov 28, 2006, at 1:52 AM, Tijs Zwinkels wrote:


Sorry for the late reply, i simply missed your mail until now.

I don't know if that's always the case, but in my case: Yes,
authdaemond was statistically linked against vpopmail, and needed to
be recompiled in order to remove the memory leak.

- Tijs

On 11/21/06, Dave Smulsky [EMAIL PROTECTED] wrote:

Hey,

I applied that patch to the latest vpopmail, and its still consuming
more and more memory... Is there something else you had to do to make
the patch take?  Did you have to recompile/install authdaemond too??

Thanks

Dave










Re: [vchkpw] vchkpw works manually but not from vpopmail-authlib

2006-11-30 Thread Tom Collins

On Nov 30, 2006, at 1:39 PM, Michael Richardson wrote:

However, if I run vchkpw manually, it works great:


vpopmail-authlib from Courier-IMAP doesn't actually run the vchkpw  
program.


Make sure you compiled authlib AFTER compiling and installing vpopmail.

If you changed anything in your vpopmail config, you need to  
recompile and reinstall authlib.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] vchkpw works manually but not from vpopmail-authlib

2006-12-01 Thread Tom Collins

On Nov 30, 2006, at 4:27 PM, Rick Macdougall wrote:
Off Topic:  Tom: Did that qmail patch for simscan work for you when  
your server gets overloaded (regarding duplicate messages when  
simscan takes to long to get back to the remote server and the  
remote server times out ?)


I'm pretty sure it did -- I haven't heard anything from my users  
since installing it.


I also installed a ucspi-tcp (tcpserver) patch from http:// 
linux.voyager.hr/ucspi-tcp/ that lets me limit simultaneous  
connections per IP or class C netblock, and based on server load.   
Right now, if the server load hits 7.00, I stop accepting mail on  
port 25.  I continue to accept it on port 587 (which now requires  
AUTH, thanks to another patch) regardless of the system load.  I've  
been able to up my concurrencyincoming from 10 to 25, since it will  
throttle under load but continue to accept connections if the current  
connections are slow.


I also set up another server as backup MX with simscan/sa/clamav,  
mirrored vpopmail/domains and most qmail/control files (so chkuser  
works), and trust the mail that comes from that server.  The backup  
MX also handles mail that we simply forward to some clients' Exchange  
servers, so that helped reduce my load as well.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] root owned maildirsize revisited

2006-12-05 Thread Tom Collins

On Dec 4, 2006, at 5:27 PM, Charles Sprickman wrote:
vdelivermail, maildrop, qmail-local - none are setuid root.  I see  
this on users that have pop/imap access closed off.  So I think  
that means we're talking about something doing the delivery is  
doing this.


So how do they pick up their email?  Or are you saying that it  
happens on accounts where no one could possibly pick up the messages?


What version of vpopmail are you using?  I made some major changes to  
vdelivermail around 5.4.12 (or so) that may have improved handling of  
the maildirsize file, but since vdelivermail never runs as root, I  
don't see how it could rebuild the maildirsize file as root.


To the best of my limited knowledge, vdelivermail will change  
maildirsize, as will the POP or IMAP server, but not much else.


EXCEPT, vmoduser and some of the other command-line tools.  Is it  
possible that an admin on the box is running one of the command-line  
tools to modify the user, resulting in the maildirsize file getting  
rebuilt?


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] duplicate emails in simscan when remote server times out

2006-12-05 Thread Tom Collins

On Nov 30, 2006, at 4:27 PM, Rick Macdougall wrote:
Off Topic:  Tom: Did that qmail patch for simscan work for you when  
your server gets overloaded (regarding duplicate messages when  
simscan takes to long to get back to the remote server and the  
remote server times out ?)


I thought it did, but I just got a message that seems to indicate  
that it didn't.  Someone emailing me got this error:


Message delivery to the host '123.45.67.89' failed while delivering  
to the remote domain 'domain.com' for the following reason: The  
semaphore timeout period has expired.


I checked my logs, and the virus scan took 12 seconds.  Most of that  
(11s) was scanning the msg file, so I assume it took another 11s to  
ripmime it before calling clamav.  I guess 23 seconds is a long time  
to wait for a response after ending the DATA part of an SMTP  
conversation.


It could just be a bad timing thing where the other end drops the  
connection and simscan replies that it was received OK before it  
knows the connection closed.


It might need some further testing by the simscan developers to find  
additional failure points.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] duplicate emails in simscan when remote server times out

2006-12-05 Thread Tom Collins

On Dec 5, 2006, at 4:13 PM, Rick Macdougall wrote:
Interesting.  Do you have any idea what the remote email server  
was ? (The actual MTA I mean).


Microsoft ESMTP MAIL Service, Version: 6.0.3790.1830

Maybe an older version of Exchange that needs to be updated?

--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] 5.4.17 patches

2006-12-11 Thread Tom Collins

On Dec 11, 2006, at 3:25 AM, [EMAIL PROTECTED] wrote:
I have a patch for implementing personal .qmail files (.qmail files  
inside
the user directory and not just in the domain directory), I also  
have a

variation on this patch to name these .vpopmail files.

I also have a patch which implements alias line removal in valias.c  
(-r

flag), removal of SQL aliases only and adding alias line removal in
vpalias.c (function valias_remove()).

I also have a patch which changes vpopmaild.c to use the new valias  
code

(as requested in vpopmaild.c - as a comment).

Does anyone want these patches - I did not want to litter the list  
with

them.  I had sent the first one to the list before which while it
provoked a discussion got forgotten.  I find them all VERY useful.


We're definitely interested.  I maintain the 5.4 releases, and have  
5.4.18 waiting to be released.  It includes a lot of changes by Rick  
Widmer, and patches by Peter Pentchev.


I'm not sure I understand the first one though -- vdelivermail and  
qmailadmin already support a .qmail file in the user's directory.   
Are you talking about .qmail-extension files?


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] 5.4.17 patches

2006-12-12 Thread Tom Collins

Drew,

The functionality added by these patches sounds great.  If the code  
looks good I'll get them into the next release.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] .vpopmail-* instead of .qmail-*

2006-12-12 Thread Tom Collins

On Dec 12, 2006, at 9:36 PM, Rick Widmer wrote:
Qmailadmin should read .vpopmail files before .qmail files and  
delete the .qmail file if it exists when the .vpopmail file is  
written. Effectively the files will be renamed as they are edited.   
Maybe there needs to be a ./configure option to disable the new  
file name.


What do you think?


If we go with that, should the user's .qmail file become .vpopmail- 
default?


I think that it should be a configure option in vpopmail that  
cascades into QmailAdmin.  We'll need to make it clear to the admin  
enabling the feature that they need to update their QmailAdmin as well.


--
Tom Collins  -  [EMAIL PROTECTED]
Certified Rabbit Semiconductor Consultant based in Napa, California




Re: [vchkpw] 5.4.17 patches

2006-12-12 Thread Tom Collins

On Dec 12, 2006, at 7:48 PM, John Simpson wrote:
no, but my onchange patch (which is waiting to be included, hint,  
hint guys) will add a hook that you can use to send a welcome  
message whenever a mailbox is added. it's a much more generic  
mechanism, but it can be used with the appropriate scripting to do  
what you need.


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

the only thing it's waiting on is for somebody (rick?) who knows  
how to edit the ./configure script to add an option to enable or  
disable it from the ./configure command line, and have that add  
lines to config.h... and then somebody (tom?) to add it to an  
official version of vpopmail.


The squeaky wheel gets the grease...

It's in my queue, and I hope to have some time to work on vpopmail  
and qmailadmin over the holidays.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Incorrect From address when using valias

2006-12-20 Thread Tom Collins

On Dec 20, 2006, at 10:16 AM, John Swarbrick wrote:

[EMAIL PROTECTED] qmail-smtpd]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mx1.testserver.com ESMTP
HELO me.com
250 mx1.testserver.com
mail from: [EMAIL PROTECTED]
250 ok
rcpt to: [EMAIL PROTECTED]
250 ok
data
354 go ahead
Test
.
250 ok 1166640551 qp 29612


The email correctly arrives in the mailbox [EMAIL PROTECTED] (so the alias
worked) but the from address is [EMAIL PROTECTED]  
- why

isn't the from address [EMAIL PROTECTED]


Because you didn't include any headers in the DATA section of the  
SMTP conversation.


Try adding From: [EMAIL PROTECTED] and To: John [EMAIL PROTECTED] and maybe  
even a subject.  Don't forget a blank line before the body (Test).


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] onchange

2006-12-22 Thread Tom Collins

On Dec 22, 2006, at 5:02 AM, John Simpson wrote:
i think it's easier to just leave it as running a shell script- the  
concept is a lot easier for people to understand and administer.  
and again, unless you're running a huge ISP and have a steady  
stream of changes, the script isn't run so often that the overhead  
is worth worrying about.


I'd have to agree with John.  This fits well with djb's principle of  
having small programs interact with each other.  There's no need to  
us to maintain pipe writing code like that in vpopmail.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] 5.4.18 release candidate

2006-12-24 Thread Tom Collins

On Dec 23, 2006, at 6:41 PM, Rick Widmer wrote:
- SQL backend fixes - Extend length of domain from 64 to 96 in all  
database backends.  Add delete_spamassassin and delete_spam to the  
limits table.  REQUIRES DATABASE STRUCTURE CHANGES!


Since MySQL is the most common SQL backend, we should include the SQL  
statements (ALTER TABLE) someone would have to use to make the  
necessary changes.


- MySQL backquotes around table names so you can use a digit as the  
first character.


- Don't update the relay CDB for statically covered addresses.  
(extended version.)


Do we have to worry about a race condition where I do my POP pickup  
and the relay CDB isn't updated with the new timestamp (since I'm in  
there from an earlier pickup) but the entry expires before my SMTP  
starts?  I don't think I've ever used the pop-before-smtp feature, so  
I'm not sure on the details of how it works...


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] creating a custom field in vpopmail

2006-12-29 Thread Tom Collins

On Dec 28, 2006, at 11:33 PM, Yahoo User wrote:
Hi all, im trying to modify the source to add a custom field when a  
user is created... IE... on the web admin when u create a new user  
the admin is also asked to put an ID number in... just a simple  
field, so here goes my theory, i did a search on all source files  
for gecos, then i created similar fields. ie instead of pw_gecos i  
would add pw_idnumber... i finish editing all the files and i get  
unusual errors when i try to compile. Errors such as.


You're in luck -- the pw_uid field isn't used by vpopmail, so you can  
re-use it for your needs.


If you're a non-programmer, it won't be easy to get it to show up in  
QmailAdmin though.  You might be able to pay one of the QmailAdmin  
developers on the list qmailadmin-devel (go to http:// 
qmailadmin.sf.net/ for subscription info) to do it for you.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] A vpopmail farm/NFS framework?

2007-01-02 Thread Tom Collins

On Jan 2, 2007, at 1:37 PM, DAve wrote:

front-end  (target)- NFS (source)
---
/home/vpopmail/domains - /shared/vdomains
/var/qmail/control - /shared/qmail-control
/usr/local/www - /shared/webmail
/var/tmp   - /shared/webmail-sessions


Don't forget /var/qmail/users as well.

--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Further thoughts on my localrelay patch

2007-01-03 Thread Tom Collins

On Jan 3, 2007, at 10:48 AM, John Simpson wrote:
there does need to be a way to set what gets added to the smtpd  
access control file for dynamic entries. i'm not sure that  
highjacking an existing option is the right way to do it, nor do i  
think it should be a configure option. i think it makes more sense  
to let it be configured at run time- something like read the first  
line of a ~vpopmail/etc/_ file and use that.


I like the idea of an environment variable -- no overhead from  
reading it from a file every time vchkpw runs.  You can also  
customize it per connection if necessary.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Rename user's .qmail to .vpopmail

2007-01-05 Thread Tom Collins

On Jan 5, 2007, at 10:34 AM, Rick Widmer wrote:
I did not see any objections on changing to .vpopmail* files in  
user but
not domain directories.  If anyone does object, now is the time.   
Files

in ~vppopmail/domains/user_name/ are executed by vdelivermail and will
be renamed.  Files in ~vpopmail/domains/ will stay .qmail and are
executed by qmail-local.

Vdelivermail will look for .vpopmail files and .qmail files in the  
users
directory.  If both exist, only the .vpopmail file will be  
executed.  If
it does not check the sticky bit and defer messages like qmail- 
local it
needs to.  Editing a user .qmail file with the library should  
result in

it being renamed to .vpopmail.  If both exist, the .qmail file is
ignored.  UPGRADE will recommend running Jeremy's script to bulk  
rename

the files when you install.


I don't see a huge reason to change to .vpopmail.  Yes, it's true  
that vdelivermail is responsible for parsing it, but we're using  
identical syntax to a .qmail file.  Looking at the old source, it  
appears that someone was working on a replacement for qmail-local  
that would understand the vpopmail setup.


Here's where I get worried:  QmailAdmin and (I think) SquirrelMail  
plugins and who-knows-what-else already make use of .qmail files.   
Now that .qmail files are fully supported in vpalias.c, we can update  
QmailAdmin to use the vpopmail API to work with the files, and it  
won't know anything about their contents.


I do worry about version compatibility though -- someone running new  
vpopmail and old qmailadmin.


I see limited benefit to changing at this point.  If we're going to  
make vdelivermail more and more like qmail-local, then I'm for  
keeping the .qmail filenames.


Tom Collins
Tom Logic LLC
PO Box 5717
Napa, CA 94581
(707) 265-6622
(707) 265-6646 fax
[EMAIL PROTECTED]




Re: [vchkpw] Rename user's .qmail to .vpopmail

2007-01-05 Thread Tom Collins

(sorry for not including this in my last email)

On Jan 5, 2007, at 10:34 AM, Rick Widmer wrote:

I still want to change files to .vpopmail, unless they go
out of their way to disable it.  I think Charles Cazabon's  
objection to .qmail files that are executed by vdelivermail is a  
strong enough reason to do so.  I want to eliminate as many of his  
objections to vpopmail as I can.


Who the heck is Charles Cazabon and why should I care that he thinks  
our files shouldn't be called .qmail?  Vpopmail is an add-on to Qmail  
-- let's just rename vdelivermail to qmail-vpop...


If vdelivermail handled the file identically to the way qmail-local  
does, would he be OK with that?


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] The future of valias other topics

2007-01-06 Thread Tom Collins

On Jan 6, 2007, at 12:26 AM, John Simpson wrote:
as for making .vpopmail* files fully compatible with .qmail* files,  
that could also be a good thing- however the interface (in terms of  
which environment variables will be passed to scripts run from  
the .vpopmail file, what values will be contained in those  
variables, and how the return values will be interpreted) should be  
not only documented, but made to be as compatible as possible with  
what qmail-local would pass to a script in the .qmail file of a  
system account mailbox. this way if somebody has to transition a  
domain from being system accounts to being managed by vpopmail,  
there should be no changes to the files or scripts (as long as they  
are using the environment variables properly, as opposed to hard- 
coding path names into the script- which we all know users do.)


Except they would need to rename all of the .qmail-ext files in the  
user's directory to .vpopmail-ext.


i respect charles and his opinion about .qmail and .vpopmail  
files... but making charles happy is not a primary goal of  
vpopmail, and it's certainly not an excuse to unsafely force this  
change on all of the existing vpopmail systems out there. i think  
it makes more sense to explain the situation to the administrators,  
provide them with a tool to manually rename the files en masse (and  
identify any problem cases where both .qmail and .vpopmail files  
already exist) and TELL them that it should be done- but the final  
decision about whether and when to do the change should be left in  
the hands of the administrator of each system.


of course i would also remove the either/or filename logic from  
the NEXT version of vpopmail, so that if they haven't renamed the  
files, they become broken and it's their own fault.


How about this -- make it a configure option.  People who want to  
call them .vpopmail can choose that option and run the tool to do the  
conversion.  People who want to continue using .qmail (like me) can  
easily do so.


Seriously, I don't see any advantages for vpopmail admins to  
use .vpopmail instead of .qmail, other than it makes clear which  
files are parsed by .qmail-local and which are parsed by vdelivermail.


(2) change all of the database back-ends to store their aliases in  
the filesystem. while this allows these users to control the  
sequence in which the delivery instructions will be processed, it  
TAKES AWAY their current ability to maintain the contents of their  
aliases by doing SQL queries, and FORCES them to have to edit a  
file on the filesystem in order to maintain their aliases.


the second option would certainly be easier to write (only one set  
of maintenance functions involved.) however, if there are users who  
NEED to have the alias lines stored in a database, and they are  
willing to adjust their own systems to deal with a sequence field,  
then there is no reason (other than time constraints) that we can't  
store everything in a database.


This already exists -- no need to write it.  Just compile with -- 
disable-valias.


i've already written pseudo-code for the framework of each  
maintenance operation, the only thing preventing me from turning  
that into real working code at this point is free time, and the  
lack of a consensus about how it will be handled (i.e. i don't want  
to write code which won't actually be used.)


if there are users out there who NEED to have the alias lines  
stored in their database back-ends, we CAN make that happen.  
granted, it means more coding and more testing, which means it'll  
probably take a little longer to finish, but if it makes the  
program usable to more people, isn't that the important thing?


I've pictured this in my head as well, and I agree with John that we  
should add a sequence field to the existing table, then add the tools  
to support it properly.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Rename user's .qmail to .vpopmail

2007-01-06 Thread Tom Collins

On Jan 6, 2007, at 3:34 AM, Rick Widmer wrote:

Tom Collins wrote:
 Now that .qmail files are fully supported in vpalias.c, we can
 update  QmailAdmin to use the vpopmail API to work with the files,
 and it won't know anything about their contents.

I'm planning on it.  I may even have it done in some of the old  
code I have around here.  I was working on unifying aliases when  
Ken released the daemon.


Please let me do it -- I'm in the middle of working with some guys on  
making QmailAdmin skinnable with css.


I know where to make the change, because I remember when I added  
valias support to QmailAdmin and had to leave some code in to handle  
dotqmail files.


I'd bet a little bit that we are there already, I think extension  
handling was the last missing piece.  I compared vdelivermail.c  
with man qmail-local and nothing stood out.  Before I say they  
_are_ the same I'll have to compare the source code of both and do  
some testing.  Since it took a week to write my last message, I  
make no promises when that will happen...  maybe I'll just wait  
till someone discovers a difference.


Do you think it would be possible for vdelivermail to set up the  
environment variables correctly and then call qmail-local on the  
virtual user's directory?  Just a thought.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] The future of valias other topics

2007-01-06 Thread Tom Collins

On Jan 6, 2007, at 5:15 PM, Rick Widmer wrote:
Yes there will be a sequence field in the table.  The question is  
how do we add the tools.  Do we break the existing alias interface,  
or do we provide an alternate interface for when order is  
important, leaving all existing code intact.  I'm working on a  
reply to John on this, but it may be a day or two...


If the order isn't specified, it's added to the end.  Create a new  
function in libvpopmail and new switches to the valias program to  
specify order.  The old function just becomes a call to the new  
function.


Include a define or configure check in QmailAdmin to see if they new  
API is present and, if so, show an interface to the user for it.  Or,  
to make things easier, that QmailAdmin can require a minimum version  
of vpopmail.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] onauth API

2007-01-09 Thread Tom Collins

Guys,

If you're on the vpopmail-devel list on Sourceforge, it would be a  
great place to take these discussions.


They're good discussions to have, but I think it helps to keep  
discussions of the nitty-gritty details separate from the general  
user list.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] qmail-tap installation issue

2007-01-10 Thread Tom Collins

On Jan 10, 2007, at 11:30 AM, Facundo Barrera - GMail wrote:

any ideas how to solute this??


You want -p1 instead of -p0.

--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] how use chkuser on dmz

2007-01-10 Thread Tom Collins

On Jan 10, 2007, at 3:25 PM, Miki wrote:

Ho I can handle it ? Chkuser is working fine when are domains on
server, but how I can check user existency on remote server ?
FYI: rsync of passwd.cdb is ok, but how check against aliases ?


rsync ~vpopmail/domains but have it ignore any directory with  
Maildir in the name.  That way you won't be syncing gigabytes of  
email.


As Rick mentioned, mirror the /var/qmail/control/* and /var/qmail/ 
users/* files, *except* for /var/qmail/control/virtualdomains.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Error: Illegal username

2007-01-15 Thread Tom Collins

On Jan 15, 2007, at 7:19 AM, martin wrote:

cd /home/vpopmail/bin

./vpasswd [EMAIL PROTECTED] password

Error: Illegal username

domain and user still exists.

Tried other users in the domain and the second domain

It fails with Error: Illegal username on all attempts.


Is domain in /var/qmail/users/assign?

Does vuserinfo work?

Can you see the domain and it's vpasswd file in ~vpopmail/domains  
(exact directory will be listed in /var/qmail/users/assign)?


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] vpopmail max quota of 2GB

2007-01-15 Thread Tom Collins

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.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Change/Rename all users to new domain

2007-01-24 Thread Tom Collins

On Jan 24, 2007, at 10:32 AM, Juliano Souza - Tecnologia wrote:
I have 300 users at the domain anyexample.net, we register a new  
domain called example.net.

But the users authenticate via imap using [EMAIL PROTECTED].

I want to change/rename all the users to the new domain  
example.net , so the user are now [EMAIL PROTECTED], and  
authenticate using this account.


How I can change transparently the method of auth and internal  
delivery (qmail/vpopmail) ?


vaddaliasdomain anyexample.net example.net

--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Change/Rename all users to new domain

2007-01-24 Thread Tom Collins

On Jan 24, 2007, at 11:14 AM, Juliano Souza - Tecnologia wrote:
I know about it, but it is incoming mails, if the user  
[EMAIL PROTECTED] send an email for the internet, the receiver  
[EMAIL PROTECTED] see the origin via anyexample.net, not example.net


To fix that, you'll need to get the users to update their email  
client.  I don't know of any way to have qmail rewrite headers on  
outbound email...


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Better smtp logs

2007-02-22 Thread Tom Collins

On Feb 21, 2007, at 2:56 PM, Max Esquivel wrote:
Is there any way to configure the smtp log to show which account is  
being logged in or auth'ed to send, sort of like what the pop log  
shows?


Take a look at the chkuser patch http://www.interazioni.it/ 
opensource/chkuser/.  It will log the SMTP envelope information,  
including what account authenticated.  It also rejects email to non- 
existent users at the SMTP level, instead of waiting for it to get to  
vdelivermail and generate a bounce.


Also consider simscan http://inter7.com/simscan/.  It logs the  
sender, recipient, ip address and subject line of messages considered  
spam.  You could modify it to log more headers if chkuser isn't  
giving you enough.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Moving vpop virtual acounts to another server

2007-02-22 Thread Tom Collins

On Feb 22, 2007, at 1:58 PM, Claas Langbehn wrote:
sure there is. You need to copy ~vpopmail/domains to the new  
server. That
countains all accounts and data. To make qmail know about them you  
need to

copy /var/qmail/users/*, /var/qmail/control/rcpthosts and
/var/qmail/control/morercpthosts, too.
Jst in case, check the directories under /var/qmail/ for special  
configs

on your system.


You forgot /var/qmail/control/virtualdomains.

--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Vpopmail smtp-auth

2007-03-08 Thread Tom Collins

DAve,

I think you've found a bug in vchkpw.

For some reason, it wants to create the user's directory if it  
doesn't already exist.  This could be related to updating the  
lastauth file in the user's directory.  Disabling AUTH_LOGGING on  
that system will help, but you'll still have code trying to create  
the directory.


Go into login_virtual_user() and get rid of everything from the  
comment, If thier directory path is empty make them a new one to  
right before #ifdef CLEAR_PASS.


Let me know if that works, and I'll make changes to the release  
version.  That code could probably be permanently removed -- the  
user's directory is created by vdelivermail when necessary.  vchkpw  
doesn't need to be doing it.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




[vchkpw] [SPAM] Re: [vchkpw] [SPAM] valias dont authenticate! helpzz

2007-03-13 Thread Tom Collins

On Mar 13, 2007, at 12:30 PM, [EMAIL PROTECTED] wrote:

I give this command:

mailz#valias -i [EMAIL PROTECTED] [EMAIL PROTECTED]

But, When I do an telnet localhost 143:

-a login [EMAIL PROTECTED] pass
-a NO Login failed.


valias is used for email forwarding, and it can forward messages to  
any address (including remote servers).  Logins only work for POP/ 
IMAP mailboxes.


vaddaliasdomain creates a domain alias, which is treated just like  
the real domain name in almost all cases.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/



!DSPAM:45f7014c19878534716275!



Re: [vchkpw] admin forwards via email

2007-04-15 Thread Tom Collins

On Apr 13, 2007, at 3:23 PM, Jeremy Kister wrote:
I advocate giving separate email addresses to everyone possible.  
Meaning if you're signing up for an account with a new site called  
BigFancySite.tld, i'd give them the email address  
[EMAIL PROTECTED]  Then I'd create a forward called  
bigfancysite.tld and send it to my main mailbox.  This is useful  
because it's an instant way to see who's given out your email  
address as well as being able to turn off the address with ease.


I've just advised users to use extended addresses.

As in email [EMAIL PROTECTED] and have it  
automatically go into [EMAIL PROTECTED]


Of course, a person could probably figure out your real email  
address, but in most cases you're looking at automated systems.  I  
guess that spambots might get smart and try dropping the -whatever  
and +whatever extensions on some email addresses at some point...


Either way, your script looks like a cool way to add a forward.   
Should I add it to vpopmai's contrib directory?  Do you want to wait  
a few weeks for feedback, make updates, and then have it added?


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Re: chkuser wrongly accept emails for default@

2007-04-18 Thread Tom Collins

On Apr 18, 2007, at 2:31 AM, tonix (Antonio Nati) wrote:
I suggest also to introduce a new notation for rejecting users/ 
aliases with a custom message (i.e.: reject user has changed  
address. Write to [EMAIL PROTECTED]). This would be a lot more useful than  
barely put a generic bounce string.


Until that's a part of chkuser, Stephane (and others) can use qmail's  
bouncesaying program in their .qmail-alias files.


# cat .qmail-someaddress
|/var/qmail/bin/bouncesaying 'user has changed address. Write to  
[EMAIL PROTECTED]'


Please be aware that vdelivermail should ONLY be in a domain's .qmail- 
default file.  Putting it into a .qmail-alias file or a user's .qmail  
file can introduce a mail loop (which vdelivermail should detect and  
stop looping) and probably won't accomplish what you want it to.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Farewell

2007-05-15 Thread Tom Collins

On May 14, 2007, at 9:58 PM, Michael Bowe wrote:
Tom Collins even popped in one day to say hello when he was on  
holidays in my neck of the woods (Australia). Was great to meet him  
in person.


And it was great to meet Michael as well.  Those of you who weren't  
using vpopmail before 2003 probably don't realize how many  
improvements were made back in the 5.3 days.  Michael helped out  
considerably with documentation and making code changes to prevent  
buffer overflows.  Take a look a the ChangeLog entries from 5.3.20 to  
5.4.0 to get an idea of how much Michael helped me in improving  
vpopmail.


Thanks for your help Michael, and if you find a suitable replacement  
for vpopmail that works with postfix, let us know about it!


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Rules on linking against the vpopmail libraries

2007-06-24 Thread Tom Collins

On Jun 24, 2007, at 2:35 PM, Rick Widmer wrote:
Selling a commercial product that includes vpopmail code is exactly  
what the GPL license is designed to prevent.  Why should you get to  
sell our labor without paying us?


What if QmailAdmin had been written as a proprietary, commercial  
app?  Would the GPL have prevented someone from doing that?


IANAL, but I don't think that linking libvpopmail and using it's API  
would necessarily force a program to be GPL.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Rules on linking against the vpopmail libraries

2007-06-25 Thread Tom Collins

On Jun 25, 2007, at 1:58 AM, Rick Widmer wrote:
I think it would because QmailAdmin includes vpopmail code at the  
linker level which requires it to be under the GPL license too.   
Late linking with .so files is acceptable, because the product does  
not include GPL code, and only links to an existing copy at run  
time.  That effect is why he wants the vpopmail library to be under  
LGPL, but it is not.


Vpopmail does make .so files now, but there are configuration  
options that change the library interface.  If Bert can dictate to  
the customer what vpopmail ./configure options to use it should  
work.  If various customers demand different settings he may need  
to compile a different version of his program for each.  I don't  
know what options are safe to change and what will be a problem.


Perhaps Bert could contribute to vpopmail to make it a dynamically  
linked library (.a instead of .so?), and to work in a way where  
programs like QmailAdmin don't need to pull information from  
Vpopmail's config.h file in order to compile correctly.


I'd really like to see that in vpopmail's future, so it would  
theoretically be possible to upgrade vpopmail without having to  
recompile qmailadmin, qmail-smtpd (for the chkuser patch) and  
whatever other apps have a statically linked vpopmail in them.


Of course, if the company Bert is working for is just going to use  
this software internally, then he might be OK as well (again,  
IANAL).  I thought GPL only came into play when you sold and/or  
distributed binaries to other people.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] alias .qmail-default do not work, qmail complains message_is_looping

2007-07-07 Thread Tom Collins

On Jul 7, 2007, at 7:24 PM, Shaohui Zheng wrote:

4. I replace /var/qmail/bin/qmail-local with
/home/vpopmail/bin/vqmaillocal(by following the installation docs)
if I do not replace, .qmail-default can work, but I can not recevie  
any mail.
after I install vpopmail, I try to send a mail to an nonexist  
account like this


Don't use vqmaillocal.  It hasn't been kept up to date, and is no  
longer supported.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Using vdelivermail

2007-07-13 Thread Tom Collins

On Jul 13, 2007, at 3:31 PM, Rick Widmer wrote:

Bounce-no-mailbox is no longer recommended, as it allows your mail
server to be used in Joe-Jobs.  It now seems better to delete all mail
to invalid addresses rather than spamming the random senders used by
spam-bots.


I still recommend bounce-no-mailbox, certainly if you have the qmail- 
smtpd chkuser patch installed.  It's the best way to reject bogus  
emails at the SMTP level and avoid wasting resources on spam/virus  
scanning.


With chkuser, is it possible to pull a joe-job?  The spammer connects  
directly to my SMTP server, but I reject it at the SMTP level instead  
of generating a bounce that I then try to deliver to the actual  
target (the forged sender of the message).


Please reconsider that recommendation.  Perhaps some discussion on  
the list is in order...


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




[vchkpw] Off Topic: Virtual FTP Server or web-based file manager?

2007-08-15 Thread Tom Collins
OK, so it's off-topic, but can anyone recommend an FTP server or web- 
based file manager that I can deploy on my hosting server that either  
integrates with vpopmail (like maybe Pure-FTPd) and has a nice  
interface for managing accounts?  I only have two IPs for my server,  
so multiple clients would share the same FTP server.  I'm considering  
having usernames that include domain names for logging in, and  
thought that QmailAdmin might be a good interface for managing the  
FTP accounts.  Web may be a better way to go, because FTP is already  
in use by clients for managing their web content.  If I use Pure-FTPd  
or vsftpd, it will need to be configured for both system users and  
virtual users.


A well-designed, web-based file manager would be a great replacement  
for FTP.  A search on SourceForge didn't turn up many promising  
leads.  Lots of stuff that hasn't been maintained since 2004, or has  
less than 1000 downloads.


Any recommendations?

--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] chkuser in my secondary MX

2007-08-29 Thread Tom Collins

On Aug 28, 2007, at 4:33 AM, Jean Carlos Oliveira Guandalini wrote:

I need run chkuser in my secondary MX server.

I followed the following steps:


snip


but it does not function.


On the backup MX, the domain should be in rcpthosts (or morercpthosts  
which builds morercpthosts.cdb) and users/assign (which builds to  
users/cdb).  It should NOT be in virtualdomains and it does not need  
to be in smtproutes if your primary server has a lower MX record than  
the backup server.


If you're using the CDB-backend, you'll probably want to copy the  
whole ~vpopmail/domains over, excluding Maildir directories, so  
chkuser will work.  And you'll probably want to rsync it every so  
often so new users and aliases go across.  I rsync the whole  
~vpopmail/domains directory each night so I have an off-site backup  
of email as well.


Here's what I rsync every 5 minutes, script runs on primary mx, and  
I've added the primary mx's ssh key to mx2's authorized_keys file:


rsync -azl --numeric-ids --exclude=Maildir --delete --exclude=lastauth \
  /home/vpopmail/domains/ [EMAIL PROTECTED]:/home/vpopmail/domains/
rsync -azl --numeric-ids /var/qmail/users [EMAIL PROTECTED]:/var/ 
qmail/

rsync -azl --numeric-ids --exclude=*.lock \
  /var/qmail/control/*hosts* /var/qmail/control/smtproutes \
  /var/qmail/control/badmail* [EMAIL PROTECTED]:/var/qmail/control/

I guess if I was backing up Maildirs as well, throughout the day, I  
could failover to that server should the primary die a horrible  
death.  I'd have to copy the virtualdomains file, stop the rsync, and  
update DNS so the backup had the lowest MX record.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] CRAM-MD5 vchkpw problem

2007-08-29 Thread Tom Collins

On Aug 28, 2007, at 10:47 AM, Jonathan Selander wrote:
I've set up SMTP AUTH and AUTH LOGIN works without problems,  
however when i try to login with mozilla thunderbird (which as far  
as i know uses CRAM-MD5), the login fails with the error message:


Aug 28 14:39:30 mail vpopmail[16420]: vchkpw-smtp: password fail  
(pass: '[EMAIL PROTECTED]') [EMAIL PROTECTED]: 
127.0.0.1


As if it uses the CRAM challenge as the password or something?

I run vpopmail 5.4.17-6 (debian package from http:// 
wiki.debian.iuculano.it/quick_howto)


You've got the wrong AUTH patch to qmail-smtpd.  Use the one from  
vpopmail contrib.  A long time ago I had considered modifying vchkpw  
to try swapping the challenge and response if the first pw check  
failed, but I don't think I ever got around to trying it.  That would  
allow vchkpw to work with both the old patch (which passed the  
challenge and response in the wrong order) and the current one.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Feature Request - vmoduser addition

2007-09-20 Thread Tom Collins

On Sep 20, 2007, at 12:19 AM, Quey wrote:
Is it possible to have vmoduser modified so that changing a  
password with  a new -$option  changes both encrypted and clear  
text passwords in one run?


It already does that.  When you set the clear password, it also  
updates the encrypted password.


I can't think of a time when you'd use the option to set the  
encrypted password directly, but it's there in case someone needs it...


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Mysql table

2007-09-21 Thread Tom Collins

On Sep 20, 2007, at 12:56 PM, Rick Widmer wrote:
If I remember right, speed was the reason for separate tables, but  
testing showed it was not faster.  I think the single table works  
better because all your mail users are accessing the same table,  
and its indexes so they stay loaded all the time.  If you use  
separate tables it is always thrashing the cache as different files  
need to be accessed.


If we were really looking for speed, we could move to a ng (next  
generation) table format that was more relational.  Provide tools to  
migrate from the old to the new for those people who only access the  
data through vpopmail's APIs.  Continue to support the old method for  
people who have home-grown apps that access the data.


The domains should be in a table of their own, and the users table  
should index the domains table.  Having an index in the users table  
on an int (and the resulting size savings) would be measurable.


The biggest change would be updating the selects and inserts in the  
code.  Not a huge change -- just a join between the tables.


Something to consider, and perhaps discuss further (on this list or  
vpopmail-devel).


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] 5.4.22 + Qmailadmin...is it going to be fixed ?

2007-09-21 Thread Tom Collins

On Sep 21, 2007, at 3:33 PM, Rick Widmer wrote:
There is a patch for qmailadmin on SourceForge.  Its tracker number  
is [1795973].  On the other hand, this weekend I will release  
5.4.23 that backs out the change that caused this problem.  I want  
a stable release that does not require any changes to existing code  
before the next batch of innovation.


Thanks for that -- I'm going to try to make a QmailAdmin release, and  
that patch to QmailAdmin isn't really a proper solution.  You'll get  
compiler errors from the implicit declaration of readuserquota (since  
it's been removed from the .h).


One solution would be to keep readuserquota() as it is, and create a  
new function to replace it (if that's necessary).


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Re: Mysql table

2007-09-21 Thread Tom Collins

On Sep 21, 2007, at 4:32 PM, Rick Widmer wrote:

Comments?


I think we'll get better domain alias support if you pull column  
`domain` out of table `Domains` and add it to the table `domain_alias`.


Domain name to domain on the system is a many to one  
relationship, so the name should be in a separate table.  I'm not  
sure we need to have a master and alias -- the names can all be  
equal with this setup.


I mention it because it reduces lookups to a single query (or at  
least a simpler query).  Instead of needing to check for the domain  
name in one of two tables, you just check one.


Apologies if this SQL has any MySQL-flavored syntax...

SELECT `user`.`password`, `user`.`flags`
FROM `domain_name`, `domain`, `users`
WHERE `domain_name`.`domain_id` = `domain`.`domain_id`
AND `user`.`domain_id` = `domain`.`domain_id`
AND `domain_name`.`name` = '%s' AND `user`.`name` = '%s'

You might even want to have the limits fields go into a separate  
table, with one entry in that table declared default.  That way,  
domains with default entries can all point to that single row in the  
limits table.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Shared libvpopmail thoughts

2007-09-25 Thread Tom Collins

On Sep 25, 2007, at 6:31 AM, Joshua Megerman wrote:
Perhaps the first step is to document the API as it currently  
stands, and
give people the option to build a shared library with the caviat  
that if

you reconfigure vpopmail, you need to rebuild those things that link
against it.  That would be a 5.5 branch, since it doesn't change the
current functionality (much).  Then we can in parallel start  
developing
the truly stable API and other changes that will become 6.0, and  
when we

do we can increment libvpopmail.so to indicate the ABI difference.


I would love to see this happen, but it is going to take a  
considerable amount of work.  I'm willing to provide lots of input on  
the API, but really don't have time to contribute actual code.


I can help out with documenting some of the ways that QmailAdmin  
interfaces with vpopmail.  Getting a new version of QmailAdmin to  
compile to a shared vpopmail lib with a single vpopmail.h to describe  
the API would be great.  As it is now, QmailAdmin actually uses  
vpopmail's config.h file at build time.  That will definitely have to  
go.


If we use two different names, could we retain backward compatibility  
by building a libvpopmail the way we do now (statically linked, apps  
may use vpopmail's config.h, etc.) in addition to the new-style,  
shared library with a well-defined API?


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Shared libvpopmail thoughts

2007-09-25 Thread Tom Collins

On Sep 25, 2007, at 10:06 AM, John Simpson wrote:
the idea of splitting the domains and mailboxes into different  
directories has been around forever, there's no excuse for somebody  
to not have made the adjustment by now.


I'm all for keeping it, but someone should fix it.  On my server,  
with a cdb backend, I have the following structure:


main directory: 65 domains
0: 25 domains
1: 2 domains
2: 2 domains
3: 0 domains
4: 3 domains
5: 44 domains

Just for reference, here's the .dir-control file for that server:

116
0
3
0 0 0
61 61 61
0 2 2
5 0 0
5

I'd love to see vadddomain do a better job of back-filling domains.   
Maybe vadddomain and vdeldomain could work together to keep  
directories at a balanced level.


Keep track of the next directory to fill in a file (which needs to be  
protected by a file lock).  The .dir-control file is supposed to work  
that way.


On vdeldomain, if the domain came out of a directory less than the  
next_directory, update next_directory.


On vadddomain, if next_directory has 100 domains after the addition,  
scan forward until you find a directory with 100 domains and update  
next_directory.


It should be possible to make the code generalized enough to work for  
the domains directory and the individual domain directories (for  
managing users via vuseradd and vuserdel).


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] Possible problem with nested pipes in vpopmail 5.4.18?

2007-09-28 Thread Tom Collins

On Sep 27, 2007, at 6:16 PM, Tren Blackburn wrote:

However as soon as I append another pipe like so:



cat .qmail-default

|/home/vpopmail/etc/qmail-pipe |/home/vpopmail/bin/vdelivermail ''  
bounce-no-mailbox


(I'm working offline, so apologies if an answer has already shown up  
on the list).


If qmail-pipe doesn't alter the contents of the message, then you wan  
this:


cat .qmail-default
|/home/vpopmail/etc/qmail-pipe
|/home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

With that setup, qmail-pipe's exit code will tell qmail-local to  
defer delivery if necessary.


If it does alter the contents, then you want to make sure you're not  
passing any output to vdelivermail.  I'm not an expert on pipes, but  
you may have to break the pipeline somehow for the qmail-pipe exit  
code to get through to qmail-local.  Otherwise, it really doesn't  
matter how qmail-pipe exits, the message will continue to flow  
through the pipeline.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] vpopmail 5.4.24 released

2007-10-01 Thread Tom Collins

On Oct 1, 2007, at 6:02 AM, DAve wrote:
I am not a developer, and I didn't sleep in a Holiday Inn last  
night. I would like to know what is going on and just maybe, when I  
am certain it may be a good thing, comment. Could I subscribe to  
the dev list? I would absolutely understand a no answer and not  
give it a second thought.


I think if you go to the vpopmail Sourceforge page (see my .sig) you  
can find the link to subscribe.  The developer list is open to anyone  
who's interested.


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




Re: [vchkpw] vpopmail or qmail problem?

2007-10-03 Thread Tom Collins

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Oct 2, 2007, at 7:19 PM, John Simpson wrote:
and knowing qmail like i do, i suspect there's nothing wrong with  
qmail-local except maybe some error or warning condition that it's  
silently ignoring, where we might wish it would complain about, so  
we know what's happening and can fix it.


My quick guess:  .qmail-bob-clamav is a blank file, when you really  
want a single line with # and nothing else.


Blank files are ignored; a file with a comment will be treated like  
delete.


If you want to go even further, take a look at the bouncesaying  
program that's a part of qmail.  You can use it to bounce messages  
for a particular address with a message of your choice.


- --
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFHAyzLve7eT9VwhJURAqbSAJ9+ec4cQbhWgqc8pzq9hf+c6gXxFQCeJtj3
httVt1yz3q31XBSK/Rmmjmg=
=3+dY
-END PGP SIGNATURE-


Re: [vchkpw] vpopmail or qmail problem?

2007-10-03 Thread Tom Collins

On Oct 3, 2007, at 1:53 AM, Andy wrote:

jedi padawan.org # cat .qmail-kindred-clamav
| /var/vpopmail/bin/vdelivermail '' delete


There's your mistake.

What's happening is qmail-local hands the message off to vdelivermail  
(because you told it to), which looks for an account kindred-clamav  
(which it does not find), then an account named kindred (which it  
does) and then delivers to kindred.


domain.com/.qmail-alias files are only read/processed by qmail- 
local.  vdelivermail only looks at accounts (in whatever backend  
you're using) and possibly valias entries in a database.


Rick, can you put this somewhere in the documentation:

VDELIVERMAIL SHOULD ONLY APPEAR IN YOUR .qmail-default FILE.  IF YOU  
PUT IT ELSEWHERE, IT WILL NOT DO WHAT YOU EXPECT IT TO DO.


Solution:

echo #  .qmail-kindred-clamav

Or to bounce the email:

echo |/var/qmail/bin/bouncesaying 'Invalid account'  .qmail- 
kindred-clamav


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




[vchkpw] [OT] VPS recommendations to offload spam/virus scanning?

2007-10-25 Thread Tom Collins
One of my hosting servers has become overwhelmed with processing  
inbound mail, and it's affecting the web and POP/IMAP hosting too  
much.  I feel that it will be easier to move spam/virus scanning off  
to another machine than it will be to try splitting my customers  
across two servers (I do not want to move web and email hosting for a  
bunch of domains).


I'm currently considering a VPS (virtual private server) solution,  
and it looks like I'll be fine with a server that provides 512MB of  
RAM and a minimal amount of disk space.  Can anyone recommend a  
hosting company that they've been happy with?


My plan is to do a full Shupp Toaster install, but leave out apache  
and SquirrelMail.  I'll use rsync from my main server to sync  
~vpopmail/domains (minus Maildir directories) so chkuser will work.   
I'll sync the appropriate files from /var/qmail/control, and add an  
smtproutes file built from the rcpthosts and morercpthosts files (it  
will just point to my server's IP).


If, over time, the VPS becomes overloaded, I should be able to pay  
for a larger resource allocation with my VPS provider, or just  
duplicate the VPS and start another instance with it's own IP and  
have equally-weighted MX records point to each.  I'd probably even  
host the VPS copy with a different provider for redundancy.


Thoughts?  Recommendations?

--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




[vchkpw] chkuser and qmail ext

2007-10-25 Thread Tom Collins

What am I doing wrong with my chkuser setup?

I want to have an alias of .qmail-fred, yet allow email to be  
accepted for .qmail-fred-something.


I'm using chkuser 2.0.8.  Do I need to create .qmail-fred-default and  
define CHKUSER_ENABLE_ALIAS_DEFAULT?  I have  
CHKUSER_ENABLE_USERS_EXTENSIONS defined, but it only seems to apply  
for users and not aliases.


If I have a .qmail-fred-default, will email for fred come in, or will  
it only work for fred-something?


--
Tom Collins  -  [EMAIL PROTECTED]
Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/
QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/




<    5   6   7   8   9   10   11   >