[vchkpw] maildrop with bounce-no-mailbox

2004-07-15 Thread Justin Heesemann
Hi..
although this is a highly maildrop regarded question, I have to ask 
here, since maildrop folks seem to be unresponsive..

some of you are using maildrop together with vpopmail, usually somewhere 
in the maildirfilter file there's some line like 
VPOP="| /var/vpopmail/bin/vdelivermail '' bounce-no-mailbox"

to "$VPOP"

this works totally fine, when the user exists.
however if he doesn't, vpopmail exits 100, which seems to be a great 
problem for maildrop: any process not exiting 0 makes maildrop exit 
with code 75. this is especially bad, because 75 means for qmail to 
defer this message and try it again and again until the queuelifetime 
is reached. and we all know about those little spammers trying invalid 
usernames...

so, how do you do it?
use the chkuser patch for qmail, so no illegal users get into the queue?
write a wrapper for vpopmail so that it exits 0 even when the user 
doesn't exist?
use some hack for maildrop??

each way seems to have it's own disadvantage :/

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org


Re: [vchkpw] Strange problem with SMTP AUTH

2004-07-15 Thread Christian Lerrahn
Hi Tom!
> > Can anybody tell me what is happening here? Is it a problem with
> > permissions? If yes, permissions of what file?
> 
> Make sure your SMTP server is running as the vpopmail user.

This seemed to be the problem although I actually don't know how that
happened because it worked for quite some time. Anyway, at least it's
working again now.

Christian

-- 
Ein Geduldiger ist besser als ein Starker und wer sich selbst be-
herrscht, besser als einer, der Städte gewinnt.

Sprüche 16,32

Wisst, dass euer Glaube, wenn er bewährt ist, Geduld wirkt.

Jakobus 1,3



[vchkpw] good howto

2004-07-15 Thread Michiels Tom \(Uptime\)
 
Can somebody point me to a good howto for installing and configuring vpopmail together 
with squirrelmail/qmail/antispam/antivirus on a Debian machine ?
 
thx in advance!
 
regards
 
Tom Michiels
<>

Re: [vchkpw] good howto

2004-07-15 Thread DRu
2004. jul 15., 11:38:13,
MTU> Can somebody point me to a good howto for installing and
MTU> configuring vpopmail together with
MTU> squirrelmail/qmail/antispam/antivirus on a Debian machine ?
MTU> thx in advance!
MTU> regards
MTU> Tom Michiels

Hello..

http://www.linuxpourtous.com/
http://www.linuxpourtous.com/download/qmail/releases/install_qmail-1.3.7-rc7.tar.gz

install scripts debian, suse



[vchkpw] RE: good howto

2004-07-15 Thread Edward Neville
www.qmailrocks.org

That's all you need.

-Original Message-
From: Michiels Tom (Uptime) [mailto:[EMAIL PROTECTED] 
Sent: 15 July 2004 10:38
To: [EMAIL PROTECTED]
Subject: good howto


Can somebody point me to a good howto for installing and configuring
vpopmail together with squirrelmail/qmail/antispam/antivirus on a Debian
machine ?

thx in advance!

regards

Tom Michiels






Re: [vchkpw] good howto

2004-07-15 Thread Tom Collins
On Jul 15, 2004, at 2:38 AM, Michiels Tom ((Uptime)) wrote:
Can somebody point me to a good howto for installing and configuring 
vpopmail together with squirrelmail/qmail/antispam/antivirus on a 
Debian machine ?
http://shupp.org/toaster/
http://www.pipeline.com.au/staff/mbowe/isp/webmail-server.htm
--
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] good howto

2004-07-15 Thread Greg Kopp
www.qmailrocks.org

BEST how-to I have ever com accross. Has instructions to install:

The step-by-step QMR qmail installation includes the following:

1. Qmail itself - qmail, ucspi-tcp, daemontools and an enhanced qmail
logging configuration.
2. 3 qmail patches - qmail-103(a standard patch), qmailqueue(allows
alternative queueing) and auth-jms1.3(SMTP authentication)
3 . EZmlm - A fast and easy to use mailing list manager that works
through qmail.
4 . Autoresponder - Enables auto-responder capabilities on your qmail server.
5 . Vpopmail - Enables virtual e-mail hosting for multiple domains.
Available with or without mysql intergration.
6 . Vqadmin - A web based interface to manage Vpopmail virtual domains
on your qmail server.
7 . Maildrop - A server-wide mail filtering tool.
8 . Qmailadmin - A web based interface for managing Vpopmail virtual
e-mail accounts.
9 . Courier-imap/imap-ssl - The popular IMAP/IMAPS server that
supports Vpopmail.
10. Squirrelmail - A web based mail client.
11. Clam Antivirus - a virus scanner for all incoming e-mail. Tied in
via qmail-scanner.
13. SpamAssassin - Tied in via Qmail-scanner. A server-wide SPAM filter.
14. qmail-scanner - Allows the use of Clam Antivirus and SpamAssassin
as well as other tools.
15. qms-analog - a patch for qmailscanner that allows for extra
options as well as cool logging features.
16. qmailanalog - A qmail log analysis tool. Analyzes qmail logs and
then sends reports via e-mail.
17. q-trap - A domain level word based e-mail filter.

Including paths for RH, BSD, Fedora, Debian, Slackware and a beta of Solaris.

Greg

On Thu, 15 Jul 2004 09:18:03 -0700, Tom Collins <[EMAIL PROTECTED]> wrote:
> On Jul 15, 2004, at 2:38 AM, Michiels Tom ((Uptime)) wrote:
> > Can somebody point me to a good howto for installing and configuring
> > vpopmail together with squirrelmail/qmail/antispam/antivirus on a
> > Debian machine ?
> 
> http://shupp.org/toaster/
> http://www.pipeline.com.au/staff/mbowe/isp/webmail-server.htm
> 
> --
> Tom Collins  -  [EMAIL PROTECTED]
> QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
> Info on the Sniffter hand-held Network Tester: http://sniffter.com/
> 
>


[vchkpw] [semi-OT] which is more portable?

2004-07-15 Thread Jeremy Kitchen
grep vpopmail /etc/passwd | awk -F ":" '{print $6}'

or 

grep vpopmail /etc/passwd | cut -d':' -f6

Reason I'm asking is I'm making some minor modifications to the Makefile for 
the chkuser patch and I want to make sure they're as absolutely portable as 
possible before releasing it to the masses.

I appreciate any input (including if /etc/passwd is not portable, it's been on 
every system I've ever seen, but I'm relatively new to *nix compared to a lot 
of you I'm sure) I can get :)

Thanks.

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 847.492.0470 int'l
kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail



Re: [vchkpw] [semi-OT] which is more portable?

2004-07-15 Thread Jeremy Kitchen
On Thursday 15 July 2004 01:31 pm, Jeremy Kitchen wrote:
> grep vpopmail /etc/passwd | awk -F ":" '{print $6}'
>
> or
>
> grep vpopmail /etc/passwd | cut -d':' -f6
>
> Reason I'm asking is I'm making some minor modifications to the Makefile
> for the chkuser patch and I want to make sure they're as absolutely
> portable as possible before releasing it to the masses.

also, while on the topic of portability, I noticed that djb does not include 
ANY variable substitutions (only backtick ` ` substitutions) in his Makefile.  
I'm curious if this is also for portability reasons.  Anyone aware of any 
implementations of the 'make' program that don't understand variable 
substitions in Makefiles, or any situations (lack of /bin/sh compatible 
shell, perhaps?) that might make variable substitutions not possible?

Thanks again :)

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 847.492.0470 int'l
kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail



Re: [vchkpw] [semi-OT] which is more portable?

2004-07-15 Thread Chris Ess
> > grep vpopmail /etc/passwd | awk -F ":" '{print $6}'
> >
> > or
> >
> > grep vpopmail /etc/passwd | cut -d':' -f6

I would think that cut would be more portable.  However, every machine
I've used has had some variant of awk installed too.

You might want to consider using 'grep ^vpopmail' or even 'grep
^vpopmail:' rather than 'grep vpopmail' to ensure that you're only getting
the 'vpopmail' user.  (I have a server in which we've had to transparently
migrate users who were set up under sendmail so we have users whose home
directories are under the vpopmail directory.  Nasty, I know.)  The one
catch is that I don't know if 'grep ^string' is supported in all versions
of 'grep'.

> > Reason I'm asking is I'm making some minor modifications to the Makefile
> > for the chkuser patch and I want to make sure they're as absolutely
> > portable as possible before releasing it to the masses.
>
> also, while on the topic of portability, I noticed that djb does not include
> ANY variable substitutions (only backtick ` ` substitutions) in his Makefile.
> I'm curious if this is also for portability reasons.  Anyone aware of any
> implementations of the 'make' program that don't understand variable
> substitions in Makefiles, or any situations (lack of /bin/sh compatible
> shell, perhaps?) that might make variable substitutions not possible?

I don't know of any portability concerns in this regard.  I wonder if this
is just a design choice.

Sincerely,


Chris Ess
System Administrator / CDTT (Certified Duct Tape Technician)


Re: [vchkpw] [semi-OT] which is more portable?

2004-07-15 Thread Nick Harring
Title: Re: [vchkpw] [semi-OT] which is more portable?






On Thu, 2004-07-15 at 13:31 -0500, Jeremy Kitchen wrote:
> grep vpopmail /etc/passwd | awk -F ":" '{print $6}'
> 
> or 
> 
> grep vpopmail /etc/passwd | cut -d':' -f6
> 
I'd go with awk, personally. Poking around my network a bit I'm finding
cut on solaris and sco clients (and I know its on the *BSDs), however
awk is a truly old school tool, and is almost gauranteed to be on all
UNIX variants. 

> I appreciate any input (including if /etc/passwd is not portable, it's
> been on  
> every system I've ever seen, but I'm relatively new to *nix compared
> to a lot  
> of you I'm sure) I can get :)
/etc/passwd should be pretty portable however the field order I don't
think is specified in any POSIX or equivalent spec. Depending on what
info you're looking for you may want to see if something like perl's
builtin getpw function would work (perldoc -f getpw) since they've
ported perl to virtually every *nix on earth and have dealt with all of
these shifting "standard" things.
> 
> Thanks.
> 
> -Jeremy
> 
> --  
Hope that helps,
Nick
-- 
==
Nicholas Harring
System Administrator
Webley Systems
Ph/Fax/VM#877-609-4795
Email: [EMAIL PROTECTED]





Re: [vchkpw] [semi-OT] which is more portable?

2004-07-15 Thread Jeremy Kitchen
On Thursday 15 July 2004 01:51 pm, Chris Ess wrote:
> > > grep vpopmail /etc/passwd | awk -F ":" '{print $6}'
> > >
> > > or
> > >
> > > grep vpopmail /etc/passwd | cut -d':' -f6
>
> I would think that cut would be more portable.  However, every machine
> I've used has had some variant of awk installed too.

ok, my initial intent was to use cut, so I think I'll stick with that.

> You might want to consider using 'grep ^vpopmail' or even 'grep
> ^vpopmail:' rather than 'grep vpopmail' to ensure that you're only getting
> the 'vpopmail' user.

good catch.  Change made.  The beauty of the open source community is shown :)

> (I have a server in which we've had to transparently 
> migrate users who were set up under sendmail so we have users whose home
> directories are under the vpopmail directory.  Nasty, I know.)  The one
> catch is that I don't know if 'grep ^string' is supported in all versions
> of 'grep'.

POSIX regular expressions should be portable to any POSIX conforming unix 
variant.  I would think that any implementation of grep would be able to 
handle that simple regex.

> > also, while on the topic of portability, I noticed that djb does not
> > include ANY variable substitutions (only backtick ` ` substitutions) in
> > his Makefile. I'm curious if this is also for portability reasons. 
> > Anyone aware of any implementations of the 'make' program that don't
> > understand variable substitions in Makefiles, or any situations (lack of
> > /bin/sh compatible shell, perhaps?) that might make variable
> > substitutions not possible?
>
> I don't know of any portability concerns in this regard.  I wonder if this
> is just a design choice.

could be, although I know djb went to great lenghts to make his code as 
absolutely portable as possible, and I don't want to stray from this :)

Thanks Chris.

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 847.492.0470 int'l
kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail



Re: [vchkpw] [semi-OT] which is more portable?

2004-07-15 Thread Jeremy Kitchen
On Thursday 15 July 2004 01:58 pm, Nick Harring wrote:
> On Thu, 2004-07-15 at 13:31 -0500, Jeremy Kitchen wrote:
> > grep vpopmail /etc/passwd | awk -F ":" '{print $6}'
> >
> > or
> >
> > grep vpopmail /etc/passwd | cut -d':' -f6
>
> I'd go with awk, personally. Poking around my network a bit I'm finding
> cut on solaris and sco clients (and I know its on the *BSDs), however
> awk is a truly old school tool, and is almost gauranteed to be on all
> UNIX variants.

true.  I can also check for one or the other (rather clunky, but it works)
> > I appreciate any input (including if /etc/passwd is not portable, it's
[snip]
> /etc/passwd should be pretty portable however the field order I don't
> think is specified in any POSIX or equivalent spec. Depending on what
> info you're looking for you may want to see if something like perl's
> builtin getpw function would work (perldoc -f getpw) since they've
> ported perl to virtually every *nix on earth and have dealt with all of
> these shifting "standard" things.

argh, that's true.  Probably why djb didn't just write his own /etc/passwd 
parser when he complained about the reliability of getpwnam()

I will check around a little bit.  If only 'id' had a -h flag for home 
directory :)

I could have a simple C program get built that calls getpwnam() and returns 
the home directory ... ugh can we say kludge? :)

maybe I'll just make conf-vpopmail be the path to vpopmail's home directory 
and call it good.   T'would be nice to be able to auto-detect it simply based 
on the user vpopmail was configured with (considering there are probably far 
less vpopmail implementations that use another user than vpopmail, than there 
are ones that use something other than /home/vpopmail), but sometimes 
sacrifices must be made :)

I will do it this way, and add a check just before qmail-smtpd is built to 
make sure that $VPOPDIR/etc/{inc_deps,lib_deps} exist, and if not, spit out 
an error.

Thanks everyone for your input :)

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 847.492.0470 int'l
kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail



Re: [vchkpw] [semi-OT] which is more portable?

2004-07-15 Thread Eric Ziegast
> maybe I'll just make conf-vpopmail be the path to vpopmail's home directory 
> and call it good.   T'would be nice to be able to auto-detect it simply based
> on the user vpopmail was configured with (considering there are probably far 
> less vpopmail implementations that use another user than vpopmail, than there

There's no rule that says that the base vpopmail dir has to be the
home dir of user vpopmail.  You could compile a "vconfig" program
first in C and use that program later in your install process.

--
Eric Ziegast


Re: [vchkpw] [semi-OT] which is more portable?

2004-07-15 Thread Eric Ziegast
Oops, sorry, didn't mean for that to go to the list.

--
Eric Ziegast


Re: [vchkpw] [semi-OT] which is more portable?

2004-07-15 Thread Jeremy Kitchen
On Thursday 15 July 2004 02:48 pm, Eric Ziegast wrote:
> > maybe I'll just make conf-vpopmail be the path to vpopmail's home
> > directory and call it good.   T'would be nice to be able to auto-detect
> > it simply based on the user vpopmail was configured with (considering
> > there are probably far less vpopmail implementations that use another
> > user than vpopmail, than there
>
> There's no rule that says that the base vpopmail dir has to be the
> home dir of user vpopmail.  You could compile a "vconfig" program
> first in C and use that program later in your install process.

right, which is why it's better to just specify it in conf-vpopmail.  However, 
I'm having trouble getting that value into a variable in a Makefile, so I'm 
thinking that just setting it at the top and pointing documentation to change 
it would be best.

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 847.492.0470 int'l
kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail



Re: [vchkpw] [semi-OT] which is more portable?

2004-07-15 Thread Chris Ess
[snip]

> right, which is why it's better to just specify it in conf-vpopmail.
> However, I'm having trouble getting that value into a variable in a
> Makefile, so I'm thinking that just setting it at the top and pointing
> documentation to change it would be best.

Why not just use the backtick substitutions like you pointed out djb does?
This gets around dealing with Makefile variables and prevents people from
needing to edit the Makefile.

Sincerely,


Chris Ess
System Administrator / CDTT (Certified Duct Tape Technician)


Re: [vchkpw] maildrop with bounce-no-mailbox

2004-07-15 Thread Jay Tortorelli
> so, how do you do it?
> use the chkuser patch for qmail, so no illegal users get into the queue?
> write a wrapper for vpopmail so that it exits 0 even when the user 
> doesn't exist?
> use some hack for maildrop??

I am also having the same problems.  I hadn't noticed it until my queue
was over 30,000 messages.  I haven't had the time to work out a real
solution yet.  I didn't know if it was better to hack maildrop or hack
vdelivermail since I haven't even looked into either one of them yet. 
What I had found was that one of my domains was receiving thousands of
messages per hour for non-existent users and bouncing back.  So as a
quick fix, I set the default to delete, I shortened the queuelifetime to
3 days, and increased the concurrency settings because they were
constantly maxed out.

I'd also like to hear what real solutions people have come up with to
deal with this.



Re: [vchkpw] [semi-OT] which is more portable?

2004-07-15 Thread Tom Collins
On Jul 15, 2004, at 11:31 AM, Jeremy Kitchen wrote:
grep vpopmail /etc/passwd | awk -F ":" '{print $6}'
or
grep vpopmail /etc/passwd | cut -d':' -f6
How portable is this:
X=`cd ~vpopmail; pwd`
--
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] good howto

2004-07-15 Thread Rainer Duffner
Am Do, 2004-07-15 um 11.38 schrieb Michiels Tom (Uptime):
>  Can somebody point me to a good howto for installing and configuring vpopmail 
> together with squirrelmail/qmail/antispam/antivirus 

I thought of http://www.tnpi.biz ...
A highly automated script for qmail+lots-of-other-things.
Currently only supported on FreeBSD.


> on a Debian machine ?


...until I read that ;-)
But if you're not religiously tied to Debian, you can always give
FreeBSD a try.
Though, reading the other non-automated tutorials is unavoidable in the
long run, IMO.



Rainer



Re: [vchkpw] maildrop with bounce-no-mailbox

2004-07-15 Thread CoyoteTM
In maildrop Make test for the user dir before process anything else. If the
directory of that user doesn't exist than call a little perl prg.

In the perl prg grep the domain .qmail file and check that there is a
delivery to somewhere. (so catch all is exists or not) In my system if a
user doesn't exists than it is bounced back to the sending server, so if I
can't find a user Maildir than catch-all is enabled. (I don't remember the
name of that qmail patch witch do this for me...)

If there it is, then find out this new users dir, and send back this info to
maildrop.

Than process evrything as usual.
Use vuserinfo and vdominfo.


CoyoteTM

- Original Message - 
From: "Jay Tortorelli" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 15, 2004 11:14 PM
Subject: Re: [vchkpw] maildrop with bounce-no-mailbox


> > so, how do you do it?
> > use the chkuser patch for qmail, so no illegal users get into the queue?
> > write a wrapper for vpopmail so that it exits 0 even when the user
> > doesn't exist?
> > use some hack for maildrop??
>
> I am also having the same problems.  I hadn't noticed it until my queue
> was over 30,000 messages.  I haven't had the time to work out a real
> solution yet.  I didn't know if it was better to hack maildrop or hack
> vdelivermail since I haven't even looked into either one of them yet.
> What I had found was that one of my domains was receiving thousands of
> messages per hour for non-existent users and bouncing back.  So as a
> quick fix, I set the default to delete, I shortened the queuelifetime to
> 3 days, and increased the concurrency settings because they were
> constantly maxed out.
>
> I'd also like to hear what real solutions people have come up with to
> deal with this.
>
>



Re: [vchkpw] good howto

2004-07-15 Thread venu
HI,I want to start qmail service automatically at boot time ,
If anyone have idea regarding please help me . I want howtoRegards
venu


--This Message and any attachments is intended solely for the addresses and is confidential. 
If you receive this message in error or if you are not the intended recipient, please delete the mail. 
Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited. 
Please inform us in case of erroneous delivery, thanks for your cooperation.



Re: [vchkpw] good howto

2004-07-15 Thread Manish Jain



Dear,
Add a line at the bottom of /etc/rc.local file 
as
/etc/rc.d/init.d/qmail start
 
Thats it..
 
Manish Jain(Network Administrator)C-DAC 
(Ministry of Comm. & IT)"Anusandhan Bhawan" C-56/1, Sec-62, Noida - 
201307Ph    91 120 2402563 
(Direct)    91 120 2402551-60 
(Ext-718)FAX  91 120 2402569

  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  To: [EMAIL PROTECTED] 
  Sent: Friday, July 16, 2004 11:49 
AM
  Subject: Re: [vchkpw] good howto
  
  HI,I want to start qmail service automatically at boot time , If 
  anyone have idea regarding please help me . I want howtoRegards 
  venu--This 
  Message and any attachments is intended solely for the addresses and is 
  confidential.If you receive this message in error or if you are not the 
  intended recipient, please delete the mail.Any use not in accord with its 
  purpose, any dissemination or disclosure, either whole or partial, is 
  prohibited.Please inform us in case of erroneous delivery, thanks for your 
  cooperation.