Re: [vchkpw] Courier support

2009-03-13 Thread ISP Lists
Where's the best documentation to migrate off of Courier?
I presume Dovecot is the favored IMAP now for Vpopmail?
Any known issues in making this switch?

 Matt Brookings wrote:
 My question is this: Courier-IMAP has dropped us, should we drop
Courier-IMAP?

 Most definitely Yes!

 







!DSPAM:49ba554232689351814391!



[vchkpw] chkuser 2.0b - somes false positives

2009-01-26 Thread ISP Lists
A system that's been running with 9000 users is now experiencing
intermittent false positives when checking for invalid recipients.  It's
allowing invalid recipients sometimes.  I cannot find a pattern.

Any guess on areas that might be culprits?  Does chkuser have a default
permit behavior if it cannot reach IMAP or Sql?  Not sure if there's a
resource issue on the machine yet.

Mysql backend, linux, courier imap, vpopmail 5.4.17, chkuser 2.08b

Thanks.


!DSPAM:497e28c432685692751208!



[vchkpw] How to route local delivery through a separate SMTP spam scanner

2008-05-07 Thread ISP Lists
A customer has challenged whether this can be done...

Anti-SPAM appliances A, B, and C are available on an internal LAN
via DNS round-robin through SMTP at appliance.example.com

VPOPMAIL server D is on the same LAN.

Customer has had a few local accounts that had their password guessed and
spammers sent spam through webmail.

S

We're considering doing something inline to the delivery process that
would 1) accept the authenticated user's email for remote/local delivery,
2) force that delivery off of box D to A-C over SMTP in ALL cases (not
just remote), 3) Scan on A-C, 4) return the inbound (local) mail back to
D for further delivery to the locals.

I realize this is pretty insane, but the customer isn't excited about
adding a local spam daemon to D and would like to leverage the
investment in the appliances A-C to control for local delivery abuses. 
The appliances are doing a nice job on SMTP scanning, but the vendor says
that their appliance does not have a port listener (like a spamd daemon)
that could answer a stream request - thus only SMTP will do.

Ideas?  THANKS!  Dave.


!DSPAM:48223e3e120508248733278!



RE: [vchkpw] How to route local delivery through a separate SMTP spam scanner

2008-05-07 Thread ISP Lists
/me thumps head Very cool!  Thanks for the idea on options!


 It can be done quite easily.


 Two options:


 Preferred:

 Configure webmail to send messages directly to the appliances.



 Alternatively:

 Install a dumb SMTP mailer on D that listens on a port other than 25.
 Configure that dumb-mailer to forward all mail to the appliances.
 Configure
 webmail to send messages to the dumb mailer's listening port.


 webmail -SMTP- D dumb-mailer listening on tcp:125(example) -SMTP-
 appliances via static SMTP route -SMTP- back to D tcp:25 via static
 SMTP
 route for local deliveries





 -Original Message-
 From: ISP Lists [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 07, 2008 4:41 PM
 To: vchkpw@inter7.com
 Subject: [vchkpw] How to route local delivery through a separate SMTP spam
 scanner

 A customer has challenged whether this can be done...

 Anti-SPAM appliances A, B, and C are available on an internal LAN
 via DNS round-robin through SMTP at appliance.example.com

 VPOPMAIL server D is on the same LAN.

 Customer has had a few local accounts that had their password guessed and
 spammers sent spam through webmail.

 S

 We're considering doing something inline to the delivery process that
 would 1) accept the authenticated user's email for remote/local delivery,
 2) force that delivery off of box D to A-C over SMTP in ALL cases (not
 just remote), 3) Scan on A-C, 4) return the inbound (local) mail back to
 D for further delivery to the locals.

 I realize this is pretty insane, but the customer isn't excited about
 adding a local spam daemon to D and would like to leverage the
 investment in the appliances A-C to control for local delivery abuses.
 The appliances are doing a nice job on SMTP scanning, but the vendor says
 that their appliance does not have a port listener (like a spamd daemon)
 that could answer a stream request - thus only SMTP will do.

 Ideas?  THANKS!  Dave.





 





!DSPAM:48225a58120502068847775!



Re: [vchkpw] Distribute Qmail + Vpopmail bundle

2008-02-26 Thread ISP Lists
 Joshua Megerman wrote:
 On Saturday 23 February 2008 01:55:14 pm Nick Bright wrote:
 While the qmail sources are available, it is not GPL. It's my
 understanding that the way qmail is licensed specifically forbids
 repackaging.

 Um, no.  As the original poster stated qmail is now in the public
 domain,
 which means there is not only no restrictions to its distribution,
 there's
 not even any license anymore.

 Well, that is excellent. I was not aware that it had been placed into
 the public domain.

 Perhaps now someone could get a project together with some traction to
 integrate all of the best patches into qmail and make a technologically
 recent package that doesn't have to have 15 patches applied to get
 anything resembling a recent feature set.


Are you aware of the netqmail project or Bill Shupp's qmail toaster project?
Easily googled if you weren't.


 I for one would love to see inter7 take the lead on such a project, as
 they have a proven track record and as far as I can tell, know qmail
 quite well.


 And please try not to top-post :)

 I'll never understand why people don't like top posting. I find it
 easier to read, but lets not get OT on this; I'm sure it's been argued
 about before.


 Josh

 





!DSPAM:47c4001f31054114656!



Re: [vchkpw] OT: Which RBLsmtpd lookups are you using?

2008-02-01 Thread ISP Lists
 Adi Pircalabu wrote:
 On Fri, 01 Feb 2008 07:33:53 +1000 Quey wrote:


 dnsbl.sorbs.net
 bl.spamcop.net


 Don't use these to reject connections at SMTP level, they give many
 false-positives. Eventually use them only after queueing, and only to
 increase the spam score.
 zen.spamhaus.org and list.dsbl.org, au contraire, are much better
 choices for rblsmtpd.

 My 0,02RON


 each to our own, I dont consider they give many false positives at all,
 not in this part of the world, but of course it may be different for
 where you are,  however even with the acceptable FP's they *may* give,
 the massive reduction in spam makes it completely worth it.
 The more they hit there, the less work MailScanner has to do, it can use
 system resources just to scan for viruses and phishing and of course
 whatever spam it detects that get past the RBL's  :-)

 A good thing to do as well  which also dramatically reduces spam, is
 enforce DNS forward and reverse, if someone can't be bothered making
 sure their mail server is RFC compliant, then I am under no obligation
 to allow my servers to accept connections from them.



 



My thanks to everyone who contributed!  I'm on zen.spamhaus.org now! 
Noticed at least some increase in stopped connections at smtpd!  A good
thing, in my review.  I'll research FPs for downside.  Thanks!




!DSPAM:47a381a0310549759113929!



[vchkpw] OT: Which RBLsmtpd lookups are you using?

2008-01-31 Thread ISP Lists
Which RBLsmtpd references are you using in your smtpd listeners and why?
(example sbl-xbl.spamhaus.org in /var/qmail/supervise/qmail-smtp/run)


!DSPAM:47a1f0e1310547134712337!



[vchkpw] OT: Webmail trends for vpopmail/qmail/IMAP

2008-01-03 Thread ISP Lists
Off-topic, perhaps respond off-list?

What are the hot applications in F/OSS webmail that start to move towards
AJAX  clients (yahoo! mail beta, gmail) that might function well on a
vpopmail/qmail/IMAP infrastructure?  I looked at Sourceforge and didn't
see much that would leap past squirrelmail.



!DSPAM:477d4215310543745219514!



Re: [vchkpw] OT: Webmail trends for vpopmail/qmail/IMAP

2008-01-03 Thread ISP Lists
 ISP Lists wrote:
 Off-topic, perhaps respond off-list?

 What are the hot applications in F/OSS webmail that start to move
 towards
 AJAX  clients (yahoo! mail beta, gmail) that might function well on a
 vpopmail/qmail/IMAP infrastructure?  I looked at Sourceforge and didn't
 see much that would leap past squirrelmail.


 We use RoundCube in addition to Squirell.

 http://roundcube.net/

 Regards,

 Rick


 



Thanks Rick, good stuff!  Any other ideas are most appreciated.


!DSPAM:477d4fd9310541599016348!



Re: [vchkpw] courier maildirfolder files

2007-11-29 Thread ISP Lists
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 ISP Lists wrote:
 Therefore, to fix a partially failed rsync during a migration, I should
 use the following rules:

 /Maildir/.Sent|.Drafts|.Trash/maildirfolder
 is NOT correct usage

 /Maildir/.MyFolder/maildirfolder
 is NOT correct usage

 /Maildir/.MyFolder.MySubFolder/maildirfolder
 IS correct usage.

 I'm not sure what you're saying here about incorrect usage.  maildirfolder
 files must exist under any folder directory you wish Courier-IMAP to
 honor.


 Is the presence of 'maildirfolder' in subfolders actually MANDATORY for
 IMAP to function properly?

 Not for IMAP, for Courier-IMAP.  I'm sure you knew that, but I figured I'd
 be
 a little more technical on this point for anyone else who may not have
 caught
 that.
 - --
 /*
 Matt Brookings [EMAIL PROTECTED]   GnuPG Key ABA26FE7
 Software developer Systems technician
 Inter7 Internet Technologies, Inc. (815)776-9465
 */
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.6 (GNU/Linux)
 Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org

 iD8DBQFHTzBeYaj0Mauib+cRAhsDAJ0TYcF6vqbndnV5Pe+nIsIC1CthCgCgmkrN
 xE/PM6o3fJZTkthW6gFHtr4=
 =E+3Q
 -END PGP SIGNATURE-


Matt, thanks for your post, the answer surprises me.  Is there a resource
you can recommend?  I hadn't anticipated that 'maildirfolder' is a
requirement for all folders; by inspection, my existing vpopmail/courier
kit seems to run fine with very few 'maildirfolder' files that don't seem
to conform to any particular methodology/rule.  Thus the basis for my
confusion.
Again, I really appreciate the help!
Dave.




!DSPAM:474f442732002376413044!



Re: [vchkpw] Problem compiling courier-auth 0.59.3+

2007-07-31 Thread ISP Lists
Some very smart person - I'm REALLY sorry I cannot easily find the link to
give proper credit - posted this patch out there a few weeks ago.  I
don't think it's become mainstream yet, but I literally just went through
the same problem with authlib 0.59.3 and vpopmail 5.4.17.   Yes, the patch
works; no I don't know why.

the patch I used came from discussion here:
http://www.mail-archive.com/vchkpw@inter7.com/msg24923.html

I tried to google for the filename of the patch below but I think it's a
filename I made up...  I was in a rush to get something built, so my notes
are incomplete.  Bad dog, I know.

Meanwhile, here's the patch code
===
--- courier-authlib-0.59.3/authvchkpw.c 2007-04-22 20:53:30.0 +0200
+++ courier-authlib-0.59.3b/authvchkpw.c2007-04-25
17:53:58.908980669 +0200
@@ -55,16 +55,19 @@
return (*i-callback_func)(a, i-callback_arg);
 }

 #if HAVE_HMACLIB

 #includelibhmac/hmac.h
 #includecramlib.h

+static int auth_vchkpw_login(const char *service, char *authdata,
+int (*callback_func)(struct authinfo *, void *), void
*callback_arg);
+

 static int auth_vchkpw_cram(const char *service,
const char *authtype, char *authdata,
int (*callback_func)(struct authinfo *, void *),
void *callback_arg)
 {
 struct  cram_callback_info  cci;
===

And how I build the authlib for my system

cd /usr/src/qmail
wget
http://superb-west.dl.sourceforge.net/sourceforge/courier/courier-authlib-0.59.3.tar.bz2
bunzip2 courier-authlib-0.59.3.tar.bz2
tar xf courier-authlib-0.59.3.tar
chown -R root.root courier-authlib-0.59.3
cd courier-authlib-0.59.3
wget http://www.dermanagement.com/qmail/courier-0.59.3-authvchkpw.patch
patch  courier-0.59.3-authvchkpw.patch

./configure \
  --prefix=/usr/local/courier-authlib \
  --without-authpam \
  --without-authldap \
  --without-authpwd \
  --without-authmysql \
  --without-authpgsql \
  --without-authshadow \
  --without-authuserdb \
  --without-authcustom \
  --without-authcram \
  --without-authpipe \
  --with-authdaemon \
  --with-redhat \
  --with-authvchkpw




Good luck.
Dave.



 I can compile courier-authlib version 0.59.2 or lower just fine with
 vpopmail
 5.4.17 but I cannot get newer versions to compile.  I tried asking on the
 courier-imap list but they say not our problem.

 Here's the errors:

 --

 authvchkpw.c: In function 'auth_vchkpw_login':
 authvchkpw.c:40: warning: empty declaration
 authvchkpw.c:43: error: expected '=', ',', ';', 'asm' or '__attribute__'
 before '{' token
 In file included from authvchkpw.c:63:
 libhmac/hmac.h:15: error: storage class specified for parameter
 'hmac_h_rcsid'
 libhmac/hmac.h:15: error: parameter 'hmac_h_rcsid' is initialized
 libhmac/hmac.h:50: warning: empty declaration
 libhmac/hmac.h:54: error: storage class specified for parameter 'hmac_md5'
 libhmac/hmac.h:54: error: storage class specified for parameter
 'hmac_sha1'
 libhmac/hmac.h:54: error: storage class specified for parameter
 'hmac_sha256'
 libhmac/hmac.h:61: error: storage class specified for parameter
 'hmac_list'
 In file included from authvchkpw.c:64:
 cramlib.h:17: warning: empty declaration
 cramlib.h:19: error: storage class specified for
 parameter 'auth_cram_callback'
 cramlib.h:26: warning: empty declaration
 authvchkpw.c:71: error: expected '=', ',', ';', 'asm' or '__attribute__'
 before '{' token
 authvchkpw.c:87: error: expected '=', ',', ';', 'asm' or '__attribute__'
 before '{' token
 authvchkpw.c:106: error: expected '=', ',', ';', 'asm' or '__attribute__'
 before '{' token
 authvchkpw.c:170: error: expected '=', ',', ';', 'asm' or '__attribute__'
 before '{' token
 authvchkpw.c:177: error: expected '=', ',', ';', 'asm' or '__attribute__'
 before '{' token
 authvchkpw.c:227: error: parameter 'authvchkpw_info' is initialized
 authvchkpw.c:229: error: 'auth_vchkpw' undeclared (first use in this
 function)
 authvchkpw.c:229: error: (Each undeclared identifier is reported only once
 authvchkpw.c:229: error: for each function it appears in.)
 authvchkpw.c:231: error: 'authvchkpwclose' undeclared (first use in this
 function)
 authvchkpw.c:232: error: 'auth_vchkpw_changepass' undeclared (first use in
 this function)
 authvchkpw.c:238: error: expected '=', ',', ';', 'asm' or '__attribute__'
 before '{' token
 authvchkpw.c:240: error: old-style parameter declarations in prototyped
 function definition
 authvchkpw.c:240: error: expected '{' at end of input
 make[2]: *** [authvchkpw.lo] Error 1
 make[2]: Leaving directory `/netsrc/courier-authlib-0.59.3.20070721'

 --

 This is NOT just for the pre-release, before anyone asks.  I tried it
 because
 they mentioned some authvchkpw fixes.

 --
 --
 Cheers,
 Steve





Re: [vchkpw] Problem compiling courier-auth 0.59.3+

2007-07-31 Thread ISP Lists
Crud, NO that is not the correct link for what I thought was the patch
source.

OK, I found it! It's in French, that's why it's kinda hard to find.  You
can run this page through Babelfish and get something readable, but the
patch originated from this page

http://christian.caleca.free.fr/qmail/courier-imap.htm

Credit due.

D.




 Some very smart person - I'm REALLY sorry I cannot easily find the link to
 give proper credit - posted this patch out there a few weeks ago.  I
 don't think it's become mainstream yet, but I literally just went through
 the same problem with authlib 0.59.3 and vpopmail 5.4.17.   Yes, the patch
 works; no I don't know why.

 the patch I used came from discussion here:
 http://www.mail-archive.com/vchkpw@inter7.com/msg24923.html

 I tried to google for the filename of the patch below but I think it's a
 filename I made up...  I was in a rush to get something built, so my notes
 are incomplete.  Bad dog, I know.

 Meanwhile, here's the patch code
 ===
 --- courier-authlib-0.59.3/authvchkpw.c 2007-04-22 20:53:30.0
 +0200
 +++ courier-authlib-0.59.3b/authvchkpw.c2007-04-25
 17:53:58.908980669 +0200
 @@ -55,16 +55,19 @@
 return (*i-callback_func)(a, i-callback_arg);
  }

  #if HAVE_HMACLIB

  #includelibhmac/hmac.h
  #includecramlib.h

 +static int auth_vchkpw_login(const char *service, char *authdata,
 +int (*callback_func)(struct authinfo *, void *), void
 *callback_arg);
 +

  static int auth_vchkpw_cram(const char *service,
 const char *authtype, char *authdata,
 int (*callback_func)(struct authinfo *, void
 *),
 void *callback_arg)
  {
  struct  cram_callback_info  cci;
 ===

 And how I build the authlib for my system

 cd /usr/src/qmail
 wget
 http://superb-west.dl.sourceforge.net/sourceforge/courier/courier-authlib-0.59.3.tar.bz2
 bunzip2 courier-authlib-0.59.3.tar.bz2
 tar xf courier-authlib-0.59.3.tar
 chown -R root.root courier-authlib-0.59.3
 cd courier-authlib-0.59.3
 wget http://www.dermanagement.com/qmail/courier-0.59.3-authvchkpw.patch
 patch  courier-0.59.3-authvchkpw.patch

 ./configure \
   --prefix=/usr/local/courier-authlib \
   --without-authpam \
   --without-authldap \
   --without-authpwd \
   --without-authmysql \
   --without-authpgsql \
   --without-authshadow \
   --without-authuserdb \
   --without-authcustom \
   --without-authcram \
   --without-authpipe \
   --with-authdaemon \
   --with-redhat \
   --with-authvchkpw




 Good luck.
 Dave.



 I can compile courier-authlib version 0.59.2 or lower just fine with
 vpopmail
 5.4.17 but I cannot get newer versions to compile.  I tried asking on
 the
 courier-imap list but they say not our problem.

 Here's the errors:

 --

 authvchkpw.c: In function 'auth_vchkpw_login':
 authvchkpw.c:40: warning: empty declaration
 authvchkpw.c:43: error: expected '=', ',', ';', 'asm' or '__attribute__'
 before '{' token
 In file included from authvchkpw.c:63:
 libhmac/hmac.h:15: error: storage class specified for parameter
 'hmac_h_rcsid'
 libhmac/hmac.h:15: error: parameter 'hmac_h_rcsid' is initialized
 libhmac/hmac.h:50: warning: empty declaration
 libhmac/hmac.h:54: error: storage class specified for parameter
 'hmac_md5'
 libhmac/hmac.h:54: error: storage class specified for parameter
 'hmac_sha1'
 libhmac/hmac.h:54: error: storage class specified for parameter
 'hmac_sha256'
 libhmac/hmac.h:61: error: storage class specified for parameter
 'hmac_list'
 In file included from authvchkpw.c:64:
 cramlib.h:17: warning: empty declaration
 cramlib.h:19: error: storage class specified for
 parameter 'auth_cram_callback'
 cramlib.h:26: warning: empty declaration
 authvchkpw.c:71: error: expected '=', ',', ';', 'asm' or '__attribute__'
 before '{' token
 authvchkpw.c:87: error: expected '=', ',', ';', 'asm' or '__attribute__'
 before '{' token
 authvchkpw.c:106: error: expected '=', ',', ';', 'asm' or
 '__attribute__'
 before '{' token
 authvchkpw.c:170: error: expected '=', ',', ';', 'asm' or
 '__attribute__'
 before '{' token
 authvchkpw.c:177: error: expected '=', ',', ';', 'asm' or
 '__attribute__'
 before '{' token
 authvchkpw.c:227: error: parameter 'authvchkpw_info' is initialized
 authvchkpw.c:229: error: 'auth_vchkpw' undeclared (first use in this
 function)
 authvchkpw.c:229: error: (Each undeclared identifier is reported only
 once
 authvchkpw.c:229: error: for each function it appears in.)
 authvchkpw.c:231: error: 'authvchkpwclose' undeclared (first use in this
 function)
 authvchkpw.c:232: error: 'auth_vchkpw_changepass' undeclared (first use
 in
 this function)
 authvchkpw.c:238: error: expected '=', ',', ';', 'asm' or
 '__attribute__'
 before '{' token
 authvchkpw.c:240: error: old-style parameter declarations in prototyped
 function definition
 authvchkpw.c:240: error: expected '{' at end of input
 

[vchkpw] Alternate routing for failed send

2007-07-12 Thread ISP Lists
I had a case where a single destination SMTP MX server was denying my send
request from what appeared to be an IP range-based RBL blacklist.  Nobody
elses MXs levered that blacklist, so I only had the one problem delivery.

I was able to mockup a gateway on another server of mine in another IP
block and I temporarily used 'smtproutes' to clear my queue for that
issue.

Q: What solutions are being used in the wild to deal with this kind of case?

I could see an 'smtproutes' file that uses a :farm.of.hostnames.tld in
order to send your outbound email through a farm of servers in diverse
netblocks, but that implies a bit more scale than I can offer/afford.

I don't believe there's any available logic that says something like
after a message is SMTP-connect-refused XX times, please try alternate
send path via 'othersmtproutes'  That's probably more overhead than
value, but it occurred to me...

Feedback is most welcome.  (Please let me know if this is more appropriate
for the qmail list than vpopmail.)

Dave



[vchkpw] Anti-spam solution - favs?

2007-05-21 Thread ISP Lists
I've got vpopmail/netqmail built using typical clamav and spamassassin
(clamd, spamd).  I've got XBL filtering and CHKUSER enabled on smtp.  I'm
actively training my Bayes filters.  I do not use verified sender or SPF.

Spamassassin's local.cf look like this:

required_score 6
rewrite_header Subject [SPAM]
report_safe 0
use_pyzor 0
use_razor2 1
use_dcc 0
dcc_home /var/dcc
skip_rbl_checks 0
rbl_timeout 3
score RCVD_IN_BL_SPAMCOP_NET 2
use_bayes 1
bayes_auto_learn 1
bayes_path /home/spamd/.spamassassin/bayes


I STILL find a good bit of spam is getting through. (pharma, mortgages,
stock hype, etc)

I wonder whether there are other/better anti-spam tools I should use to
cull the spam more effectively.  Suggestions most welcome.





[vchkpw] New release?

2006-01-12 Thread lists

Hey,

a time I've read about the vpopmaild feature for some new vpopmail 
release. Unfortunately I doesn't know where I've read about it. Is this 
feature planned and what pricisly is it for?


Regards
Christoph


[vchkpw] All e-mails tagged from Spamassassin automatically in a different directory

2006-01-03 Thread lists

Hi,

I'm using qmail with vpopmail and simscan. Via simscan I'm using 
Spamassassin 3.1. Is there any possibility to move any incoming mails, 
which are tagged by sa, in a special directory for that perticular 
domain? Or is this a qmail question?


Regards
Christoph


[vchkpw] Feature for vdelivermail

2006-01-03 Thread lists

Hi,

after the resultless search for a filter for emails tagged by 
spamassassin I now want to add some small code to vdelivermail. The 
plan: When the mail is tagged by spamassassin vdelivermail should not 
deliver to $DOMAIN/$USER/Maildir/new but to 
$DOMAIN/$USER/Maildir/.Spam/new. This feature should be domainbased and 
customizable via a controlfile like tcp.smtp or simcontrol.


Is there any idea where to put these code best?

Regards
Christoph


Re: [vchkpw] Re: Feature for vdelivermail

2006-01-03 Thread lists

Hi Robin,

Zitat von Robin Bowes [EMAIL PROTECTED]:


As someone has already replied, maildrop can do this for you.
This sort of code does not belong in vdelivermail.


Yeah,

that mail was too late. I've seen it a few minutes after my last mail 
:D. Some other question: Why maildrop doesn't executes the following 
lines:


snip
`maildirmake $HOME/Maildir/.SPAM`
`chown -R vpopmail.vchkpw $HOME/Maildir/.SPAM`
/snip

Here is my complete mailfilter file:

snip
import EXT
import HOST
import HOME

HOME=$HOME/$EXT

if (/^X-Spam-Flag: *YES/)
{
   `test -d $HOME/Maildir/.SPAM`
   if ($RETURNCODE == 1)
   {
   `maildirmake $HOME/Maildir/.SPAM`
   `chown -R vpopmail.vchkpw $HOME/Maildir/.SPAM`
   }

   to $HOME/Maildir/.SPAM/
}

to $HOME/Maildir/
/snip

Regards
Christoph


RE: [vchkpw] Re: Feature for vdelivermail

2006-01-03 Thread lists

Zitat von Charles J. Boening [EMAIL PROTECTED]:


I don't believe you need the HOME=$HOME/$EXT line.  $HOME should point
to the user directory containing Maildir.


The first error was, that maildrop has forgotton the username. So 
HOME=$HOME/$EXT ends in the absolute path to the maildir for me.




I've had problems with maildrop when I first set things up.  It was like
indentation had to be a certain way or something.  Of course, it could
just be that while changing indentation I fixed something else.

I would put both commands on the same line.


I've tried it with one line and other variants. I printed out the 
commands an tried it manually on the commandline - everything works 
fine. When I try to call these commands from inside the mailfiler - 
nothing happens even not, when I try to call TEST=`ls`.




Again, here's the way I do it and it works.  Not sure about the changes
you made or why.  You don't need the whole path when testing for the
.SPAM folder.  Everything can be relative to where the maildrop script
is run from.



I've allready tried it with relative paths. The same error shows up...


Also, check your logs.  Maildrop errors will show up.



Yeah, I get the maildrop:_Unable_to_create_a_dot-lock. error because 
the target Maildir doesn't exists.


Thanks for any help.

Regards
Christoph


[vchkpw] announce: bantcp for CHKUSER patch

2005-12-06 Thread ISP Lists
I wanted to announce a little script project I'm starting called 'bantcp'.

I got frustrated by a dictionary attack on one of my domains.  Tonix'
CHKUSER patch did it's job in repelling the offending IPs (who were not
already RBLd) but I wanted more.

I wanted a (semi-)automated way to extract the attacking IPs from my qmail
logs and insert them into my tcp.smtp file using selection criteria based
upon how many attacks had been made from an IP during a specific window of
time.  I felt this was a way to prevent further abuse from these IPs.

bantcp is version 0.01   It's a cobbling of bash and perl to provide the
output suitable for pasting into your tcp.smtp file.  It's not terribly
elegant yet, but I'm hoping for some suggestions.

Flames are welcome too, though please be kind.  I'm not a coder.  I'm also
guessing that a 'sed/awk' guru could tighten bantcp up a lot - maybe kill
off the perl jumps altogether.

http://www.bantcp.com/

Thanks,
Dave.



[vchkpw] CHKUSER 2.0.8b - banning IPs into tcp.smtp

2005-10-26 Thread ISP Lists
CHKUSER 2.0.8b on qmail 1.03 and vpopmail 5.4.10.

I LOVE that CHKUSER can single out the unknown recipients and block the
offending SMTP session - big traffic control helper!  However, I've got
one domain that's really being hit hard by dictionary attacks.  Some
attack traffic is a few hits from many IPs, other traffic is many hits
from few IPs.

What I'd like to do is get something that's like an IDS that reads log
output for CHKUSER rejections - currently only outputting to

/var/log/qmail/smtp/current

and have that information parsed for the specific domain and have the
offending sender IP stuffed into a database (probably with a timestamp). 
Then I would build some scripted logic to query the database to figure out
if I've been hit N number of times from an IP in a certain window of time;
thus the trigger to update tcp.smtp with the offender.

I think I might go ahead and just compile the tcp.smtp at each pass,
that way I can keep tcp.smtp as compact as possible.  Those who've stopped
being naughty are taken off the blocklist eventually.  Almost an RBL
mentality I guess.  (and yes, I AM running with the Spamhaus RBL also).

I gotta believe some smart person already built this, but I don't know if
it's called something specific.  Big challenge for me is how to keep an
eye on a logfile for any particular time (particularly given DJB's arcane
date values in the above log file) and not end up reprocessing data I've
already seen.

Help appreciated and thanks!
Dave.



[vchkpw] How expensive is reloading the tcp.smtp.cdb?

2005-10-26 Thread ISP Lists
Related to my earlier post, how expensive is it - resource-wise - to
reload a tcp.smtp file of 100-1000 lines?

If I have processing that is updating tcp.smtp every 5-10 minutes and I
choose to reload the cdb from that tcp.smtp, is that a bad idea?

The qmailctl cdb command runs very fast for me now, but I don't have any
idea what impact it has on any smtpd instances having to restart or
re-read.

Anyone know?



[vchkpw] Spotty behavior authenticating: MySQL server has gone away

2005-08-24 Thread ISP Lists
Something peculiar happened to mysql during a reboot and now vpopmail
authdaemond is having trouble completing authentications

/var/log/maillog says:

Aug 24 08:36:15 hostname authdaemond: vmysql: sql error[3]: MySQL server
has gone away


This problem is spotty though.  I have several successful authentications
before this error occurs.  I then have to restart mysqld before I can get
any other authentications to succeed.  I am still able to use the mysql
client to connect to the server for an interactive session.

What seems strange to me is that there are only two mysql daemons running:

root 23923  0.0  0.1  5060 1108 pts/0S09:13   0:00 /bin/sh
/usr/bin/safe_mysqld --defaults-file=/etc/my.cnf
--pid-file=/var/run/mysqld/mysqld.pid

mysql23956  0.0  0.5 38620 5656 pts/0Sl   09:13   0:00
/usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/var/lib
--datadir=/var/lib/mysql --user=mysql
--pid-file=/var/run/mysqld/mysqld.pid --skip-locking


Every other instance of mysql 3.23.x I've ever run has about 10 child
threads running, so this seems strange to see only one child thread.

I have not updated any packages on this box recently.  None at all, I swear.

Suggestions to investigate?  Googling on the MySQL server has gone away
is a wild goose chase.






Re: [vchkpw] Spotty behavior authenticating: MySQL server has gone away

2005-08-24 Thread ISP Lists
 Something peculiar happened to mysql during a reboot and now vpopmail
 authdaemond is having trouble completing authentications

 /var/log/maillog says:

 Aug 24 08:36:15 hostname authdaemond: vmysql: sql error[3]: MySQL server
 has gone away


 This problem is spotty though.  I have several successful authentications
 before this error occurs.  I then have to restart mysqld before I can get
 any other authentications to succeed.  I am still able to use the mysql
 client to connect to the server for an interactive session.

 What seems strange to me is that there are only two mysql daemons running:

 root 23923  0.0  0.1  5060 1108 pts/0S09:13   0:00 /bin/sh
 /usr/bin/safe_mysqld --defaults-file=/etc/my.cnf
 --pid-file=/var/run/mysqld/mysqld.pid

 mysql23956  0.0  0.5 38620 5656 pts/0Sl   09:13   0:00
 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/var/lib
 --datadir=/var/lib/mysql --user=mysql
 --pid-file=/var/run/mysqld/mysqld.pid --skip-locking


 Every other instance of mysql 3.23.x I've ever run has about 10 child
 threads running, so this seems strange to see only one child thread.

 I have not updated any packages on this box recently.  None at all, I
 swear.

 Suggestions to investigate?  Googling on the MySQL server has gone away
 is a wild goose chase.






Hrm, rebooting the box seems to have helped.  Still same number of mysql
daemons, but they're answering now...  Damned strange.  dmesg on reboot
didn't show any ext3 errors being fixed - I was wondering if this was a
disk thing.

Thoughts still welcome and appreciated on this.







[vchkpw] SMTP-AUTH works POP3 not SMTPd?

2005-06-17 Thread ISP Lists
sys: Fedora core3, manually compiled vpopmail 3.4.10, RPM Mysql 3.23.59?,
compiled courier imap 4.0.2, compiled qmail-1.03, patched
qmail-ej-cocktail-14.tar.gz, manually patched Tonix' chkuser 2.0.

I have installed vpopmail with roaming/SMTP-AUTH before, again using
Michael Bowe's webmail guide.  SMTP-AUTH is failing authentication and I
cannot tell why.

I had created the qmail install with Tonix' chkuser patch and saved that
qmail-smtpd binary.  Substituting between the original and the Tonix
patched qmail-smtpd binaries does not seem to change the behavior.

compiled vpopmail as:

./configure \
  --enable-roaming-users \
  --enable-logging=p \
  --disable-passwd \
  --enable-clear-passwd \
  --disable-domain-quotas \
  --enable-auth-module=mysql \
  --disable-many-domains \
  --enable-auth-logging \
  --enable-sql-logging \
  --enable-valias \
  --disable-mysql-limits

/home/vpopmail/etc:
qmail]# ls -l ~vpopmail/etc/
total 16
-rw-r--r--  1 root root 25 Jun  8 19:47 inc_deps
-rw-r--r--  1 root root 81 Jun  8 19:47 lib_deps
-rw-r--r--  1 vpopmail vchkpw 1107 Jun  8 19:47 vlimits.default
-rw-r-  1 vpopmail vchkpw   43 Jun  8 19:43 vpopmail.mysql


/var/qmail/supervise/qmail-smtpd/run:
#!/bin/sh
QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl export QMAILQUEUE
VPOPMAILUID=`id -u vpopmail`
VPOPMAILGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
if [ -z $QMAILDUID -o -z $NOFILESGID -o -z $MAXSMTPD -o -z $LOCAL
]; then
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi
exec /usr/local/bin/softlimit -m 1700 \
/usr/local/bin/tcpserver \
  -H -l [[[my.host.name]]] \
-v -x /etc/tcp.smtp.cdb \
  -c 30 -R -u $VPOPMAILUID -g $VPOPMAILGID 0 smtp \
  /usr/local/bin/rblsmtpd -b -C \
 -r 'sbl-xbl.spamhaus.org:Your message was rejected ' \
  /var/qmail/bin/qmail-smtpd $LOCAL /home/vpopmail/bin/vchkpw \
  /usr/bin/true 21


mysql's vpopmail database table vlog contains:
| id | user  | passwd   | domain| logon   
   | remoteip | message   
 | timestamp  | error |
++---+--+---+-+--+-++---+
|  1 | daver | [EMAIL PROTECTED] | example.net |
[EMAIL PROTECTED] | MYIP | vchkpw-25: password fail (pass:
'[EMAIL PROTECTED]') [EMAIL PROTECTED]:MYIP | 1119024854 |  
  3 |
|  2 | daver | [EMAIL PROTECTED] | example.net |
[EMAIL PROTECTED] | MYIP | vchkpw-25: password fail (pass:
'[EMAIL PROTECTED]') [EMAIL PROTECTED]:MYIP | 1119025751 |  
  3 |


THIS IMPLIES that some element of the hostname and a timestamp(?) are
being forwarded instead of the submitted password??

I'm at a loss here, help appreciated!

BTW, all incoming SMTP delivery works to all accounts.  All POP3 pickup
and authentication works too.  Just SMTP-AUTH to send is broken.











Re: [vchkpw] SMTP-AUTH works POP3 not SMTPd?

2005-06-17 Thread ISP Lists

 You've got an old SMTP AUTH patch that sends the MD5 challenge and
 response in the wrong order.

 Use the patch from the contrib directory of vpopmail, and then remove
 the $LOCAL from your run file, as the newer SMTP AUTH patch does not
 use it.

 --
 Tom Collins  -  [EMAIL PROTECTED]
 QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
 You don't need a laptop to troubleshoot high-speed Internet:
 sniffter.com



Tom, thanks.  I didn't realize there had been a change in patches that
did this...  Wilco.



Re: [vchkpw] SMTP-AUTH works POP3 not SMTPd?

2005-06-17 Thread ISP Lists

 You've got an old SMTP AUTH patch that sends the MD5 challenge and
 response in the wrong order.

 Use the patch from the contrib directory of vpopmail, and then remove
 the $LOCAL from your run file, as the newer SMTP AUTH patch does not
 use it.

 --
 Tom Collins  -  [EMAIL PROTECTED]
 QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
 You don't need a laptop to troubleshoot high-speed Internet:
 sniffter.com



 Tom, thanks.  I didn't realize there had been a change in patches that
 did this...  Wilco.


Follow-up

Built as netqmail-1.05, patched SMTP-AUTH from vpopmail contrib, then
manually added Tonix' chkuser 2.0

Everything is VERY happy now.

Thanks for the help!
Dave.






Re: [vchkpw] SMTP-AUTH works POP3 not SMTPd?

2005-06-17 Thread ISP Lists
 On Jun 17, 2005, at 11:21 AM, ISP Lists wrote:
 Built as netqmail-1.05, patched SMTP-AUTH from vpopmail contrib, then
 manually added Tonix' chkuser 2.0

 Everything is VERY happy now.

 Did you remember to remove $LOCAL from your qmail-smtpd/run file?  If
 not, you can now auth with any username/password.

 --
 Tom Collins  -  [EMAIL PROTECTED]
 QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
 You don't need a laptop to troubleshoot high-speed Internet:
 sniffter.com


Yes, I did and I tried using nonsense/invalid combos to ensure that I
wasn't AUTH'ing the world.  Appreciate your concern!  Thanks again!



Re: [vchkpw] RBL setup

2005-02-25 Thread ISP Lists
 Hello,

 how to setup RBL cheking to my qmail-vpopmail instalation. How can I
 chack if my RBL check works.

 TNX




Hello,
Check the relevant section of this guide
http://www.pipeline.com.au/staff/mbowe/isp/webmail-server.htm





Re: [vchkpw] OT: Migration of Lotus Notes to Vpopmail

2005-02-18 Thread ISP Lists
Googling shall set ye free

http://www.google.com/search?hl=enq=convert+lotus+notes+to+mboxbtnG=Google+Search




 Hi list.

 I need migrate accounts and mailbox from Lotus Notes 5.0.1 to
 Qmail+Vpopmail. The accounts creation isn't problem, but my main problem
 is migrate the mailbox to maildir. The mailbox for one user, in Lotus, is
 into a file .nsf (database Lotus). I need convert 1062 mailbox to
 Maildir. Somebody know how convert this?

 If isn't possible convert directly the file nsf, I'm think use imap
 migration tool
 http://migrationtool.sourceforge.net/  but I never use this tool

 Somebody has some experience using tools like to fetchmail, migrationtool,
 or others?

 Any suggestion is been thankful

 Bye friends

 Juan Enciso Condeña
 Área de Operaciones
 Qnet
 Soluciones Tecnológicas
 Av. Paseo de la República 4675 - Lima 34
 Telf: (511) 241-4122 Anexo 2244
 Fax: (511) 446-8135
 www.qnet.com.pe




[vchkpw] Howto reject invalid recipients AFTER SMTPD receipt of msg?

2005-01-11 Thread ISP Lists
I want to reject incoming email to invalid users AFTER accepting the email
by SMTPd. Where can I insert a small bash script to check valid users
against VPOPMAIL MYSQL DB before allowing SPAMD, CLAMAV, qmail-inject,
etc. to run???

Vpopmail 5.4.5, Mysql 3.23.54.  Also, I'm aware of Tonix's patch to
prevent invalid users BEFORE SMTPD accepts mail.  Am considering it, but
want to understand options if I'm willing to take the bandwidth hit but
not provide hints to dictionary attackers.  Really hoping to put a small
script inline to SMTP processing.  THANKS!

My current /var/qmail/supervise/qmail-smtpd/run file reads thusly.

#!/bin/sh
QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl export QMAILQUEUE
VPOPMAILUID=`id -u vpopmail`
VPOPMAILGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`

if [ -z $QMAILDUID -o -z $NOFILESGID -o -z $MAXSMTPD -o -z $LOCAL
]; then
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi

exec /usr/local/bin/softlimit -m 1500 \
/usr/local/bin/tcpserver \
  -H -l server.example.com \
  -v -x /etc/tcp.smtp.cdb \
  -c 20 -R -u $VPOPMAILUID -g $VPOPMAILGID 0 smtp \
  /usr/local/bin/rblsmtpd -b -C \
  -r 'relays.ordb.org: denied' \
  -r 'sbl-xbl.spamhaus.org: denied' \
  /var/qmail/bin/qmail-smtpd $LOCAL \
  /home/vpopmail/bin/vchkpw /usr/bin/true 21






[vchkpw] Re: Howto reject invalid recipients AFTER SMTPD receipt of msg?

2005-01-11 Thread ISP Lists
 On Jan 11, 2005, at 6:07 AM, ISP Lists wrote:
 I want to reject incoming email to invalid users AFTER accepting the
 email
 by SMTPd. Where can I insert a small bash script to check valid users
 against VPOPMAIL MYSQL DB before allowing SPAMD, CLAMAV, qmail-inject,
 etc. to run???

 Vpopmail 5.4.5, Mysql 3.23.54.  Also, I'm aware of Tonix's patch to
 prevent invalid users BEFORE SMTPD accepts mail.  Am considering it,
 but
 want to understand options if I'm willing to take the bandwidth hit but
 not provide hints to dictionary attackers.  Really hoping to put a
 small
 script inline to SMTP processing.  THANKS!

 My current /var/qmail/supervise/qmail-smtpd/run file reads thusly.

 #!/bin/sh
 QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl export QMAILQUEUE

 You can incorporate it into qmail-scanner-queue.pl.  If the qmail-queue
 program exits with the proper exit code, qmail-smtpd will reject the
 message.

 You can run vuserinfo and check the exit code to determine if an
 account is valid or not.  You'll need to check the catchall setting
 (unless catchall is bounce/delete, all addresses are valid).  You'll
 have to add some additional code though to check for mailing list,
 autoresponder and alias/forward accounts.  We have bounced around the
 idea of writing a simple vpopmail program that checks to see if an
 account is valid or not (taking into consideration the catchall
 setting).

 Another option would be to modify Tonix's patch to do the checking
 after receiving the message.  I have no idea how hard that would be
 though.

 On possible problem with this setup is that if I legitimately email two
 people at your company and one address is invalid, the entire message
 bounces and I don't know which address was wrong.

 --
 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/



Tom, thanks for your well considered message.  Your last point is probably
the most troubling to any scenario that rejects by name.  I haven't taken
a serious look yet into the docs/code from Tonino to see its behavior in
such a case.

I, for one, would like to see some additional movement in vpopmail to
expand control of smtpd - if not replace it as LinuxMagic have done. 
That's a bit far-reaching, so perhaps your thought of extending some
service for checking valid IDs is useful.  I, for one, do NOT run with a
catchall, BTW




[vchkpw] Funny error with POP3

2004-10-06 Thread lists
For all my accounts when I try to authenticate Evolution pops back a message
that says:

Unable to connect to POP server mail.whootis.com.
Error sending password: could not create vlog table CREATE TABLE vlog ( id
BIGINT PRIMARY KEY AUTO_INCREMENT,   user char(32), passwd CHAR(32),  
domain CHAR(64), logon VARCHAR(200),   remoteip char(18), message
VARCHAR(255),   timestamp bigint default 0 NOT NULL, error INT,   INDEX
user_idx (user),   INDEX domain_idx (domain), INDEX remoteip_idx (remoteip),
  INDEX error_idx (error), INDEX message_idx (message) )

Now this all started this evening when I upgraded my server from FreeBSD
4.9-STABLE to 4.10-STABLE.  I booted back into 4.9-STABLE but I am still
getting these errors.

I am running vpopmail 5.4.5 with qmail 1.03 with only the qmail-scanner patch.

Can someone please help,
Thanks!
GEoff Sweet



Re: [vchkpw] Funny error with POP3

2004-10-06 Thread lists
I thought I would point out that in my logs I get this entry:

Oct  6 21:46:28 serv vpopmail[972]: vchkpw-pop3: (PLAIN) login success
[EMAIL PROTECTED]:xx.xx.xx.xx

whenever I get that error and just attempt to click on the ok that Evolution
presents me.  However something must fail along the way because none of my mail
is getting downloaded.

-Geoff

Quoting [EMAIL PROTECTED]:

 For all my accounts when I try to authenticate Evolution pops back a message
 that says:

 Unable to connect to POP server mail.whootis.com.
 Error sending password: could not create vlog table CREATE TABLE vlog ( id
 BIGINT PRIMARY KEY AUTO_INCREMENT,   user char(32), passwd CHAR(32),
 domain CHAR(64), logon VARCHAR(200),   remoteip char(18), message
 VARCHAR(255),   timestamp bigint default 0 NOT NULL, error INT,
 INDEX
 user_idx (user),   INDEX domain_idx (domain), INDEX remoteip_idx
 (remoteip),
   INDEX error_idx (error), INDEX message_idx (message) )

 Now this all started this evening when I upgraded my server from FreeBSD
 4.9-STABLE to 4.10-STABLE.  I booted back into 4.9-STABLE but I am still
 getting these errors.

 I am running vpopmail 5.4.5 with qmail 1.03 with only the qmail-scanner
 patch.

 Can someone please help,
 Thanks!
 GEoff Sweet






[vchkpw] fetchmail and maildrop to a vpopmail account

2004-09-28 Thread ISP Lists
I'm struggling finding a howto on a particular issue:

I have a webmail/pop3 account, no IMAP.  I do not run that server and only
have user privs on the email account.  I want to do a ONE-TIME conversion
to pull the 400+ messages from this account using fetchmail (or whatever
you recommend) for delivery to my vpopmail user account.

I run the destination server, it runs vpopmail/courier/mysql, and has a
domain with the particular ./Maildir account that I want to deliver the
mail into.

I was going to use fetchmail - maildrop - ./Maildir

I was doing okay pulling together information to accomplish this until I
realized that I didn't have a local account for maildrop since the
destination account is a virtual user in vpopmail
(/home/vpopmail/domains/example.com/username/Maildir)

Does anybody have some guidance on where I should go to cook up a solution?
All help appreciated!  Thanks, Dave.




[vchkpw] Modifying accounts with PHP

2004-09-28 Thread lists
I installed vpopmail with MySQL support, without valias support (as 
seems to be recommended). I've written some PHP scripts that can create 
and modify email accounts by direct interface with MySQL, but I'm 
looking for ways to do more administration of vpopmail -- creating 
aliases, adding domains, etc.

Since .qmail files needs to be owned by vpopmail:vchkpw, and the v* 
applications need to run as root, I can't really have Apache/PHP try to 
accomplish any of that stuff directly. What I'm thinking right now is 
that I could write out formatted text files to a specific directory, 
then have a cron job (running as root) that parses them and executes 
various commands: vadddomain, valias, etc.

Has anyone done this, or are there any other suggestions for good 
solutions to this situation? Are there good reasons to avoid this 
altogether (assuming its done with a modicum of security checking)?

I know there's a vpopmail extension for PHP, but it's been in beta for 
a long time, isn't well documented, and seems pretty limited if you're 
running PHP as an Apache module (for the same reasons that direct calls 
to v* binaries are).

Cheers,
spud.
---
a.h.s. boy
spud(at)nothingness.orgas yes is to if,love is to yes
http://www.nothingness.org/
---


Re: [vchkpw] fetchmail and maildrop to a vpopmail account

2004-09-28 Thread ISP Lists
 On Tue, 2004-09-28 at 10:06, ISP Lists wrote:
 I'm struggling finding a howto on a particular issue:

 I have a webmail/pop3 account, no IMAP.  I do not run that server and
 only
 have user privs on the email account.  I want to do a ONE-TIME
 conversion
 to pull the 400+ messages from this account using fetchmail (or whatever
 you recommend) for delivery to my vpopmail user account.

 I run the destination server, it runs vpopmail/courier/mysql, and has a
 domain with the particular ./Maildir account that I want to deliver the
 mail into.

 I was going to use fetchmail - maildrop - ./Maildir

 I was doing okay pulling together information to accomplish this until I
 realized that I didn't have a local account for maildrop since the
 destination account is a virtual user in vpopmail
 (/home/vpopmail/domains/example.com/username/Maildir)

 Does anybody have some guidance on where I should go to cook up a
 solution?
 All help appreciated!  Thanks, Dave.

 You're fine just using Fetchmail - after that, IMHO, you're
 overcomplicating it with maildrop :)

 I do fetchmail like so:
 /usr/local/bin/fetchmail -s -f /home/root/fetchmail/fetchmail2.rc

 where fetcmail2.rc contains:
 poll mail.com.com proto POP3 user username pass password smtpname
 [EMAIL PROTECTED] fetchall

 Basically grab anything from the remote user's mailbox and redirect it via
 smtp
 to '[EMAIL PROTECTED]'.   Then your SMTP setup takes care of the
 delivery as if all those
 emails came in to your localuser originally.

 Rick



Shucks, that was too easy.  Worked great!  Thanks Rick!



[vchkpw] retrieve assign file from vpasswd

2004-09-10 Thread lists
Hello everyone. I am using qmail 1.03 and vpopmail 5.2. I have a lot of 
virtual domains created and I am having quite a problem.
I tried to add a new domain and mismatch a few times the password... for 
some reason the /var/qmail/users/assign file was emptied. The rcpthosts and 
morercpthosts are fine though.
How can I retrieve all the accounts and domains information from the
domain/vpasswd file or the domain/vpasswd.cdb file to the
/var/qmail/users/assign file? Is there a script or something I can use for
that? 


[vchkpw] SMTP-AUTH fails, POP3 auth works. Mysql, Linux

2004-08-07 Thread ISP Lists
I've built vpopmail 5.4.5 with mysql 3.23.57-ish on Debian potato. I've
enabled roaming users and have included the SMTP-AUTH patch.  Courier,
vpopmail, qmail, and everything else compiled fine (I did not use Debian
packages).

POP3 works fine.  Spam filtering works fine.  Squirrelmail fine.  
Squirrelmail sends via 127.0.0.1 SMTP fine via
/home/vpopmail/etc/tcp.smtp.  SMTP-AUTH fails on password look ups and
therefore roaming users cannot send email.

ERROR LOG:
Aug  7 06:58:21 puffer vpopmail[28939]: vchkpw-smtp: password fail [email
protected]:[ip protected]

vpopmail was compiled like this:
./configure --enable-roaming-users=y --enable-logging=y
--enable-ip-alias-domains=y --enable-auth-module=mysql
--enable-clear-passwd=n --enable-libdir=/usr/include/mysql/
--enable-tcpserver-path=/home/vpopmail/etc/
--enable-tcpserver-file=/home/vpopmail/etc/tcp.smtp --enable-qmail-ext
--enable-logging=e --enable-tcprules-prog=/usr/local/bin/tcprules
--enable-rebuild-tcpserver-file

My qmail-smtp/run file reads:
#!/bin/sh
QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl export QMAILQUEUE
VPOPMAILUID=`id -u vpopmail`
VPOPMAILGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
if [ -z $QMAILDUID -o -z $NOFILESGID -o -z $MAXSMTPD -o -z $LOCAL ];
then
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi
exec /usr/local/bin/softlimit -m 1500 \
/usr/local/bin/tcpserver \
-H -l [server hostname protected] \
-v -x /etc/tcp.smtp.cdb \
-c 20 -R -u $VPOPMAILUID -g $VPOPMAILGID 0 smtp \
  /usr/local/bin/rblsmtpd -b -C \
-r 'relays.ordb.org:Your message was rejected. \
-r 'sbl-xbl.spamhaus.org:Your message was rejected \
  /var/qmail/bin/qmail-smtpd $LOCAL /home/vpopmail/bin/vchkpw \
  /usr/bin/true 21


/home/vpopmail/bin/vchkpw is owned by vpopmail.vchkpw

/usr/local/courier-imap/etc/imapd bears the line
AUTHMODULES=authdaemon

How do I go further debug this?
Thanks.
D.






Re: [vchkpw] SMTP-AUTH fails, POP3 auth works. Mysql, Linux

2004-08-07 Thread ISP Lists
 I've built vpopmail 5.4.5 with mysql 3.23.57-ish on Debian potato. I've
 enabled roaming users and have included the SMTP-AUTH patch.  Courier,
 vpopmail, qmail, and everything else compiled fine (I did not use Debian
 packages).

 POP3 works fine.  Spam filtering works fine.  Squirrelmail fine.
 Squirrelmail sends via 127.0.0.1 SMTP fine via
 /home/vpopmail/etc/tcp.smtp.  SMTP-AUTH fails on password look ups and
 therefore roaming users cannot send email.

[SNIP]

OK, I've found that it was a client software error where CRAM-MD5 login is
advertised first.  Pegasus mail wouldn't keep trying to get to plain
LOGIN, but The BAT! would fail back from CRAM-MD5 to plain LOGIN and
roaming SMTP relay works fine.

Sorry for the initial concern, but I'd like to remove CRAM-MD5 from the
advertised capabilities to avoid this kind of confusion with users.

Any help there?!
Sorry, but thanks so far!



[vchkpw] unable to parse this line

2004-02-23 Thread lists
Hi all,

I've recently been seeing a number of error messages in my qmail send
logs, which relate to messages with multiple recipients.  The email being
sent gets delivered to some of the users on the list but not all.  I've
checked and doublechecked that the accounts are valid, but can't find any
clues as to why its failing.  I'm not even sure whether this is a vpopmail
issue or a qmail-inject problem.

Has anyone come across this?

2004-02-23 05:59:10.701648500 delivery 121519: success:
vdelivermail:_valiases_processed/qmail-inject:_fatal:_unable_to_parse_this_line:/To:[EMAIL
 PROTECTED];[EMAIL PROTECTED];[EMAIL PROTECTED];[EMAIL PROTECTED];[EMAIL 
PROTECTED];[EMAIL PROTECTED]/did_0+0+1/

vpopmail version: 5.3.30

Many thanks

Martin.




[vchkpw] Vpopmail and maildrop

2003-09-25 Thread Mailing Lists
Hy guys, I filter my messages through maildrop.
The problem is that I want to bounce no_such_user messages back to
sender using vdelivermal.

So I put a line 

to |/home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

in my maildrop filter script, but no message is bounced!

Any idea???

Here my .qmail-default and my maildrop script

.qmail-default

|maildrop ./maildroprc


Maildroprc

.
.
VHOME=/home/vpopmail/domains/$HOST/$EXT
VPOP=|/home/vpopmail/bin/vdelivermail '' bounce-no-mailbox
`test -d $VHOME/Maildir`
if ( $RETURNCODE = 1 )
   {
to $VPOP
exit
   } 
.
.
.
---


Thanks in advance
Ciao
Gianni




[vchkpw] Lists, stable/devel, and where is it for newbies

2003-09-10 Thread Dave Richardson - Lists
My hope, now that Ken and Tom have apparently been united in mind, is 
that the mailing lists, stable vs. devel issues, and what the Inter7 
website and Sourceforge project pages say about vpopmail will be quickly 
and uniformally aligned as well.

Just consider what a new user to vpopmail would encounter if they 
searched Sourceforge for *this* list and its VERY helpful archives. 
Also consider what a newbie would find if they went to Inter7 to find 
current source code and development mail list(s).  It's hard enough as a 
new user to spend time Googling to find answers, but dual, unaligned 
official web sites would be truly awful.

Again, my hope is that Ken and Tom (and all other related parties) can 
again gather the vpopmail resources into a unified organization with a 
common and well understood direction.  I worry that there will be 
lingering confusion about who does what with whom and where, such that 
it will impact future adoption of the application  It's too darned 
good for that!

D.




Re: [vchkpw] Re: Tom's fork of vpopmail (and qmailadmin)

2003-09-09 Thread Dave Richardson - Lists
My only two points:
1) *IF* there is a fork, with two codebases, follow the others' 
suggestions and name the new fork differently so that we can have sane 
discussions about which program we are dealing with on any given matter.
2) *IF* there is a fork, and for either fork, manage releases and bug 
checking with the CVS proving ground to deal with dev. issues.  I 
would be hard pressed right now to recommend a particular stable 
version of vpopmail due to the heavy (and very welcome) rapid 
development and code polishing efforts over the last two months.

I LOVE the product, the confusion scares me.  
D.

Tom Collins wrote:

On Tuesday, September 9, 2003, at 10:07  AM, Ken Jones wrote:

Just so everyone knows. Tom Collins is attempting
to fork the vpopmail project. He refuses to let me
share ownership of the vpopmail and qmailadmin
projects on source forge. When I asked him to
add me as an owner on the project he said he
refuses now and at any time in the future to
allow me to share ownership.


I have forked ownership since I felt that Inter7 was doing a poor job 
of maintaining vpopmail and qmailadmin.  I readily acknowledge that 
Ken created vpopmail and qmailadmin.  They're GPL projects, so I'm 
free to fork them if I like.  Since moving the projects to 
SourceForge, we've kept up with submitted patches and bug reports.  I 
feel that making the move was beneficial to the projects themselves 
and the people that use them.

I'm certainly not doing this to be malicious or to hurt Ken and Inter7.

I've told Ken that he's more than welcome to contribute to the project 
on SourceForge, or to maintain his own version of vpopmail and 
qmailadmin.  I also stated that until I stopped actively maintaining 
vpopmail and qmailadmin, I saw no need to add him as a project 
administrator.  Michael Bowe has been actively involved with vpopmail 
development, and I had no problem adding him as an admin.

Ken Jones hasn't contributed to vpopmail and qmailadmin development 
since March.  We've had 12 qmailadmin releases and 7 vpopmail releases 
since then.  Managing the projects on SourceForge keeps everything out 
in the open, and allows anyone to contribute.

Ken hasn't stated why he wants to be an owner of the project.  I'm not 
sure I understand what he loses out on by being a developer on the 
project and not an admin.

--
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] vpopmail and mysql replication

2003-09-05 Thread Dave Richardson - Lists
You could potentially code in a multiple call update from vpopmail to 
some IFDEF'd in mysql servers.
I'm thinking that you could make certain update calls to as many MySQL 
servers as you wanted, sending the same SQL statement to each.

I imagine some critical thinking in the process could lead to judgement 
on what would be the essential updates to multi-home and which 
updates could be written to the master for later replication.

My $0.02USD, before taxes.

Doug Clements wrote:

Greetings,
  I've got a working mysql and vpopmail setup going, with replication support. For those that don't know, replication support in vpopmail means that all updates go to a single server, where lookups can be sent to another server. I have a local copy of the replicated database on each machine to spread the load out and to be more robust in the face of other machine failure. Unfortunately, this makes each machine dependant on the mysql update server, since each login triggers an update to the lastauth table. How have other people solved this, without just disabling mysql logging? Has anyone used any of the more rare multiple-master ring topologys in mysql to let each server update?
 
I really don't want to setup a dedicated mysql server just to handle updates like this. I'm also planning to start using spamassassin mysql preferences, so I'd like any server to be able to update the database with user preferences, and the change replicate around. Does anyone have any input on this? Anyone use squirrelmail with their preferences in the database as well?
 
Thanks!

--Doug

 






[vchkpw] Pulling raw messages out of a maildir

2003-08-21 Thread Dave Richardson - Lists
I have a filter that moves incoming virus found msgs in my Admin 
account to a subfolder so that I can observe what kind of virus 
flow/traffic is hitting my domains.  I had intended to write a little 
perl/mrtg processor and make some pretty graphs to WOW! my customers.

And then this asswipe SoBig variant worm hits this week and I've got 
thousands of virus found notices now, still arriving at almost 1 per 
minute.

I want to physically pull the mail message files out of the Admin user's 
virus found folder (below INBOX) and just save them in a tar.gz file 
until I write my scripts and process them.

Q: Any harm in leaving qmail/vpopmail up and running while working at 
the file system level to move the messages out of the Maildir tree?
I DO NOT want to risk damaging this account, since it's my real Admin 
account.

Help appreciated.
Thx,D.



[vchkpw] chkuser patch and mysql on different machine

2003-08-21 Thread Dave Richardson - Lists
I want to build a mail gateway to deny incoming SMTP for unknown virtual 
domain users by building it with the chkuser patch (correct patch name?).

I use MySQL for my user database on the mail server.

Can I hook the gateway (via VPN) to the user database on the mail server 
for the auth checks?? I haven't worked with the chkuser patch so this is 
very new ground for me.  

No, I'd rather not start replicating MySQL databases if I can help it. 
I want the gateway to save resources for scanning virii and stopping 
this Sobig crap.

Thanks in advance, Dave.




[vchkpw] Help please, double message

2003-08-19 Thread Mailing Lists
Hi folks, need an help.
I set up my qmail-vpopmail system to filter mail via maildrop. So i put
this two lines in my .qmail-default file

| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox 
| /usr/bin/maildropmailfilter

Where mailfilter is my mail filter file that moves spam messages in a
different folder.
The problem is that in this manner all messages are sent twice in
mailbox.

Obviously, removing the firt line solve the problem, but invalid
addresses are no more notified.

TIA
Ciao
Gianni




Re: [vchkpw] mysql gone away. Please help a noob.

2003-08-19 Thread Dave Richardson - Lists
did you configure for your mysql user/password in vmysql.h?  if not, 
amend the entries and recompile.
also, did you create the tables or check that they were created?
did you allow mysql access from within mysql?
did you 'flush priviledges' to make the privs stick in mysql?

Good luck

jon kutassy wrote:

I'd like to get vpopmail working with authenticating against mysql... 
I have a working version of mysql that Id rather not break:

Excuse me if I include too much info : Im not sure what is and isnt 
relevent:

mysql  Ver 12.21 Distrib 4.0.14, for pc-linux (i686)
Server version: 4.0.14-standard
Protocol version:   10
Connection: Localhost via UNIX socket
UNIX socket:/var/lib/mysql/mysql.sock
I compiled with ./configure --enable-mysql=y

when I run add domain I get:

Please enter password for postmaster:
enter password again:
could not connect to mysql update server Access denied for user: 
'[EMAIL PROTECTED]' (Using password: YES) with database
could not connect to mysql update server Access denied for user: 
'[EMAIL PROTECTED]' (Using password: YES)
vmysql: sql error[c]: MySQL server has gone away
vmysql: sql error[b]: MySQL server has gone away
vmysql: sql error[3]: MySQL server has gone away

I have a database called vpopmail and a user vpopmail that has (I 
believe got access to this db).. but looking at this error message 
makes me wonder... does  Access denied for user:  mean that the 
database has been found just that its not allowing the user to 
authenticate?

Im lost..

Regards

Jon

_
Express yourself with cool emoticons - download MSN Messenger today! 
http://www.msn.co.uk/messenger







Re: [vchkpw] Urgent - vchkpw/vpopmail authenticate even with wrongpw?

2003-08-14 Thread Dave Richardson - Lists
I apologize for not reading enuf of the thread, this is a diff issue 
than what I wrote.  
Good luck.  Sorry.

Dave Richardson - Lists wrote:

There's something about logging into virtual accounts with the order 
and number of parameters in your smtp run file with the new(er) 
versions of vpopmail.  The parameter count changed and many online 
examples have /bin/true one position too early.  This has the effect 
of allowing all passwords to be authenticated, irrespective of their 
lookup result.

LIST: Can we call this problem something specific: The /bin/true 
bogus auth issue and make a link to reference/fix it?

I think this is your issue Jeff.

jeff thomas wrote:

Ok...

What the hell ... I just compiled 5.3.24 WITHOUT
learn-passwords. Installed it. Restarted all mail
services. I can STILL log into any account with any
password.
Someone here must be able to shed some light on this
for me??  Please?
--- jeff thomas [EMAIL PROTECTED] wrote:
 

Ok...

So, I just compiled 5.3.24 and installed it. I used
the following configure line:
./configure  --enable-qmaildir=/var/qmail
--enable-tcprules-prog=/usr/local/bin/tcprules
--enable-learn-passwords=y
  
--enable-tcpserver-file=/usr/home/vpopmail/etc/tcp.smtp
 

--enable-defaultquota=1000 --enable-logging=e
--enable-valias=y --enable-roaming-users=y
--enable-relay-clear-minutes=30 --enable-mysql=y
--enable-sqlincdir=/usr/local/include/mysql
--enable-sqllibdir=/usr/local/lib/mysql
--enable-default-domain=domain.com
--enable-qmail-ext=y --prefix=/usr/home
Same freaking problem. I can log into all of the
accounts with any password. Thoughts?


--- jeff thomas [EMAIL PROTECTED] wrote:
  

Ok... I tried this fix.
I edited vchkpw.c and removed the FOOB and ENDIF.
recompiled.
No luck. Same thing. Any password I put in still
works.
Thoughts?

--- Michael Bowe [EMAIL PROTECTED] wrote:


I just remembered that learn-passwords was
  

broken
  

in


5.3.20, and then
eventually fixed in 5.3.24
  

http://sourceforge.net/tracker/index.php?func=detailaid=783824group_id=85937atid=577798 

 

Maybe this has something to do with your
  

problem?
  

Michael.

- Original Message - From: jeff thomas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 6:47 PM
Subject: Re: [vchkpw] Urgent - vchkpw/vpopmail
authenticate even with wrong
pw?
  

Learn passwords was enabled. However, it


should
  

learn
  

only the FIRST password entered for each

account
  

not multiple passwords for each account.

Right?

It would seem logical that with


learn-passwords,
  

the
  

first time i put in the password for


[EMAIL PROTECTED],
  

it


learns that password. If I try to log into

[EMAIL PROTECTED]
  

with a different password, I should be


rejected,
  

as it
  

learned the first password.



--- Michael Bowe [EMAIL PROTECTED]


wrote:
  

I could be barking up the wrong tree here
  

but...


Perhaps did you configure vpopmail to learn
passwords ?
It rings a bell for me that if you upgrade
  

from


an
  

v4.x vpopmail, and you
enable clear passwords in your v5.2
  

vpopmail,
  

you
  

loose all your existing
passwords and the general way to recover
  

from
  

this
  

is to enable vpopmail's
learn passwords functionality
This could explain why any password works.
  

But


then again, once the
password has been learned, you shouldn't be
  

able


to
  

go back and use some
other password and still get access
Michael.

- Original Message - From: jeff thomas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 10:15 AM
Subject: [vchkpw] Urgent - vchkpw/vpopmail
authenticate even with wrong pw?
  

Hello -

I recently installed vpopmail 5.3.20 from


freebsd
  

ports. I used Matt Simerson's FreeBSD


Qmail
  

Toaster
  

scripts to install it (it uses ports).

That installed without problem. I


installed
  

courier-imap and squirrelmail as well as

sqwebmail. I
  

noticed today that I can log into any of


the
  

accounts
  

via sqwebmail with any password. I can


literally
  

put
  

in xxx for the password on my e-mail


account


and
  

it
  

will let me in. I tried it on squirrelmail


with
  

the
  

same problem. So, then I tried simply


logging


into
  

the
  

POP3 account with xyz as the password.


It,
  

too,
  

let
  

me in with full access.

This is bad - obviously. Anyone care to


shed
  

some
  

light on what I need to do to get this


fixed
  

ASAP.
  

I
  

upgraded from 4.9.x and use mysql4 for

authentication

Re: [vchkpw] Urgent - vchkpw/vpopmail authenticate even with wrongpw?

2003-08-14 Thread Dave Richardson - Lists
There's something about logging into virtual accounts with the order and 
number of parameters in your smtp run file with the new(er) versions of 
vpopmail.  The parameter count changed and many online examples have 
/bin/true one position too early.  This has the effect of allowing all 
passwords to be authenticated, irrespective of their lookup result.

LIST: Can we call this problem something specific: The /bin/true bogus 
auth issue and make a link to reference/fix it?

I think this is your issue Jeff.

jeff thomas wrote:

Ok...

What the hell ... I just compiled 5.3.24 WITHOUT
learn-passwords. Installed it. Restarted all mail
services. I can STILL log into any account with any
password.
Someone here must be able to shed some light on this
for me??  Please?
--- jeff thomas [EMAIL PROTECTED] wrote:
 

Ok...

So, I just compiled 5.3.24 and installed it. I used
the following configure line:
./configure  --enable-qmaildir=/var/qmail
--enable-tcprules-prog=/usr/local/bin/tcprules
--enable-learn-passwords=y
   

--enable-tcpserver-file=/usr/home/vpopmail/etc/tcp.smtp
 

--enable-defaultquota=1000 --enable-logging=e
--enable-valias=y --enable-roaming-users=y
--enable-relay-clear-minutes=30 --enable-mysql=y
--enable-sqlincdir=/usr/local/include/mysql
--enable-sqllibdir=/usr/local/lib/mysql
--enable-default-domain=domain.com
--enable-qmail-ext=y --prefix=/usr/home
Same freaking problem. I can log into all of the
accounts with any password. Thoughts?


--- jeff thomas [EMAIL PROTECTED] wrote:
   

Ok... I tried this fix. 

I edited vchkpw.c and removed the FOOB and ENDIF.
recompiled. 

No luck. Same thing. Any password I put in still
works.
Thoughts?

--- Michael Bowe [EMAIL PROTECTED] wrote:
 

I just remembered that learn-passwords was
   

broken
   

in
 

5.3.20, and then
eventually fixed in 5.3.24
   

http://sourceforge.net/tracker/index.php?func=detailaid=783824group_id=85937atid=577798
 

Maybe this has something to do with your
   

problem?
   

Michael.

- Original Message - 
From: jeff thomas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 6:47 PM
Subject: Re: [vchkpw] Urgent - vchkpw/vpopmail
authenticate even with wrong
pw?

   

Learn passwords was enabled. However, it
 

should
   

learn
   

only the FIRST password entered for each
 

account
   

not multiple passwords for each account.

Right?

It would seem logical that with
 

learn-passwords,
   

the
   

first time i put in the password for
 

[EMAIL PROTECTED],
   

it
 

learns that password. If I try to log into
 

[EMAIL PROTECTED]
   

with a different password, I should be
 

rejected,
   

as it
   

learned the first password.



--- Michael Bowe [EMAIL PROTECTED]
 

wrote:
   

I could be barking up the wrong tree here
   

but...
 

Perhaps did you configure vpopmail to learn
passwords ?
It rings a bell for me that if you upgrade
   

from
 

an
   

v4.x vpopmail, and you
enable clear passwords in your v5.2
   

vpopmail,
   

you
   

loose all your existing
passwords and the general way to recover
   

from
   

this
   

is to enable vpopmail's
learn passwords functionality
This could explain why any password works.
   

But
 

then again, once the
password has been learned, you shouldn't be
   

able
 

to
   

go back and use some
other password and still get access
Michael.

- Original Message - 
From: jeff thomas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 10:15 AM
Subject: [vchkpw] Urgent - vchkpw/vpopmail
authenticate even with wrong pw?

   

Hello -

I recently installed vpopmail 5.3.20 from
 

freebsd
   

ports. I used Matt Simerson's FreeBSD
 

Qmail
   

Toaster
   

scripts to install it (it uses ports).

That installed without problem. I
 

installed
   

courier-imap and squirrelmail as well as
 

sqwebmail. I
   

noticed today that I can log into any of
 

the
   

accounts
   

via sqwebmail with any password. I can
 

literally
   

put
   

in xxx for the password on my e-mail
 

account
 

and
   

it
   

will let me in. I tried it on squirrelmail
 

with
   

the
   

same problem. So, then I tried simply
 

logging
 

into
   

the
   

POP3 account with xyz as the password.
 

It,
   

too,
   

let
   

me in with full access.

This is bad - obviously. Anyone care to
 

shed
   

some
   

light on what I need to do to get this
 

fixed
   

ASAP.
   

I
   

upgraded from 4.9.x and use mysql4 for
 

authentication.
   

Any and all help is appreciated.


Re: [vchkpw] Losing messages when I move them?

2003-08-01 Thread Dave Richardson - Lists
The offending user is der
drwx--3 vpopmail vchkpw   4096 May 30 07:44 der
cd der; ls -l
drwx--   28 vpopmail vchkpw   4096 Jul 25 11:14 Maildir
cd Maildir; ls -l
-rw-r--r--1 vpopmail vchkpw264 Jul 25 11:14 
courierimapsubscribed
-rw-r--r--1 vpopmail vchkpw   3955 Aug  1 14:40 courierimapuiddb
drwx--2 vpopmail vchkpw  12288 Aug  1 14:49 cur
-rw---1 vpopmail vchkpw   4498 Aug  1 14:49 maildirsize
drwx--2 vpopmail vchkpw   8192 Aug  1 14:32 new
drwx--2 vpopmail vchkpw   4096 Aug  1 14:52 tmp

cd cur; ls -l
[99 messages, last several shown]
-rw---1 vpopmail vchkpw 163847 Jul 31 13:25 
1059675921.19351.penguin.example.com,S=163777:2,S
-rw---1 vpopmail vchkpw   2530 Jul 31 17:09 
1059689347.25043.penguin.example.com,S=2461:2,S
-rw---1 vpopmail vchkpw   3110 Jul 31 21:23 
1059704582.5611.penguin.surfinbox.com,S=3036:2,S
-rw---1 vpopmail vchkpw   2537 Aug  1 13:51 
1059763864.10523.penguin.example.com,S=2459:2,S
-rw---1 vpopmail vchkpw   3252 Aug  1 14:18 
1059765516.11705.penguin.example.com,S=3183:2,S
-rw---1 vpopmail vchkpw   1706 Aug  1 14:26 
1059765977.11975.penguin.example.com,S=1637:2,S
-rw---1 vpopmail vchkpw   3413 Aug  1 14:26 
1059766016.11998.penguin.example.com,S=3347:2,RS

Did that help more info needed





Jeff Hedlund wrote:



Dave Richardson - Lists wrote:

I run Courier1.7/Vpopmail5.2.1/Squirrel1.4.11(?)/Qmail (blah blah).
Recently I've had messages get lost/deleted when I try to move them 
to another folder.  If I use Mozilla, I'd drag-and-drop.  If I use 
Squirrel, I'd mark and move-to-folder.

Some messages move OK, others get lost.  The lost ones don't go to 
Trash, they just disappear.  No errors, nothing in the logs.

I've got a theory that most the mail that gets lost on a move is 
either HTML or has 1+ attachments of any size.  The problem doesn't 
seem to affect all folders of a mailbox/account, but it does seem to 
be a sticky problem - once a folder goes bad, it stays bad.  Not 
all users exhibit this problem.

Disk seems ok, etc... looking for debug ideas.


Very strange problem!  I wonder what the permissions look like on the 
bad folders..., any idea?

Jeff






Re: [vchkpw] Losing messages when I move them?

2003-08-01 Thread Dave Richardson - Lists
an offending folder is INBOX.consulting
pwd = der/Maildir
cd .consulting; ls -l
-rw-r--r--1 vpopmail vchkpw609 Jul 29 14:51 courierimapuiddb
drwx--2 vpopmail vchkpw   4096 Jul 29 07:27 cur
-rwx--1 vpopmail vchkpw  0 Jul 18 14:49 maildirfolder
drwx--2 vpopmail vchkpw   4096 Jul 18 14:49 new
drwx--2 vpopmail vchkpw   4096 Jul 29 14:51 tmp
ls -l new
total 0
ls -l tmp
total 0
ls -l cur
-rw-r--r--1 vpopmail vchkpw   1436 Jul 18 14:35 
1058557796.M109269P14433V0302I0053812F_8.penguin.example.com,S=1436:2,S
-rw-r--r--1 vpopmail vchkpw   2023 Jul 17 10:37 
1058557805.M99846P14433V0302I00538130_11.penguin.example.com,S=2023:2,RS
-rw-r--r--1 vpopmail vchkpw   3296 Jul 18 14:47 
1058557959.M590179P14433V0302I0053812D_12.penguin.example.com,S=3296:2,S
-rw-r--r--1 vpopmail vchkpw   2135 Jul 18 15:56 
1058562075.M937013P14433V0302I0053812E_16.penguin.example.com,S=2135:2,S
-rw-r--r--1 vpopmail vchkpw   3969 Jul 18 15:56 
1058562075.M937379P14433V0302I00538132_17.penguin.example.com,S=3969:2,S
-rw-r--r--1 vpopmail vchkpw   4258 Jul 28 13:37 
1059430929.M573029P30452V0302I00538135_3.penguin.example.com,S=4258:2,RS
-rw-r--r--1 vpopmail vchkpw   5247 Jul 28 19:37 
1059481652.M339393P26685V0302I00538136_3.penguin.example.com,S=5247:2,S

More???



Jeff Hedlund wrote:



Dave Richardson - Lists wrote:

Did that help more info needed


How about the offending mail folder?  What are it's perms? (and the 
dirs inside it)?

Jeff






[vchkpw] Deny on bad username?

2003-07-07 Thread Dave Richardson - Lists
I've seen prior references on this list to a patch/script that will deny 
incoming SMTP when the username/account is unknown.  After getting a ton 
of crap from the SoBIG virus (and various spam probes) I would really 
like to consider adding this to my system.  My implementation is the 
following:

qmail 1.03 with many common patches, including QMAILQUEUE.
courier-imap (1.4?)
vpopmail 5.2.1
Squirrelmail 1.4
MySQL support for both vpopmail and squirrelmail
Spamassassin and CLAM AV
That might be too much detail, but I wondered if the MySQL support would 
be an issue.  
Please link me to wherever I can find a description of this SMTP denial 
support.
Thanks, Dave.




Re: [vchkpw] Antivirus Scanner

2003-06-11 Thread Dave Richardson - Lists
You can run an Anti-Virus and Anti-Spam gateway with a lower MX value 
than your real mail server.
The gateway filters, cleans, and deals with bounces.  Good mail is 
passed onto your mail server.
You can have multiple gateways at the same MX if you _really_ need to.

qmail-scanner with clam-av and spamassassin is a nice combo that has 
also been well documented.

Guillermo Villasana Cardoza wrote:

Yes I know that, but I do need to have the scanner in one machine and the mail
program in another, and qmail-scanner although it does stop a lot of virus, it
is not enough for me. (which by the way I am also using)
I have seen the bitdefender, has anyone used that one? or also I have seen the
panda software. Still I am not sure that panda works with qmail.
Thanks

 

Qmail-Scanner works well and gives you the ability to incorporate SPAM
filtering
On Wed, 2003-06-11 at 11:37, Guillermo Villasana Cardoza wrote:
   

Hi guys, do anyone know a good antivirus scanner that can be installed on
 

linux
 

but not directly in the machine with the email server? and that works with
qmail+vpopmail?
eg:

Firewall---Antivirus Mail scanner---Qmail+Vpopmail Mailserver

Thanks again
 

--
Ron Culler


   



 






[vchkpw] valias usage?

2003-05-31 Thread Dave Richardson - Lists
I'm on vpopmail 5.2.1 with mysql and valias enabled.
I *thought* that valias would allow incoming mail to [EMAIL PROTECTED] 
to be delivered to [EMAIL PROTECTED] on the local vpopmail system. 
Documentation is a little sparse on this product.

Am I correct in what valias does?
If Yes, how do I implement the exmaple alias above?



[vchkpw] Change an account name?

2003-05-29 Thread Dave Richardson - Lists
I don't see a command to change a username for a vpopmail account.
Is there a procedure to simply change the name of an account without 
having to literally pick up a maildir manually and drop it into a new 
account for the new name?





[vchkpw] SpamAssassin, Vpopmail, conditional handling on Spam Score?

2003-05-27 Thread Dave Richardson - Lists
I'm running the QMAILQUEUE patch with SpamAssassin into Vpopmail with 
Mysql and Courier.

I'm running SpamAssassin with spam threashold required_hits = 8.

I allow direct delivery to the mailbox, but it is subject prefixed 
[SPAM]  (thus it is Spam Tagged)

What I'd like to do is add another threashold (probably in SA?) where 
the spam score of 15 is sent to /dev/null.  Scores from 7-14.99 are 
spam tagged (and delivered) and scores less than 7 are not spam tagged. 
(I've been seeing spam scores as high as 28.8 recently BTW)

Is there a normal way to do this?
D.



RE: [vchkpw] Re: Duplicate Messages.

2003-02-14 Thread Bknonix Lists
Interesting Answer Peter, but I will through a bit of a loop into this.

1.  User account bruce, no .qmail-bruce file.
- two messages are delivered to bruce when addressed to
[EMAIL PROTECTED]

2.  User account bruce, with .qmail-bruce file.
- one message is delivered to bruce when addressed to
[EMAIL PROTECTED]

So, unless I am missing something (in which case, please point me to where)
I do not see why the above example should go to the .qmail-default file.

In the event that the message does go to the default file, I do want both.
I want the bounce to go back AND a copy to be forwarded to the postmaster.

I performed an intersting test.   I deleted ALL .qmail-* files, including
the .qmail-default and the email to [EMAIL PROTECTED] just got delivered
once.

So, my theory is that creating a .qmail-default file in a virtual domain,
requires every user to have a .qmail-(user) file.



-Original Message-
From: Peter Palmreuther [mailto:[EMAIL PROTECTED]] 
Sent: February 14, 2003 10:49
To: Bknonix Lists in vpop
Subject: [vchkpw] Re: Duplicate Messages.


Hello Bknonix,

On Friday, February 14, 2003 at 3:51:04 AM you wrote (at least in
part):

And the output of:

cat home-directory-of-that-domain/.qmail-default

 | /home/VMail/bin/vdelivermail '' [EMAIL PROTECTED] 
 | /home/VMail/bin/vdelivermail '' bounce-no-mailbox

And you _really_ wonder why mails are delivered twice?

The first line searches for the user in vpasswd.cdb and if found delivers
the mail. If not is redirects the mail to postmaster@... The second line
does exactly the same, except in case of failure it bounces the message. A
successful delivery done in line 1 does _NOT_ stop qmail-local executing the
other lines in .qmail-default, which a quick look into man dot-qmail and man
qmail-local would have revealed.

Decide ... Bounce or Forward. If you _really need_ both you'll for sure have
no problem with writing an own program or script that is called from
vdelivermail (|.../vdelivermail '' |/path/to/my/prog) and forwards and
bounces by itself, with the effect you only have _one_ delivery instruction
in .qmail-default.
-- 
Best regards
Peter Palmreuther

Ummm U Ug... I rule and you don't.









RE: [vchkpw] Duplicate Messages.

2003-02-13 Thread Bknonix Lists
Ok.

Here you go.


From: Jonas Pasche [mailto:[EMAIL PROTECTED]] 
Sent: February 13, 2003 14:05
Hi Bruce,

 (a) Before I created the file .qmail-lists
 
 Feb 10 12:40:20 radar mail: 1044898820.602392 new msg 103789 Feb 10 
 12:40:20 radar mail: 1044898820.605824 info msg 103789: bytes 2455 
 from [EMAIL PROTECTED] qp 2616 uid 
 500 Feb 10 12:40:20 radar mail: 1044898820.734291 starting delivery 
 88: msg 103789 to local [EMAIL PROTECTED] Feb 10 12:40:20 
 radar mail: 1044898820.736996 status: local 1/10 remote 0/20 Feb 10 
 12:40:22 radar mail: 1044898822.189478 delivery 88: success: 
 did_0+0+2/ Feb 10 12:40:22 radar mail: 1044898822.248579 status: local 
 0/10 remote 0/20 Feb 10 12:40:22 radar mail: 1044898822.532584 end msg 
 103789

Ok, please tell us the output of:

grep bknonix.com /var/qmail/users/assign

+bknonix.com-:bknonix.ca:89:89:/home/VMail/domains/bknonix.ca:-::


And the output of:

ls -la home-directory-of-that-domain

drwx--5 vpopmail vchkpw   4096 Feb 10 21:28 .
drwx--4 vpopmail vchkpw   4096 Feb  9 13:02 ..
drwx--3 vpopmail vchkpw   4096 Jan  7 01:02 bknonix
drwx--3 vpopmail vchkpw   4096 Jan  7 01:02 bruce
-rw---1 vpopmail vchkpw 34 Feb  8 17:04 .dir-control
drwx--3 vpopmail vchkpw   4096 Jan  7 01:02 lists
-rw---1 vpopmail vchkpw 57 Feb  9 21:10 .qmail-abuse
-rw---1 vpopmail vchkpw 53 Feb 10 21:16 .qmail-bknonix
-rw---1 vpopmail vchkpw 51 Feb 10 21:14 .qmail-bruce
-rw---1 vpopmail vchkpw109 Feb  9 21:10 .qmail-default
-rw---1 vpopmail vchkpw 51 Feb 10 21:16 .qmail-lists
-rw---1 vpopmail vchkpw 53 Feb  9 21:10 .qmail-postmaster
-rw---1 vpopmail vchkpw311 Feb  5 00:48 vpasswd
-rw---1 vpopmail vchkpw   2425 Feb  5 00:48 vpasswd.cdb
-rw---1 vpopmail vchkpw  0 Feb  5 00:48 .vpasswd.lock


And the output of:

cat home-directory-of-that-domain/.qmail-default

| /home/VMail/bin/vdelivermail '' [EMAIL PROTECTED]
| /home/VMail/bin/vdelivermail '' bounce-no-mailbox


Jonas





RE: [vchkpw] Duplicate Messages.

2003-02-11 Thread Bknonix Lists
Thanks Jonas:

Here are two snipits from the log.

(a) Before I created the file .qmail-lists

Feb 10 12:40:20 radar mail: 1044898820.602392 new msg 103789
Feb 10 12:40:20 radar mail: 1044898820.605824 info msg 103789: bytes 2455
from [EMAIL PROTECTED] qp 2616 uid 500
Feb 10 12:40:20 radar mail: 1044898820.734291 starting delivery 88: msg
103789 to local [EMAIL PROTECTED]
Feb 10 12:40:20 radar mail: 1044898820.736996 status: local 1/10 remote 0/20
Feb 10 12:40:22 radar mail: 1044898822.189478 delivery 88: success:
did_0+0+2/
Feb 10 12:40:22 radar mail: 1044898822.248579 status: local 0/10 remote 0/20
Feb 10 12:40:22 radar mail: 1044898822.532584 end msg 103789


(b) After I created the file .qmail-list
| /home/bin/vdelivermail '' [EMAIL PROTECTED]

Feb 10 21:20:20 radar mail: 1044930020.938573 new msg 103790
Feb 10 21:20:20 radar mail: 1044930020.941533 info msg 103790: bytes 5240
from [EMAIL PROTECTED] qp 3803 uid 500
Feb 10 21:20:20 radar mail: 1044930020.984768 starting delivery 125: msg
103790 to local [EMAIL PROTECTED]
Feb 10 21:20:20 radar mail: 1044930020.990660 status: local 1/10 remote 0/20
Feb 10 21:20:22 radar mail: 1044930022.148490 delivery 125: success:
did_0+0+1/
Feb 10 21:20:22 radar mail: 1044930022.206990 status: local 0/10 remote 0/20
Feb 10 21:20:22 radar mail: 1044930022.224711 end msg 103790


Now, all I can see that is different is the (a) did_0+0+2 versus (b)
did_0+0+1 line.


Any help would be appreciated.

Thanks
Bruce 


-Original Message-
From: Jonas Pasche [mailto:[EMAIL PROTECTED]] 
Sent: February 11, 2003 08:08
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] Duplicate Messages.


Hi Bruce,

 Can somebody explain why I have to create the .qmail files for the 
 delivery?

Yes, the qmail-send log. Please read it, or post the according log snippet
if you're unsure how to interpret it.

Jonas









[vchkpw] Duplicate Messages.

2003-02-10 Thread Bknonix Lists
Has anybody seen this before

QMAIL + VPOPMAIL

- install qmail on system.   Local domain is domain1.com
- create user1 / user2 on system.  Email works fine to [EMAIL PROTECTED] and
[EMAIL PROTECTED]
- no changes to default .qmail files in alias directory.

- create virtual domain vdomain.com
- create [EMAIL PROTECTED] and [EMAIL PROTECTED]
- no changes to default .qmail files

- send email to [EMAIL PROTECTED] and you get 2 copies of the message in
the folder.

After much searching, I created
.qmail-vuser1 containing 1 line:
| /home/bin/vdelivermail '' [EMAIL PROTECTED]

And low and behold, only one copy of the message.


Can somebody explain why I have to create the .qmail files for the delivery?

Thanks
Bruce.





RE: [vchkpw] Change password

2003-01-07 Thread Lists @ Apted Tech.
http://inter7.com/vpopmail/doc/
http://inter7.com/vpopmail/doc/vpasswd.html

please read...

-Original Message-
From: zafar rizvi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 6:15 AM
To: [EMAIL PROTECTED]
Subject: [vchkpw] Change password


hi ppl
 Any body have some idea about changepassword with virtual domain user
(vpopmail user).

Bcz i must need a change password script or idea

thanks
zafar

 




RE: [vchkpw] mail is not going outside

2002-12-26 Thread Lists @ Apted Tech.



Sorry,_I_wasn't_able_to_establish_an_SMTP_connection.

-Original Message-From: zafar 
[mailto:[EMAIL PROTECTED]]Sent: Monday, December 23, 2002 3:11 
AMTo: [EMAIL PROTECTED]Subject: [vchkpw] mail is not going 
outside
hello ppl
i am using qmail on redhat,and using virtual 
domains.
so that why i compile vpopmail with roaming-users=y 
support
but when i send mail to outside from that domain 
then it give me error 
--
Dec 23 11:44:07 mail2 qmail: 1040643847.737084 new 
msg 282Dec 23 11:44:07 mail2 qmail: 1040643847.737211 info msg 282: bytes 
190 from [EMAIL PROTECTED] qp 
19926 uid 507Dec 23 11:44:07 mail2 qmail: 1040643847.787793 starting 
delivery 4: msg 282 to remote [EMAIL PROTECTED]Dec 23 11:44:07 mail2 
qmail: 1040643847.787906 status: local 0/10 remote 1/20Dec 23 11:44:07 mail2 
qmail: 1040643847.792076 delivery 4: deferral: 
Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/Dec 23 
11:44:07 mail2 qmail: 1040643847.792180 status: local 0/10 remote 
0/20
i can't understand this problem bcz mail is sending 
localy very fine..not remote..

plz help me regard this.
zafar


[vchkpw] Vconvert problem

2002-12-18 Thread Mailing Lists
Hi all.
I'm testing a migration from cdb to mysql on vpopmail, but I encounter a
problem.
If I run vconvert -c -m, it reports success but my vpopmail table in
vpopmail db is clear.
I also try to create a new account to test if it was a permission
problem, but all works well: the new account was inserted in vpopmail
table.
Then, if I rerun vconvert -c -m, I find that my vpopmail table is
cleared again, loosing also my new account definitions.

Vpopmail version 5.3.12

Any ideas??
Thanks in advance
Ciao
Gianni 





RE: [vchkpw] Re: smtp auth

2002-10-31 Thread Lists @ Apted Technologies Inc.
your right.  users were not vpopmail/vchkpw.  working perfectly now.  thanks
peter.

-chris

-Original Message-
From: Peter Palmreuther [mailto:lists;pitpalme.de]
Sent: Wednesday, October 30, 2002 11:02 PM
To: [EMAIL PROTECTED]
Subject: [vchkpw] Re: smtp auth


Hello Lists,

On Thursday, October 31, 2002 at 2:37:43 AM you wrote:

 smtp auth is returning user unknown:
 Oct 30 15:59:27 query vpopmail[9465]: vchkpw-smtp: vpopmail user not found
 [EMAIL PROTECTED]:209.124.141.171

 startups are:
 /usr/bin/tcpserver -u 63 -g 65 -l -R -H 0 smtp /var/qmail/bin/qmail-smtpd
\
  query.aptedtech.com /var/vpopmail/bin/vchkpw /bin/true 

Who's 'UID 63' and 'GID 65' on your system? User vpopmail? If not you
might simply have an access problem to 'vpasswd.cdb' as it's only
readable to root and vpopmail but not to qmaild, which is used in
default installations for starting up qmail-smtpd.

If you have enabled 'passwd' users as well in vpopmail configuration
you'll have to run qmail-smtpd as user root for being able to read
'/etc/passwd' and if existing '/etc/shadow', else you'll only need to
run qmail-smtpd as UID/GID vpopmail/vchkpw.

HTH Pit
--
Best regards
Peter Palmreuther







[vchkpw] smtp auth

2002-10-30 Thread Lists @ Apted Technologies Inc.
i realize this may be a qmail list question and i have another email in my
drafts folder just for the occasion but i thought it would post it here
first (people tend to get eaten alive on the qmail list also :).  i have set
up qmail_smtpauth_qmailqueue_maildir++/vpopmail/mysql.

i can pop in fine:
Oct 30 15:59:33 query vpopmail[9467]: vchkpw-pop3: (PLAIN) login success
[EMAIL PROTECTED]:209.124.141.171

smtp auth is returning user unknown:
Oct 30 15:59:27 query vpopmail[9465]: vchkpw-smtp: vpopmail user not found
[EMAIL PROTECTED]:209.124.141.171

startups are:
/usr/bin/tcpserver -u 63 -g 65 -l -R -H 0 smtp /var/qmail/bin/qmail-smtpd \
 query.aptedtech.com /var/vpopmail/bin/vchkpw /bin/true 
/usr/bin/tcpserver -u 60 -g 60 -l -R -H 0 pop3 /var/qmail/bin/qmail-popup \
 query.aptedtech.com /var/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d
Maildir 

smtp-auth literature says qmail-smtpd needs three arguments when started
(hostname, pass chekc program, subprogram).

i have vpopmail installed with config of:
./configure \
--enable-tcprules-prog=/usr/bin/tcprules \
--enable-tcpserver-file=/var/vpopmail/etc/tcp.smtp \
--enable-mysql=y \
--enable-logging=v \
--enable-valias=y \
--enable-many-domains=y \
--enable-auth-logging=y \
--enable-md5-passwords=y \
--enable-clear-passwd=y \
--enable-learn-passwords=y \
--enable-file-sync=y \
--enable-file-locking=y \
--enable-ip-alias-domains=y \
--enable-qmail-ext=y \
--enable-make-seekable=y \
--enable-defaultquota=5242880

   vpopmail 5.3.9
Current settings
---

vpopmail directory = /var/vpopmail
   uid = 60
   gid = 60
  ip alias = ON  --enable-ip-alias-domains=y
address extentions = ON  --enable-qmail-ext=y
 roaming users = OFF --enable-roaming-users=n default
user quota = 5242880 -enable-hardquota=5242880
   auth module = mysql --enable-mysql=y
 mysql replication = OFF --enable-mysql-replication=n default
table optimization = many domains --enable-many-domains=y default
  system passwords = OFF --enable-passwd=n default
  file locking = ON  --enable-file-locking=y default
 file sync = ON  --enable-file-sync=y enable vdelivermail fsync
 make seekable = ON  --enable-make-seekable=y default
  auth logging = ON  --enable-auth-logging=y default
 mysql logging = OFF --enable-mysql-logging=n default
  clear passwd = ON  --enable-clear-passwd=y (default)
 users big dir = ON  --enable-users-big-dir=y (default)
 valias processing = ON  --enable-valias=y
pop syslog = log success and errors including passwords
 --enable-logging=v
default domain =  --enable-default-domain=
  auth inc = -I/usr/include/mysql
  auth lib = -L/usr/lib/mysql  -lmysqlclient -lz

the patches all applied without error to qmail
Bill Shupp www.shupp.org
qmail-maildir++.patch
http://www.shupp.org/patches/qmail-maildir++.patch

Krzysztof Dabrowski [EMAIL PROTECTED]
Eric M. Johnston [EMAIL PROTECTED]
smtp-auth Patch v. 0.31
http://members.elysium.pl/brush/qmail-smtpd-auth/dist/qmail-smtpd-auth-0.31.
tar.gz

Bruce Guenter [EMAIL PROTECTED]
qmail-queue patch
http://www.qmail.org/qmailqueue-patch

just want to get smtp-auth working but im not really sure where to start
looking from here.  thanks all.

-chris





[vchkpw] Cost To Get Postgresql Support In Vpopmail

2002-10-18 Thread Jay's Lists
I've been waiting a long time for Postgresql support in Vpopmail.
Apparently it exists, but there is no autoconf support for it right now.

I don't have the expertise necessary to write what is needed, otherwise
I would.  So how much would it cost to get someone with the experience
necessary to finish up what has already been started?

We are just a tiny company right now, but might be willing to pay for
the cost of development.  Maybe there are other companies out there that
also need Postgresql support in Vpopmail and would be willing to partner
on the costs of development...


Jay Tortorelli





[vchkpw] mail gateway smtp auth

2002-10-16 Thread Lists @ Apted Technologies Inc.

im an integrating my companies existing qmail/vpopmail/mysql server and an
older post.office setup into one.  i have three boxes that would be the
listed mail exchangers and would also perform limited virus checking and
spam prevention.  mail comes in to one of them, passes through filtering
process, if not rejected, then forwarded to the real mail server where
actual mailboxes reside on some raid equipment.  this plan seems great to
me, but i have one problem.  smtp auth.  if i have qmail/smtp-auth set up on
all three of these boxes and the actual server with users maildirs is on
another box, how are any mails gonna make it through?  well im thinking i
could set up vpopmail on all boxes with mysql replication and have the main
mail server as the master, but that seems a bit much to me.  all the other
notions i have in my head about how to do this just don't seem clean enough
to really want to implement.  i just need a method for qmail/smtp-auth on
these three mail exchangers (gateway) to use the auth info from the main
mail servers vpopmail/mysql database. does anyone have any suggestions?
thanks all.

-chris





Re: test spam; should be rejected

2001-12-02 Thread Harry (lists)

on 12/2/01 1:56 AM, Lou Hevly at [EMAIL PROTECTED] wrote:

 Is there any reason for allowing spammers to post to this list?

Not sure about the vpopmail list, but this exact same argument just finished
on the qmail list, which is also an open list - and thus spam friendly.

On the qmail list, the major reasons for the opne configuration were
ego-based, and political -- which I sincerely hope is not the case on here.

How much spam were you getting? I have not been noticing any significant
spam on this list.

Harry





qadmin-tmda installation / administration utility

2001-11-25 Thread Harry (lists)

Announcing the release of the first version of QAdmin-TMDA - QAdmin-TMDA is
a configuration and administration tool for the TMDA Anti-Spam solution,
which integrates itself into the Qmailadmin web managment for qmail, and
works seamlessly with vpopmail accounts.

Find it at: http://devel.samstech.net

This tool allows you to protect any individual account, edit any
configuration files from the web and control every aspect of the
ANTI-Spam counter measures.

Some Features:

- Automatic generation of all needed config files for each POP Account
- POP account TMDA configuration editor

Included functions are:

Protect: This will configure the TMDA settings for this account, and enable
a protected POP account.

Disable: This temporarily disables the TMDA configuration but preserves all
settings. 

Enable: This will reactivate a TMDA account, restoring all previous
settings.

Remove: This will completely eliminate all files but will back them up. The
account is reset to a virgin state into a pure qmail+vpopmail style.

Restore: In case the user had already previously configured TMDA for this
account they can restore the previous setup, recovering any already approved
or denied email addresses - in fact this option restores the entire previous
state of the account prior to removal of TMDA.

- Finally the Config Files editor

This tool allows online editing/saving of the accounts config files
including: 

WhiteList (approved addresses),
BlackList (rejected addresses),
.tmdarc (main tmda configuration file),
Accept (accept template),
Request (request template),
Incoming (global config file for incoming msgs),
Outgoing (global config file for outgoing msgs).

QAdmin-TMDA comes with an extensive help system that makes an effort to
respond to every available possibility that you might encounter, this
help subsystem is presented in the way of system messages, warnings and
error conditions. 

Its aim is to assist you in the management and operation of
QAdmin-TMDA.

Other features:

- Crypto Key automatically generated for each account
- Fully integrated into qmailadmin interface
- On line web editor capable of editing any config file on a per-user
basis
- Fully automatic installer
- Perl and C based


You can find it at http://devel.samstech.net/ in the download area. We
have made an installation tutorial (please read this prior to attempting
to install), FAQs, a mailing list, forums and a news area. We
consider this code beta for now but stable enough to be used in a
production environment.

No demo online but the tutorial has images that describe the use.

Warnings:

At this time we have not been able to solve a looping problem. When the
postmaster and the catch account are protected this generates a mail loop.
If MAILER-DAEMON bounces a mail it will send it to the postmaster and it
will request confirmation - The current work-around solution to this is to
enter your domain in the whitelist of the postmaster/catch all account, so
that all notices are automatically accepted by the postmaster as well as by
the catch all account.

If anyone have some ideas as to how to solve this we would more than
welcome them.

Thanks.

Francisco Sam Castillo
SamsTech.Net
Devel Team
http://devel.samstech.net/
[EMAIL PROTECTED]

-- 
A computer without Windows is like a chocolate cake without mustard. 




support for TMDA

2001-11-14 Thread Harry (lists)


For those that don't know, TMDA is the Tagged Mail Delivery Agent, a white
list anti-spam measure. Pretty effective too, from what I've been told.

It would be nice if it were supported, in some manner, by vpopmail and
qmailadmin. Please let me know if there are any plans to integrate support
for the functionality into either, or if anyone has done any work in that
regards.

Harry




Table

2001-08-01 Thread Lists Servers Email

How do you create a table?

I have done as the readme, I do not have a any user on the it is a new
install, How do I get started with a table?

Kevin




vpopmail-4.10.29

2001-07-15 Thread Lists Servers Email

How do I fix this?

Thanks Kevin

[root@salem vpopmail-4.10.29]# make
make  all-recursive
make[1]: Entering directory `/usr/local/src/vpop/vpopmail-4.10.29'
Making all in cdb
make[2]: Entering directory `/usr/local/src/vpop/vpopmail-4.10.29/cdb'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/src/vpop/vpopmail-4.10.29/cdb'
make[2]: Entering directory `/usr/local/src/vpop/vpopmail-4.10.29'
gcc -I. -Icdb  -g -O2 -Wall -c vauth.c
vauth.c: In function `vauth_getpw':
vauth.c:278: incompatible types in initialization
vauth.c:278: incompatible types in initialization
vauth.c:278: incompatible types in initialization
vauth.c:278: incompatible type for argument 1 of `memset'
make[2]: *** [vauth.o] Error 1
make[2]: Leaving directory `/usr/local/src/vpop/vpopmail-4.10.29'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/vpop/vpopmail-4.10.29'
make: *** [all-recursive-am] Error 2





Mail goes to /home/usr/Maildir

2001-07-05 Thread lists

Hello,

I'm having a problem where qmail is attempting to deliver mail to
/home/usr/Maildir instead of
/usr/local/vpopmail/domain/mydomain/user/Maildir.
Most of the users are vpopmail users and therefore do not have a /home/usr
directory, so I get the dreaded 'Unable_to_chdir_to_maildir' on incoming
mail to them.
After 4 hrs sleep in the last 24 hrs straight trying to get this problem
solved, I'm getting a little frustrated. Any feedback would be appreciated.

Here are my files:

warabi# cat /usr/local/etc/rc.d/svscan.sh

#!/bin/sh -e
# startup script from:
# http://www.flounder.net/qmail/qmail-howto.html#8

#ln -s /var/qmail/supervise/qmail-pop3d /service/qmail-pop3d

case $1 in
 start)
echo -n Startng djb services: svscan 
cd /service
env - PATH=/usr/local/bin:$PATH svscan 
echo $!  /var/run/svscan.pid
echo .
;;
 stop)
echo -n Stopping djb services: svscan 
kill `cat /var/run/svscan.pid`
echo -n services 
svc -dx /service/*
echo -n  logging 
svc -dx /service/*/log
echo .
;;
 restart|reload|force-reload)
$0 stop
$0 start
;;
 *)
echo 'Usage: /usr/local/etc/rc.d/svscan (start|stop|restart)'
exit 1;
esac

exit 0


warabi#   cat /service/qmail-send/run


#!/bin/sh
exec /var/qmail/rc


warabi# cat /service/qmail-smtpd/run

#!/bin/sh

QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
exec /usr/local/bin/softlimit -m 200 \
 /usr/local/bin/tcpserver -v -p -x /usr/local/vpopmail/etc/tcp.smtp.cdb \
 -u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd 21










Mail goes to /home/usr/Maildir

2001-07-05 Thread lists

[sorry about the previous post - accidentally sent it before it was
finished]

Hello,

I'm having a problem where qmail is attempting to deliver mail to
/home/usr/Maildir instead of
/usr/local/vpopmail/domain/mydomain/user/Maildir.
Most of the users are vpopmail users and therefore do not have a /home/usr
directory, so I get the dreaded 'Unable_to_chdir_to_maildir' on incoming
mail to them.
After 4 hrs sleep in the last 24 hrs straight trying to get this problem
solved, I'm getting a little frustrated. Any feedback would be appreciated.

Here are my files:

warabi# cat /usr/local/etc/rc.d/svscan.sh

#!/bin/sh -e
# startup script from:
# http://www.flounder.net/qmail/qmail-howto.html#8

#ln -s /var/qmail/supervise/qmail-pop3d /service/qmail-pop3d

case $1 in
 start)
echo -n Startng djb services: svscan 
cd /service
env - PATH=/usr/local/bin:$PATH svscan 
echo $!  /var/run/svscan.pid
echo .
;;
 stop)
echo -n Stopping djb services: svscan 
kill `cat /var/run/svscan.pid`
echo -n services 
svc -dx /service/*
echo -n  logging 
svc -dx /service/*/log
echo .
;;
 restart|reload|force-reload)
$0 stop
$0 start
;;
 *)
echo 'Usage: /usr/local/etc/rc.d/svscan (start|stop|restart)'
exit 1;
esac

exit 0


warabi#   cat /service/qmail-send/run (-
/var/qmail/supervise/qmail-send/run)

#!/bin/sh
exec /var/qmail/rc


warabi# cat /service/qmail-smtpd/run (-
/var/qmail/supervise/qmail-smtp/run)

#!/bin/sh

QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
exec /usr/local/bin/softlimit -m 200 \
 /usr/local/bin/tcpserver -v -p -x /usr/local/vpopmail/etc/tcp.smtp.cdb \
 -u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd 21


warabi# cat /service/qmail-pop3d/run (-
/var/qmail/supervise/qmail-pop3d/run)

#!/bin/sh
 env - PATH=/var/qmail/bin:/usr/local/bin \
 /usr/local/bin/tcpserver -H -R -u vpopmail -g vchkpw 0 pop3
/var/qmail/bin/qmail-popup \
 warabi.nca.or.jp /usr/local/vpopmail/bin/vchkpw \
 /var/qmail/bin/qmail-pop3d Maildir 21


warabi# cat /var/qmail/rc

#!/bin/sh

exec env - PATH=/var/qmail/bin:$PATH \
qmail-start `cat /var/qmail/control/defaultdelivery` 21


warabi# cat /var/qmail/control/defaultdelivery

./Maildir/


warabi# cat /var/qmail/control/defaultdomain

warabi.nca.or.jp


warabi# cat /usr/local/vpopmail/etc/tcp.smtp

127.0.0.1:allow,RELAYCLIENT=


warabi# cat /var/qmail/users/assign


+nca.or.jp-:nca.or.jp:1227:65535:/usr/local/vpopmail/domains/nca.or.jp:-::


All files/dirs under /usr/local/vpopmail are chown vpopmail.vchkpw.
All subdirs are chmod 755.

Can anyone see what I am missing here?

Thanks for any help.

Shawn




Re: Mutt

2001-05-18 Thread lists-inter7

On Fri, 18 May 2001, Kieran Barnes wrote:

 Hi,

 Does anybody use mutt to read their mail in a vpopmail enviroment?

 I can't seem to get it to work correctly.

 What options would I need in my .muttrc, and variables I'd need to set prior
 to starting mutt?

I don't use mutt, but I use Pine and I guess you can use the same thing I
do.

I set up Courier IMAP for webmail (IMP) use, and set it to only bind to
port 143 on localhost.
Then log into Pine and set it up to access IMAP on localhost :)




Re: POP Authentication Not Working

2001-05-12 Thread lists
- Original Message -
From: "Chris Bolt" [EMAIL PROTECTED]
To: "GIC MLs" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 6:09 AM
Subject: RE: POP Authentication Not Working

 My oh my... you run tcpserver with a shell script that runs tcpserver
 (again) and calls itself instead of qmail-pop3d. You also have a lot of
 redundance by including the full paths to binaries when they're in your
 path. Try putting this in /usr/local/qmail/bin/qmail-pop3d-new:

 env - PATH="/var/qmail/bin:/usr/local/bin" \
 tcpserver 0 pop3 qmail-popup mydom.co.jp \
 /home/vpopmail/bin/vchkpw qmail-pop3d Maildir 

 Then just run qmail-pop3d-new

Thanks for the help.
In the last day I have totally overhauled the installation and I now have a
much "cleaner" installation.
I totally cleaned up the qmail install and tried to proceed with vpopmail
again, but am not getting any mail.
The system was originally using /home system accounts for all users, with
the Mailbox mailbox format.
I used the script at http://www.qmail.org/convert-and-create to convert the
mailboxes to Maildir format,
and have the Maildir directories set up in
/usr/local/vopmail/domains/mydom/usr/Maildir .

Now when I send a mail to the user, instead of going into that Maildir, a
Maildir is created in the user's /home directory and the mail is delivered
there. My /var/qmail/control/defaultdelivery file contains ./Maildir .
Should I change that to the full path to the Maildir under the
vpopmail/domains/usr directory, or... ?

Another problem is that I am seeing vchkpw: password fail in
/var/log/maillog as users try to check their mail.
I do not get this when I am checking the test account I set up manually
using vpasswd, but accounts which I attemtped to convert passwords for using
the vconvert program ( vconvert -c -e domain ) are failing. Does this
require mysql support? I'm not sure I specified mysql support when
installing vpopmail... anything I can do to verify whether I need it or not
and whether or not it is actually working or if I should reinstall?

Thanks for all of the help so far.

Shawn


Re: POP Authentication Not Working

2001-05-12 Thread lists

- Original Message -
From: "Chris Bolt" [EMAIL PROTECTED]
To: "lists" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, May 13, 2001 5:53 AM
Subject: RE: POP Authentication Not Working


  I used the script at http://www.qmail.org/convert-and-create to
  convert the
  mailboxes to Maildir format,
  and have the Maildir directories set up in
  /usr/local/vopmail/domains/mydom/usr/Maildir .
 
  Now when I send a mail to the user, instead of going into that Maildir,
a
  Maildir is created in the user's /home directory and the mail is
delivered
  there. My /var/qmail/control/defaultdelivery file contains ./Maildir .
  Should I change that to the full path to the Maildir under the
  vpopmail/domains/usr directory, or... ?

 Your defaultdelivery file must end in a slash for qmail to know that it is
a
 Maildir. Try changing it to ./Maildir/

I tried this, but there seems to be no change. Mail is still delivered to
/home/usr/Maildir/ instead of to the Maildir in the vpopmail structure.
If Maildir/ does not exist in /home/usr/, it gets created.
Does defaultdelivery specify the _type_ of mailbox format to use, or does it
specify the location?

 You are using vconvert incorrectly. The first parameter is what to convert
 from, and the second is what to convert to. You are trying to convert from
 cdb to etc format, when you want to do the opposite. You should also try
 adding the -d parameter for some extra info.

I was confused when I wrote the previous message. Looking back to check, I
see that I did actually use the correct parameters.
Sorry about that.

 Have you tried using qmail-pw2u
 (http://www.qmail.org/man/man8/qmail-pw2u.html)?

Not yet. I am not really sure what it does.
The page says: qmail-pw2u - build address assignments from a passwd file
I'm not sure what 'address assignments' refers to, or how it relates to
vpopmail authentication.

Thank you,

Shawn


errorlevels undocumented?

2001-01-11 Thread lists-vcheckpw


Morning everyone!

My hosting service turned the power off on my server and ever since my
pop server has been acting weird. I know vcheckpw is working since it's
rejecting bad passwords just fine, but when it authenticates, it sends:

-ERR aack, child crashed

down the net connection and dies, nothing in the logs, qmail-pop3d is
not even executed (verified)

trying to run it in the shell shows it doesn't run its commandline, but
instead exits at errorlevel 4 (3 for wrong password, 4 for right).

other than that, it's a regular qmail installation, qmail-popup runs as
UID vpopmail (but changing to root didn't help). ideas please? it
doesn't seem to be eiter one of the two remarks about "child crashed" in
the Changelog..

thanks in advance.
Ira.