Re: [vchkpw] auto create dir for spam email
After I success to set automatically add spam directory by qmailadmin-hooks, I try to set automatically delete any user.pref file in the data directory of squirrelmail when del user in qmailadmin. However , error message appears in qmailadmin when del user: Error 8 Where the parameters are: /home/vpopmail/bin/deletedata.sh, deluser, test, test.com.hk, , Content-Type: text/htm My setting of qmailadmin-hooks are as follows: .qmailadmin-hooks: adduser /home/vpopmail/bin/addspamdir.sh deluser/home/vpopmail/bin/deletedata.sh /home/vpopmail/bin/deletedata.sh: #!/bin/bash USERNAME=$1 DOMAIN=$2 if [ -e /var/www/data/[EMAIL PROTECTED] ]; then /bin/bash -c /bin/rm -rf /var/www/data/[EMAIL PROTECTED] fi The problem seems not come from the script because it still appear even if I remark all in deletedata.sh Any suggestions ? Regards, Frankie It works after I change the apache user from apache:apache to vpopmail:vchkpw. Regards, Frankie If you have .qmailadmain-hooks in either the /home/vpopmail/etc or /home/vpopmail/domains/domain_name/ directories and the ownerships are right then it should be working. Unfortunately I don't know a good way to debug this. Is there anyone else on the list who works with the hooks who can help? Thanks, Barry Yes, sure both .qmailadmin-hooks and make_dirs.sh are owned by vpopmail:vchkpw and mode of make_dirs.sh is 755. .qmailadmin-hooks seems not work and not execute make_dirs.sh even I insert something into make_dirs.sh like this: touch /tmp/test but nothing is created in /tmp. Since I direct use qmailadmin, not the plugin to squirrelmail, I think apache user is not related to this issue, right ? How can I know or Is there any way to create a log for me to inspect such kind of error ? Best Regards, Frankie Hmmm. Since all the file locations are the same it is probably a rights issue. Make sure that .qmailadmin-hooks and make_dirs.sh are owned by the correct user and group. In many cases that would be oner vpopmail and group vchkpw. Also, my http server is not running under user apache but as user vpopmail. This was necessary in order to run the vmailadmin plugin in the Squirrelmail webmail client. It may be the reason it runs easily on my server. Barry Frankie Wong wrote: Hi, It doesn't work in my system even all script and file location exactly matching to your example. Any suggestions or hightlight ? Frankie Hi, Here's my scripts. There is probably a better way to do this but it works on our system. .qmailadmin-hooks: --snip-- adduser /home/vpopmail/domains/make_dirs.sh --snip-- make_dirs.sh: --snip-- #!/bin/bash NEWFOLDER=.Sent # From qmailadmin hooks USERNAME=$1 DOMAIN=$2 PASSWORD=$3 FULLNAME=$4 THEDIR=`cat /home/vpopmail/domains/$DOMAIN/vpasswd | grep $USERNAME | awk -F: '{print $6}'` mkdir $THEDIR/Maildir/$NEWFOLDER /dev/null mkdir $THEDIR/Maildir/$NEWFOLDER/new /dev/null mkdir $THEDIR/Maildir/$NEWFOLDER/cur /dev/null mkdir $THEDIR/Maildir/$NEWFOLDER/tmp /dev/null echo INBOX$NEWFOLDER $THEDIR/Maildir/courierimapsubscribed chown -R vpopmail.vchkpw $THEDIR/Maildir/ #only needed if script not run by vpopmail chmod -R 700 $THEDIR/Maildir/$NEWFOLDER #only needed if script not run by vpopmail --snip-- Good luck! Barry Frankie Wong wrote: I will be pleased if you can send me your script in order to let me have a better reference for my own script design. Regards, Frankie Hi, qmailadmin has hooks that will allow you to send info to other places when you add, delete or modify a user. Read the document /var/src/qmailadmin-x/README.hooks for details. Basically, it'll tell you to create a .qmailadmin-hooks file, what to put in it and the various places you may want to place the file. Make sure that .qmailadmin-hooks has the correct user and group ownership, too. I use it to call a bash script. It could probably also call /usr/lib/courier-imap/bin/maildirmake. If you want my script file let me know. Barry [EMAIL PROTECTED] wrote: http://www.jerfu.com/toaster/FullToaster_1.0.6.html show me a way to alter vpopmail.c in order to create directory for spam email automatically. However, it is only for version 5.3.11. Is there any link that can show me related information about vpopmail 5.4.1 ? Regards, Frankie
[vchkpw] vpopmail 5.2.2 minor auth problems
Hi all, I built a vpopmail on qmail system for the first time in a long time. I'm using netqmail 1.05 and vpopmail 5.2.2 (for the first time) I have only a few domains and a few accounts per domain so nothing complex. I have tested domain1 and users on domain one, and mail downloads ok - no problems there. An interesting issue with this is on the account is that I telnet 127.0.0.1 110it goes like this Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. +OK [EMAIL PROTECTED] user [EMAIL PROTECTED] +OK pass 123456 +OK -ERR unimplemented So the user is authenticated - and it looks ok but I get this error -ERR unimplemented - its not a big deal as the account is working. I am just trying to understand the problem I also have another account on testdomain2.co.uk which has the same problem Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. +OK [EMAIL PROTECTED] user [EMAIL PROTECTED] +OK pass 123456 +OK -ERR unimplemented Again this does not worry me, but when I connect to this account using a pop3 client (outlook 2003) the test account button works it logs in and all is well, but when I try to download mail via a pop3 connection I see error authenticating you against your pop3 server I AM using the same password as above - so it should be working as this authenticates ok. These are my 2 problems. Any comments or advice on debugging them would be appriciated. thanks, Matt
Re: [vchkpw] vpopmail 5.2.2 minor auth problems
Matt Darcy wrote: Hi all, I built a vpopmail on qmail system for the first time in a long time. I'm using netqmail 1.05 and vpopmail 5.2.2 (for the first time) The first thing I would do is get vpopmail 5.4.0 from here: http://sourceforge.net/projects/vpopmail/ Many bugs have been fixed since 5.2.2 Rick
Re: [vchkpw] auto create dir for spam email
On Mar 7, 2004, at 5:04 AM, Frankie Wong wrote: After I success to set automatically add spam directory by qmailadmin-hooks, I try to set automatically delete any user.pref file in the data directory of squirrelmail when del user in qmailadmin. However , error message appears in qmailadmin when del user: Error 8 Where the parameters are: /home/vpopmail/bin/deletedata.sh, deluser, test, test.com.hk, , Content-Type: text/htm Upgrade to qmailadmin 1.2.0 or later, as mentioned in a previous email. http://qmailadmin.sf.net/ Hooks were majorly broken until 1.2.0-pre1. That error message was removed in the cleanup, so you're running old code. -- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter hand-held Network Tester: http://sniffter.com/
Re: [vchkpw] auto create dir for spam email
On Mar 6, 2004, at 8:23 PM, Frankie Wong wrote: It works after I change the apache user from apache:apache to vpopmail:vchkpw. That should be unnecessary, as qmailadmin is a suid binary and will run as user vpopmail:vchkpw on a properly configured system. If you can authenticate with qmailadmin, and list/add/delete users, then there should be no need to set apache to run as vpopmail:vchkpw. Please see my other email about upgrading qmailadmin to v1.2.0 or later. -- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter hand-held Network Tester: http://sniffter.com/
Re: [vchkpw] auto create dir for spam email
My version is the updated one (1.2.1). Is there any setting I should highlight ? Regards, Frankie On Mar 7, 2004, at 5:04 AM, Frankie Wong wrote: After I success to set automatically add spam directory by qmailadmin-hooks, I try to set automatically delete any user.pref file in the data directory of squirrelmail when del user in qmailadmin. However , error message appears in qmailadmin when del user: Error 8 Where the parameters are: /home/vpopmail/bin/deletedata.sh, deluser, test, test.com.hk, , Content-Type: text/htm Upgrade to qmailadmin 1.2.0 or later, as mentioned in a previous email. http://qmailadmin.sf.net/ Hooks were majorly broken until 1.2.0-pre1. That error message was removed in the cleanup, so you're running old code. -- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter hand-held Network Tester: http://sniffter.com/
Re: [vchkpw] auto create dir for spam email
I tried it many times but it really works only after I change apache user to vpopmail:vchkpw under Mandrake 9.2. Regards, Frankie On Mar 6, 2004, at 8:23 PM, Frankie Wong wrote: It works after I change the apache user from apache:apache to vpopmail:vchkpw. That should be unnecessary, as qmailadmin is a suid binary and will run as user vpopmail:vchkpw on a properly configured system. If you can authenticate with qmailadmin, and list/add/delete users, then there should be no need to set apache to run as vpopmail:vchkpw. Please see my other email about upgrading qmailadmin to v1.2.0 or later. -- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter hand-held Network Tester: http://sniffter.com/
Re: [vchkpw] auto create dir for spam email
qmailadmin-1.2.1 was download from shupp.org. Should I turn back to version 1.2.0 ? Regards, Frankie My version is the updated one (1.2.1). Is there any setting I should highlight ? Regards, Frankie On Mar 7, 2004, at 5:04 AM, Frankie Wong wrote: After I success to set automatically add spam directory by qmailadmin-hooks, I try to set automatically delete any user.pref file in the data directory of squirrelmail when del user in qmailadmin. However , error message appears in qmailadmin when del user: Error 8 Where the parameters are: /home/vpopmail/bin/deletedata.sh, deluser, test, test.com.hk, , Content-Type: text/htm Upgrade to qmailadmin 1.2.0 or later, as mentioned in a previous email. http://qmailadmin.sf.net/ Hooks were majorly broken until 1.2.0-pre1. That error message was removed in the cleanup, so you're running old code. -- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter hand-held Network Tester: http://sniffter.com/
[vchkpw] Have I screwed myself?
Simple question: Have I screwed myself, and is it going to be possible to setup true multi domain hosting coming from what I have? My current setup is qmail + Checkpassword with the MySQL patch (from http://iain.cx/qmail/mysql/). It works great, but there is a major flaw with it. Lets say I setup an account to be [EMAIL PROTECTED] and another at [EMAIL PROTECTED]. If I send mail to [EMAIL PROTECTED] or [EMAIL PROTECTED], it will get to their mailbox. It should bounce, but it does not that is BAD. By using vchkpw, would that solve my problem? But how do I go about moving my current accounts in MySQL to work with the new schema of vchkpw? Also, is moving to vchkpw going to break my SMTP AUTH patch that I also use? Thanks, Chris Miller Compuville www.compuville.net
[vchkpw] enable roaming
I configured vpopmail 5.4.1 and everything worked fine. Then I realized that I didn't include enable-roaming. I've reconfigured a dozen times. It says at the end of the configure that it is on. make; make install-strip. Then run clearopensmtp and it says that roaming users isn't configured.. What to do next? -- Pat Walsh
Re: [vchkpw] vpopmail 5.2.2 minor auth problems
On Sunday 07 March 2004 1:23 pm, Matt Darcy wrote: Thanks guys, I was assuming that inter7's site was up to date when it said 5.2.2 was the latest stable. We've updated the site to point to 5.4.0 since it is stable and well tested. Ken Jones inter7.com As an aside is there any good suggestions on how to debug it ? Thanks, Matt. On Sunday 07 March 2004 15:48, Rick Widmer wrote: Matt Darcy wrote: Hi all, I built a vpopmail on qmail system for the first time in a long time. I'm using netqmail 1.05 and vpopmail 5.2.2 (for the first time) The first thing I would do is get vpopmail 5.4.0 from here: http://sourceforge.net/projects/vpopmail/ Many bugs have been fixed since 5.2.2 Rick
Re: [vchkpw] enable roaming
On Sunday 07 March 2004 4:16 pm, [EMAIL PROTECTED] wrote: I configured vpopmail 5.4.1 and everything worked fine. Then I realized that I didn't include enable-roaming. I've reconfigured a dozen times. It says at the end of the configure that it is on. make; make install-strip. Then run clearopensmtp and it says that roaming users isn't configured.. What to do next? Try starting fresh with make distclean ./configure your options make make install-strip Ken Jones
Re: [vchkpw] auto create dir for spam email
On Mar 7, 2004, at 10:03 AM, Frankie Wong wrote: On Mar 7, 2004, at 5:04 AM, Frankie Wong wrote: After I success to set automatically add spam directory by qmailadmin-hooks, I try to set automatically delete any user.pref file in the data directory of squirrelmail when del user in qmailadmin. However , error message appears in qmailadmin when del user: Error 8 Where the parameters are: /home/vpopmail/bin/deletedata.sh, deluser, test, test.com.hk, , Content-Type: text/htm My version is the updated one (1.2.1). Is there any setting I should highlight ? Regards, Frankie If you get that error message, then you aren't running 1.2.1. Find your qmailadmin binary (in the cgi-bin directory) and delete it. In your web browser, go to the qmailadmin URL and make sure you get a page not found error. Now, make and install 1.2.1. That error string was removed during the 1.2.0 pre-releases. And yes, you can use 1.2.1 instead of 1.2.0. -- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter hand-held Network Tester: http://sniffter.com/
Re: [vchkpw] how to make sender does not receive it's own email ?
Sorry to repost this but after some more search i did, i still can't find a way to do that. Could someone help please ? Thanks again Le Thursday 04 March 2004 13:33, Matthieu Foillard a écrit : Hi list, I'm running a classic setup using qmail + vpopmail + qmailadmin. I've some aliases defined and i want sender which is belong to an alias does not receive its own email. exemple, i've defined an alias like [EMAIL PROTECTED] - [EMAIL PROTECTED], [EMAIL PROTECTED] if [EMAIL PROTECTED] sends a mail to [EMAIL PROTECTED], i want [EMAIL PROTECTED] does _not_ receive its own email, only other members, in this case : [EMAIL PROTECTED] Is there a way to do so ? Then, using ezmlm-idx, i want to to the same so that senders does not receive its own email when sending mail to the list in which he belongs to. Thanks for help, Matthieu
Re: [vchkpw] how to make sender does not receive it's own email ?
I don't think that's possible with aliases or ezmlm mailing lists. On Mar 7, 2004, at 4:19 PM, Matthieu Foillard wrote: Sorry to repost this but after some more search i did, i still can't find a way to do that. Could someone help please ? Thanks again Le Thursday 04 March 2004 13:33, Matthieu Foillard a écrit : Hi list, I'm running a classic setup using qmail + vpopmail + qmailadmin. I've some aliases defined and i want sender which is belong to an alias does not receive its own email. exemple, i've defined an alias like [EMAIL PROTECTED] - [EMAIL PROTECTED], [EMAIL PROTECTED] if [EMAIL PROTECTED] sends a mail to [EMAIL PROTECTED], i want [EMAIL PROTECTED] does _not_ receive its own email, only other members, in this case : [EMAIL PROTECTED] Is there a way to do so ? Then, using ezmlm-idx, i want to to the same so that senders does not receive its own email when sending mail to the list in which he belongs to. Thanks for help, Matthieu -- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter hand-held Network Tester: http://sniffter.com/
Re: [vchkpw] how to make sender does not receive it's own email ?
I don't think that's possible with aliases or ezmlm mailing lists. Before i installed vpopmail, qmail was running using /etc/aliases and old sysadmin did something so that it worked like they want (i can't ask admin what he did) The problem is that the company which is running this server was very happy about this feature and flame me cause it does not work now :-( Maybe someone has an idea or some things i can investigate ? Thanks again, again ! On Mar 7, 2004, at 4:19 PM, Matthieu Foillard wrote: Sorry to repost this but after some more search i did, i still can't find a way to do that. Could someone help please ? Thanks again Le Thursday 04 March 2004 13:33, Matthieu Foillard a écrit : Hi list, I'm running a classic setup using qmail + vpopmail + qmailadmin. I've some aliases defined and i want sender which is belong to an alias does not receive its own email. exemple, i've defined an alias like [EMAIL PROTECTED] - [EMAIL PROTECTED], [EMAIL PROTECTED] if [EMAIL PROTECTED] sends a mail to [EMAIL PROTECTED], i want [EMAIL PROTECTED] does _not_ receive its own email, only other members, in this case : [EMAIL PROTECTED] Is there a way to do so ? Then, using ezmlm-idx, i want to to the same so that senders does not receive its own email when sending mail to the list in which he belongs to. Thanks for help, Matthieu -- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter hand-held Network Tester: http://sniffter.com/ -- Matthieu Foillard [EMAIL PROTECTED] tel : 0140719720 - mob : 0686574170 pgp : 0x1609654F
RE: [vchkpw] Have I screwed myself?
Yes if you use vpopmail + the chkusr patch, you can prevent those messages from ever reaching the queue of your mail server. Im not familiair with a qmail + Checkpassword with the MySQL patch setup, so you may need to recompile qmail to get it all working nicely. See a few of the howto documents like http://www.pipeline.com.au/staff/mbowe/isp/webmail-server.htmor http://www.shupp.org just to name 2 of the many howto's that are out there. Shane From: Chris Miller [mailto:[EMAIL PROTECTED] Sent: Monday, 8 March 2004 4:14 AMTo: [EMAIL PROTECTED]Subject: [vchkpw] Have I screwed myself? Simple question: Have I screwed myself, and is it going to be possible to setup true multi domain hosting coming from what I have? My current setup is qmail + Checkpassword with the MySQL patch (from http://iain.cx/qmail/mysql/). It works great, but there is a major flaw with it. Lets say I setup an account to be [EMAIL PROTECTED] and another at [EMAIL PROTECTED]. If I send mail to [EMAIL PROTECTED] or [EMAIL PROTECTED], it will get to their mailbox. It should bounce, but it does not that is BAD. By using vchkpw, would that solve my problem? But how do I go about moving my current accounts in MySQL to work with the new schema of vchkpw? Also, is moving to vchkpw going to break my SMTP AUTH patch that I also use? Thanks, Chris Miller Compuvillewww.compuville.net
Re: [vchkpw] vpopmail 5.2.2 minor auth problems
On Sun, 2004-03-07 at 09:41, X-Istence wrote: Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. +OK [EMAIL PROTECTED] user [EMAIL PROTECTED] +OK pass 123456 +OK -ERR unimplemented Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. +OK [EMAIL PROTECTED] user [EMAIL PROTECTED] +OK pass 123456 +OK -ERR unimplemented If you are new to this, i do suggest you try out vpopmail 5.4.0, its stable, works better and has a lot of work done to it. you completely ignored the question just to say to use vpopmail 5.4.0 the problem is he's submitting a blank line to qmail-pop3d. My machines do the same thing, one is using straight djb checkpassword, and the other is using vmailmgr. [EMAIL PROTECTED]:~$ telnet localhost 110 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. +OK [EMAIL PROTECTED] user kitchen +OK pass guessme +OK -ERR unimplemented It's completely normal. Try issuing a real pop3 command, such a LIST, or RETR messagenumber This really has nothing to do with vpopmail, as once you've authenticated it's all qmail-pop3d, and it certainly isn't a problem. -Jeremy -- Jeremy Kitchen Systems Administrator [EMAIL PROTECTED] Kitchen @ #qmail on EFNet - Join the party! . Inter7 Internet Technologies, Inc. www.inter7.com 866.528.3530 toll free 847.492.0470 int'l 847.492.0632 fax GNUPG key ID: 93BDD6CE
Re: [vchkpw] enable roaming
On Sun, 2004-03-07 at 17:01, Ken Jones wrote: On Sunday 07 March 2004 4:16 pm, [EMAIL PROTECTED] wrote: I configured vpopmail 5.4.1 and everything worked fine. Then I realized that I didn't include enable-roaming. I've reconfigured a dozen times. It says at the end of the configure that it is on. make; make install-strip. Then run clearopensmtp and it says that roaming users isn't configured.. What to do next? Try starting fresh with make distclean ./configure your options make make install-strip a 'make clean' in the source directory should remove all of the old binaries, and be enough to rebuild them properly.. However, the clearopensmtp should have been rebuilt with the updated changes. Perhaps a bug in the Makefile? -Jeremy -- Jeremy Kitchen Systems Administrator [EMAIL PROTECTED] Kitchen @ #qmail on EFNet - Join the party! . Inter7 Internet Technologies, Inc. www.inter7.com 866.528.3530 toll free 847.492.0470 int'l 847.492.0632 fax GNUPG key ID: 93BDD6CE
Re: [vchkpw] auto create dir for spam email
http://scriptkitchen.com/godkills.jpg -- please, think of the kittens! On Sun, 2004-03-07 at 11:08, Frankie Wong wrote: I tried it many times but it really works only after I change apache user to vpopmail:vchkpw under Mandrake 9.2. mandrake has a daemon that likes to change permissions under your feet. I believe it's called 'msec' either configure it properly, or disable it. It's probably removing the setuid flag on the qmailadmin binary. There should be no reason to have to run apache as the vpopmail user. -Jeremy -- Jeremy Kitchen Systems Administrator [EMAIL PROTECTED] Kitchen @ #qmail on EFNet - Join the party! . Inter7 Internet Technologies, Inc. www.inter7.com 866.528.3530 toll free 847.492.0470 int'l 847.492.0632 fax GNUPG key ID: 93BDD6CE
Re: [vchkpw] vpopmail 5.2.2 minor auth problems
On Mar 7, 2004, at 9:41 PM, Jeremy Kitchen wrote: you completely ignored the question just to say to use vpopmail 5.4.0 the problem is he's submitting a blank line to qmail-pop3d. My machines do the same thing, one is using straight djb checkpassword, and the other is using vmailmgr. Thanks for pointing this out, Jeremy. Vpopmail 5.2.2 is still a good release. I doubt you could say that 5.4.0 works better (and I'm not sure what X-Istence based that statement on). For anyone who has been happy running 5.2.1, I recommend 5.2.2. Anyone running a 5.3.x release really should consider upgrading to 5.4.x. We fixed a lot of bugs from that series, especially in the last few months leading up to 5.4.0. -- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter hand-held Network Tester: http://sniffter.com/
[vchkpw] Moving everything to a new server
I would like to move everything from one server to another. I have installed mysql, vpopmail, qmail, and a bunch of other services on the new machine. Now all that remains is moving my vpopmail database over to the new server. Since this database is pretty big, I don't want to create all of those tables again, so I'd like to just copy everything over. I have tried copying over all the stuff from /var/lib/mysql/vpopmail over to the new machine. I have also copied over all the domains under /home/vpopmail/domains, and also copied over the stuff under /var/qmail/control and /var/qmail/users but it's still giving me vpopmail user not found errors when I try to authenticate with a mail client. I have run mysql login commands manually to be sure it's not a login problem to the mysql server. The file /home/vpopmail/etc/vpopmail.mysql was also copied over. What am I forgetting? Is there a better (cleaner) way to do this? _ One-click access to Hotmail from any Web page download MSN Toolbar now! http://clk.atdmt.com/AVE/go/onm00200413ave/direct/01/