[vchkpw] vmoduser question

2003-03-19 Thread Vladislav Antolik
Hi,

I would like to setup quota for every user in the domain xxx.ss. Could I use 
vmoduser -q 20MB xxx.ss? Is this 20MB for every user?

thanks
  bird



[vchkpw] forwarding a while domain regardless of users

2003-03-19 Thread Rob Short


I have a client asking me to act as a sort of bypass for their mail. I
have spam and virus checking installed using spamassassin and trophie,
and need to forward all users that come in addressed to a certain domain
to another. They add and delete up to 20 users a day, but they don't
want to have to add and delete them on their server *and* on my server. 

i.e., I receive a mail for [EMAIL PROTECTED], and I need to forward it to
[EMAIL PROTECTED], but I can't have vpopmail look to see if
[EMAIL PROTECTED] exists on my server - it just needs to know that
this.com exists, and all users are valid for that domain. The client
will handle that on their mailserver when I forward them the mail. Is
there a way to do this with vpopmail? I'm using qmail with maildrop,
BTW.



Rob Short




[vchkpw] forwarding a while domain regardless of users

2003-03-19 Thread Rob Short
Should read forwarding a WHOLE domain...apologies.

Rob Short




Re: [vchkpw] Spam Assassin implementation

2003-03-19 Thread Jeremy Gault
John,

I've never used that method myself.  However, if it works
then in theory you can turn on/off SA on a per-domain basis.

Here's how we are doing it:  We use qmail-scanner along with
the QMAILQUEUE patch.  Basically, qmail-scanner is configured to use
clamav and SA for scanning.  Since qmail-scanner is called in place
of qmail-queue (done by setting the QMAILQUEUE environment variable
in tcpserver) it scans all incoming mail for viruses and spam.  Plus,
we can use smtproutes to provide virus and spam filtering.  (Just MX
their domain to us, use smtproutes to route to their real mail
esrver, and on the way through it gets scanned.)

To me, the best method is using qmail-scanner, but that has
the side effect that you can't toggle on/off spam and virus filtering
on a per-user or per-domain basis.  As long as you can live with that
(I can) then I'd go with qmail-scanner. :)

Jeremy

Unless the network is lying to me again, John McGivern said:
 Hi,
 
 I wanted to confirm what was the best way to implement spam assassin with a 
 qmail/vpopmail/qmailadmin setup.
 
 Somebody else had set this up a while ago - I think it is working but I'm not sure 
 if it is affecting other mail deliveries.
 
 Basically I have spam assassin installed and I have a .qmail-default in every domain 
 folder on my server.  It looks  like this:
 
 | /var/qmail/bin/preline -d /var/qmail/bin/bouncesaying [message to bounce back if 
 not SPAM]
 | /home/vpopmail/bin/vdelivermail ' ' bounce-no-mailbox
 
 Does this look like it should work okay with spam assassin?  I notice others 
 .qmil-default files look a little different.  This was set up to handle all spam on 
 a domain basis.
 
 Thanks,
 
 John McGivern
 

-- 
Jeremy Gault [EMAIL PROTECTED]
Network Administrator / MIS, WinWorld Corporation
(v) 4237-473-8084 // (f) 423-472-9465




Re: [vchkpw] Spam Assassin implementation

2003-03-19 Thread Rick Root
Jeremy Gault wrote:
To me, the best method is using qmail-scanner, but that has
the side effect that you can't toggle on/off spam and virus filtering
on a per-user or per-domain basis.  As long as you can live with that
(I can) then I'd go with qmail-scanner. :)
Jeremy,

That's not entirely true, about not being able to toggle on/off spam 
filtering... you can configure spamassassin to whitelist mail to 
specific users and domains, but each time you change it MAY require a 
restart of spamd (it probably reads local.cf only on startup).

see: http://www.spamassassin.org/doc/Mail_SpamAssassin_Conf.html

In particular, the whitelist_to and associated configuration options. 
 They accept wildcards, so if you wanted to not spam filter any mail to 
the domain winworld.cc, you could just add whitelist_to [EMAIL PROTECTED]

I haven't actually tried this, so we're going on theory entirely here.

Admittedly, this solution is ENTIRELY off topic for vchkpw =)

 - Rick




[vchkpw] problem with solaris 8 and md5 password

2003-03-19 Thread Andrea Ubiali
hi all,

i don't know how to add support for md5 password on my solaris 8 servers

This is my configure

./configure --enable-mysql=y --enable-logging=y --enable-clear-passwd=y
--enable-valias=y --enable-learn-passwords=y
--enable-defaultquota=104857600 --enable-auth-logging=y
--enable-incdir=/usr/local/mysql/include
--enable-libdir=/usr/local/mysql/lib --enable-md5-passwords=y
This kind of configuration works perfectly on my linux servers (suse
8.0) and doesn't work on solaris 8 (sparc)
I have no error, but on solaris i can't read or write MD5 passwords

vpopmail-5.2.1 on all servers

Any idea ?

Thanks. Andrea.

--
Andrea Ubiali
Elitel S.p.A.


smime.p7s
Description: S/MIME Cryptographic Signature


Re: [vchkpw] forwarding a while domain regardless of users

2003-03-19 Thread Peter Palmreuther
Hi Rob,

On Wed, 19 Mar 2003 10:36:24 -0600 Rob Short wrote:

 I tried the 
 |/home/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED]
 
 line earlier this morning. No avail - I got syntax errors on that line.

So _who exactly_ reported that syntax error?

I've just set up an additional domain, for testing purposes only, that
was modified to have a .qmail-default exactly as given above (execept
'that.com' replaced by another domain).

What should I say ... it worked _immediately_.

'pitpalme.de' is the primary domain, 'asdfg.pitpalme.de' the new
test domain.

,-
| info msg 945386: bytes 246 from [EMAIL PROTECTED] qp 4783 uid 0
| starting delivery 52: msg 945386 to local \
|   [EMAIL PROTECTED]
| status: local 1/10 remote 0/20
| new msg 945395
| info msg 945395: bytes 358 from [EMAIL PROTECTED] qp 4788 uid 89
| starting delivery 53: msg 945395 to remote [EMAIL PROTECTED]
`-

Line wrapping escaped with '\' inserted manually to avoid ugly wrapping
in this email.

So you see ... it works.

 I think I'm moving this to an alternate server that calls spamassassin
 and trophie from qmail-scanner.

If you like ... do that. But be assured it would work without that work
araound. :-)
-- 
Pit



Re: [vchkpw] Spam Assassin implementation

2003-03-19 Thread Jonas Pasche
Hi John,

 Somebody else had set this up a while ago - I think it is working but
 I'm not sure if it is affecting other mail deliveries.

Oh well, it is...

 Basically I have spam assassin installed and I have a .qmail-default
 in every domain folder on my server.  It looks  like this:
 
 | /var/qmail/bin/preline -d /var/qmail/bin/bouncesaying \
 [message to bounce back if not SPAM]
 | /home/vpopmail/bin/vdelivermail ' ' bounce-no-mailbox

The first line simply bounces _everything_ back to the sender, telling
him it is spam. You don't actually call any SpamAssassin program in your
.qmail-default file - how do you expect SpamAssassin to be actually used
in your setup? ;-)

 Does this look like it should work okay with spam assassin?

Definitely not.

 I notice others .qmil-default files look a little different.

Theirs might be hopefully working ;-)

Personally, I'd prefer qmail-scanner to mark all messages with a spam
analysis header, and then use dot-qmail filtering to sort them out
later. Try out this, if your mail server supports qmail-scanner with
SpamAssassin integration. You'll need the 822mess package from DJB to
get the 822field program.

$ cat .qmail-default
| bouncesaying I don't want your spam 822field X-Spam-Flag  /dev/null
| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

It's 822field in this case that checks for the presence of the
X-Spam-Flag header. If it's present, it bounces the message back to the
sender. If not, it continues with the next delivery instruction.

Please be aware that qmailadmin occasionally rewrites .qmail-default,
causing your manual filtering rules to disappear!

Jonas




Re: [vchkpw] aliases

2003-03-19 Thread Jonas Pasche
Hi Payal,

 I don't remember how I missed this command. I searched for almost a day
 in the directory.
 
 But still I am unable to figure how to use it. Can you give an example?

Well... :-)

# valias 
must supply alias email address
valias: usage: [options] email_address 
options: -v ( display the vpopmail version number )
 -s ( show aliases, can use just domain )
 -d ( delete alias )
 -i alias_line (insert alias line)

Isn't that enough? valias isn't _that_ complex...

Jonas





[vchkpw] Best Way To Import cdb to MySQL w/ Alterations

2003-03-19 Thread Wil Hatfield - HVHM Customer Care


I am sure it has already been covered but I couldn't find exactly what I was
looking for so here we go again.

I need to import from the old cdb version that Vpopmail used to the new
MySQL. New to us anyways. The tricky part is that the old user base was
located at /sites/home/vpopmail/domains and the new location will be
/sites/http/domainname.com/postoffice by using the -u switch.

Could someone point me in the direction of a resource that may be modifiable
in this fashion? It would be most appreciated.

Wil






[vchkpw] Re: Best Way To Import cdb to MySQL w/ Alterations

2003-03-19 Thread Peter Palmreuther
Hello Wil,

On Wednesday, March 19, 2003 at 8:37:28 PM you wrote (at least in
part):

 I am sure it has already been covered but I couldn't find exactly what I was
 looking for so here we go again.

 I need to import from the old cdb version that Vpopmail used to the new
 MySQL. New to us anyways. The tricky part is that the old user base was
 located at /sites/home/vpopmail/domains and the new location will be
 /sites/http/domainname.com/postoffice by using the -u switch.

 Could someone point me in the direction of a resource that may be modifiable
 in this fashion? It would be most appreciated.

Try copying

/sites/home/vpopmail/domains/domain.com/vpasswd*

to

/sites/http/domainname.com/postoffice/

and use the 'vconvert' tool provided with vpopmail.
-- 
Best regards
Peter Palmreuther

A real patriot is the fellow who gets a parking ticket  and rejoices
that the system works.




[vchkpw] :: Courier Imap Auth Problem ::

2003-03-19 Thread Jerome Walters
Hello Folks:

First, please let me know if I have not included enough information or am
posting inappropriately. I believe I have followed the install instructions
in each package and have researched this problem, but I just don't know
enough about courier-imap to figure it out.

I am running Qmail 1.03 + VPopMail 5.2.1 + Courier-Imap 1.7.0.20030311 using
a Slackware 8.1 system. I have about 20 virtual domains set through the
VPopMail. The server accepts new email for my recipients and outgoing SMTP
works.

I have my courier-imap configured to use authvchkpw as I am using
vpopmail. I am running IMAP-SSL(993) + POP3D-SSL(995) daemons. Sometimes the
authentication is successful but frequently I am receiving the following
error:

===
Mar 19 15:44:22 vanilla imapd-ssl: Connection, ip=[:::111.111.111.111]
Mar 19 15:44:27 vanilla imapd-ssl: LOGIN FAILED, ip=[:::111.111.111.111]
Mar 19 15:44:37 vanilla last message repeated 2 times
Mar 19 15:44:37 vanilla imapd-ssl: LOGOUT, ip=[:::111.111.111.111]
===

I am attaching also the strace from the authdaemond.plain as I think that it
could be useful.


Regards,
Jerome Walters

select(9, [5 8], NULL, NULL, {174, 87}) = 1 (in [8], left {169, 88})
accept(8, {sin_family=AF_UNIX, path=^E^H@}, [2]) = 4
fcntl64(4, F_SETFL, O_RDONLY)   = 0
select(5, [4], NULL, NULL, {10, 0}) = 1 (in [4], left {10, 0})
read(4, AUTH [EMAIL PROTECTED]..., 8192) = 43
getpid()= 3822
open(/var/vpopmail/domains/vega.bg/vpasswd.cdb, O_RDONLY) = 6
lseek(6, 1624, SEEK_SET)= 1624
read(6, \215\t\0\0\0\0\0\0, 8)= 8
close(6)= 0
select(5, NULL, [4], NULL, {10, 0}) = 1 (out [4], left {10, 0})
write(4, FAIL\n, 5)   = 5
close(4)= 0
select(9, [5 8], NULL, NULL, {300, 0})  = 1 (in [8], left {294, 98})
accept(8, {sin_family=AF_UNIX, path=^E^H@}, [2]) = 4
fcntl64(4, F_SETFL, O_RDONLY)   = 0
select(5, [4], NULL, NULL, {10, 0}) = 1 (in [4], left {10, 0})
read(4, AUTH [EMAIL PROTECTED]..., 8192) = 43
getpid()= 3822
open(/var/vpopmail/domains/vega.bg/vpasswd.cdb, O_RDONLY) = 6
lseek(6, 1624, SEEK_SET)= 1624
read(6, \215\t\0\0\0\0\0\0, 8)= 8
close(6)= 0
select(5, NULL, [4], NULL, {10, 0}) = 1 (out [4], left {10, 0})
write(4, FAIL\n, 5)   = 5
close(4)= 0
select(9, [5 8], NULL, NULL, {300, 0})  = 1 (in [8], left {294, 99})
accept(8, {sin_family=AF_UNIX, path=^E^H@}, [2]) = 4
fcntl64(4, F_SETFL, O_RDONLY)   = 0
select(5, [4], NULL, NULL, {10, 0}) = 1 (in [4], left {10, 0})
read(4, AUTH [EMAIL PROTECTED]..., 8192) = 43
getpid()= 3822
open(/var/vpopmail/domains/vega.bg/vpasswd.cdb, O_RDONLY) = 6
lseek(6, 1624, SEEK_SET)= 1624
read(6, \215\t\0\0\0\0\0\0, 8)= 8
close(6)= 0
select(5, NULL, [4], NULL, {10, 0}) = 1 (out [4], left {10, 0})
write(4, FAIL\n, 5)   = 5
close(4)= 0
select(9, [5 8], NULL, NULL, {300, 0} unfinished ...


RE: [vchkpw] Spam Assassin implementation

2003-03-19 Thread John McGivern
Well,  I think however the UNIX guy set this up before that it does actually work - 
somehow (I'm obviously a little light on the UNIX stuff compared to you guys!)  I know 
that if these people weren't getting mail I would be in big trouble so they are 
receiving mail.  And I know from looking in the queue that spam messages are getting 
bounced back. 

I don't really know how to find out how the spam assassin is being called.  I don't 
really know anything about qmail-scanner either.  I guess I need to do some research 
on that.  I would just like to understand the whole process and know it is set up 
properly because obviously it isn't set up properly :0 ;)

Any ideas on where to start would be appreciated!

Thanks,

John McGivern

-Original Message-
From: Jonas Pasche [mailto:[EMAIL PROTECTED]
Sent: March 19, 2003 2:38 PM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] Spam Assassin implementation


Hi John,

 Somebody else had set this up a while ago - I think it is working but
 I'm not sure if it is affecting other mail deliveries.

Oh well, it is...

 Basically I have spam assassin installed and I have a .qmail-default
 in every domain folder on my server.  It looks  like this:
 
 | /var/qmail/bin/preline -d /var/qmail/bin/bouncesaying \
 [message to bounce back if not SPAM]
 | /home/vpopmail/bin/vdelivermail ' ' bounce-no-mailbox

The first line simply bounces _everything_ back to the sender, telling
him it is spam. You don't actually call any SpamAssassin program in your
.qmail-default file - how do you expect SpamAssassin to be actually used
in your setup? ;-)

 Does this look like it should work okay with spam assassin?

Definitely not.

 I notice others .qmil-default files look a little different.

Theirs might be hopefully working ;-)

Personally, I'd prefer qmail-scanner to mark all messages with a spam
analysis header, and then use dot-qmail filtering to sort them out
later. Try out this, if your mail server supports qmail-scanner with
SpamAssassin integration. You'll need the 822mess package from DJB to
get the 822field program.

$ cat .qmail-default
| bouncesaying I don't want your spam 822field X-Spam-Flag  /dev/null
| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

It's 822field in this case that checks for the presence of the
X-Spam-Flag header. If it's present, it bounces the message back to the
sender. If not, it continues with the next delivery instruction.

Please be aware that qmailadmin occasionally rewrites .qmail-default,
causing your manual filtering rules to disappear!

Jonas






RE: [vchkpw] Spam Assassin implementation

2003-03-19 Thread Benjamin Tomhave
I would suggest checking out http://qmail-scanner.sourceforge.net/ in order
to learn about how qmail-scanner is setup and to help you figure out what's
being called, etc.

 -Original Message-
 From: John McGivern [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 19, 2003 4:18 PM
 To: Jonas Pasche; [EMAIL PROTECTED]
 Subject: RE: [vchkpw] Spam Assassin implementation


 Well,  I think however the UNIX guy set this up before that it
 does actually work - somehow (I'm obviously a little light on the
 UNIX stuff compared to you guys!)  I know that if these people
 weren't getting mail I would be in big trouble so they are
 receiving mail.  And I know from looking in the queue that spam
 messages are getting bounced back.

 I don't really know how to find out how the spam assassin is
 being called.  I don't really know anything about qmail-scanner
 either.  I guess I need to do some research on that.  I would
 just like to understand the whole process and know it is set up
 properly because obviously it isn't set up properly :0 ;)

 Any ideas on where to start would be appreciated!

 Thanks,

 John McGivern

 -Original Message-
 From: Jonas Pasche [mailto:[EMAIL PROTECTED]
 Sent: March 19, 2003 2:38 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [vchkpw] Spam Assassin implementation


 Hi John,

  Somebody else had set this up a while ago - I think it is working but
  I'm not sure if it is affecting other mail deliveries.

 Oh well, it is...

  Basically I have spam assassin installed and I have a .qmail-default
  in every domain folder on my server.  It looks  like this:
 
  | /var/qmail/bin/preline -d /var/qmail/bin/bouncesaying \
  [message to bounce back if not SPAM]
  | /home/vpopmail/bin/vdelivermail ' ' bounce-no-mailbox

 The first line simply bounces _everything_ back to the sender, telling
 him it is spam. You don't actually call any SpamAssassin program in your
 .qmail-default file - how do you expect SpamAssassin to be actually used
 in your setup? ;-)

  Does this look like it should work okay with spam assassin?

 Definitely not.

  I notice others .qmil-default files look a little different.

 Theirs might be hopefully working ;-)

 Personally, I'd prefer qmail-scanner to mark all messages with a spam
 analysis header, and then use dot-qmail filtering to sort them out
 later. Try out this, if your mail server supports qmail-scanner with
 SpamAssassin integration. You'll need the 822mess package from DJB to
 get the 822field program.

 $ cat .qmail-default
 | bouncesaying I don't want your spam 822field X-Spam-Flag  /dev/null
 | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

 It's 822field in this case that checks for the presence of the
 X-Spam-Flag header. If it's present, it bounces the message back to the
 sender. If not, it continues with the next delivery instruction.

 Please be aware that qmailadmin occasionally rewrites .qmail-default,
 causing your manual filtering rules to disappear!

 Jonas








Re: [vchkpw] :: Courier Imap Auth Problem ::

2003-03-19 Thread Jonas Pasche
Hi Jerome,

 I am attaching also the strace from the authdaemond.plain as I think that it
 could be useful.

Simply compile Courier-IMAP --without-authdaemon, and it will work fine.

Jonas




Re: [vchkpw] :: Courier Imap Auth Problem ::

2003-03-19 Thread Jerome Walters
Hey Jonas it seems to work well now. Thank you. Anyway where was the
problem? Some timeout between the courier auth module and the corresponding
daemon (imap,pop3) ??

Jerome


 Hi Jerome,

  I am attaching also the strace from the authdaemond.plain as I think
that it
  could be useful.

 Simply compile Courier-IMAP --without-authdaemon, and it will work fine.

 Jonas






Re: [vchkpw] :: Courier Imap Auth Problem ::

2003-03-19 Thread Jonas Pasche
Hi Jerome,

 Hey Jonas it seems to work well now.

Good!

 Anyway where was the problem? Some timeout between the courier auth
 module and the corresponding daemon (imap,pop3) ??

I don't know. It's just common knowledge for long-time mailing list
participators that Couriers authdaemon is simply crap. Maybe there are
reasons listed somewhere; I don't know, check the archives.

Jonas





Re: [vchkpw] aliases

2003-03-19 Thread dWi saSonO b
perhap he need more spesific. i had experience when i make input wrongly.
where valias_line i give them input alias
and alias is the real email address

for more this is my configuration
table alias under mysql is onos -- for alias
and valias_line is [EMAIL PROTECTED] -- real email address

dont mixed up ok, or your script dont work.



On 19 Mar 2003 20:41:17 +0100
Jonas Pasche [EMAIL PROTECTED] wrote:

 Hi Payal,
 
  I don't remember how I missed this command. I searched for almost a day
  in the directory.
  
  But still I am unable to figure how to use it. Can you give an example?
 
 Well... :-)
 
 # valias 
 must supply alias email address
 valias: usage: [options] email_address 
 options: -v ( display the vpopmail version number )
  -s ( show aliases, can use just domain )
  -d ( delete alias )
  -i alias_line (insert alias line)
 
 Isn't that enough? valias isn't _that_ complex...
 
 Jonas
 
 
 
 


-- 
thx
onOs



Re: [vchkpw] aliases

2003-03-19 Thread Payal Rathod
* Jonas Pasche [EMAIL PROTECTED] [2003-03-20 07:40]:
 # valias 
 must supply alias email address
 valias: usage: [options] email_address 
 options: -v ( display the vpopmail version number )
  -s ( show aliases, can use just domain )
  -d ( delete alias )
  -i alias_line (insert alias line)
 
 Isn't that enough? valias isn't _that_ complex...

Yes, I am still not getting it. Let me be more clear. Just correct me
along the way. (remember I am on dummy system so all domains are false).

If I have a domain payal.com, I want that whenever a mail is being sent
to either [EMAIL PROTECTED] or [EMAIL PROTECTED], it should land at (or do as
specified in .qmail-ext file) of [EMAIL PROTECTED] Is this how we use
aliases? Is this an example of alias?

Now I tried valias like this,
# valias [EMAIL PROTECTED] [EMAIL PROTECTED]

But this does not work at all. All the mails bounce. Even I am not
getting onos solution. Can someone clear this thing?

Warm regards,
-Payal

-- 
Visit GNU/Linux Success Stories
www.geocities.com/rpayal99
Guest-Book Section Updated.



Re: [vchkpw] aliases

2003-03-19 Thread Jonas Pasche
Hi Payal,

 If I have a domain payal.com, I want that whenever a mail is being sent
 to either [EMAIL PROTECTED] or [EMAIL PROTECTED], it should land at (or do as
 specified in .qmail-ext file) of [EMAIL PROTECTED]

So create foo as a POP account, and let bar point to it, too.

 Is this how we use aliases?

Yes.

 Is this an example of alias?

Yes.

 Now I tried valias like this,
 # valias [EMAIL PROTECTED] [EMAIL PROTECTED]
 
 But this does not work at all.

Yes, because you did not follow the instructions correctly.

valias -i [EMAIL PROTECTED] [EMAIL PROTECTED]

   \__/ \___/
   \  \
\   This is the name of the alias.
 \
   This is what you want to insert (-i) into it.

You cannot miss -i; please read the output of valias exactly.

Jonas




[vchkpw] Change the default quota

2003-03-19 Thread Luqman.H
Hi, 

how do i change default quota in vpopmail ? 

Luqman.H
www.unhas.ac.id/~luqe