[vchkpw] SIMSCAN working directory privs

2004-09-28 Thread Fabrizio Frosali - Impulso Srl
I hope this belongs to this list.
I installed simscan 1.03 in a semi-production server with over 400 domains 
and 2000 maildirs,
and it works really fast.
I propose a simple simscan change that can resolve some problems in first 
tests (IMHO)

Simscan creates the working directory with a privilege of 700. in this way 
clamd
must run with the same owner of simscan to access the msg.

Changing the privilege to 755 clamd and spamd can access the working
directory regardless of clamd process user.
To apply the change -  search this
  /* create the directory */
  if ( mkdir(workdir, 0700) == -1 ) {
_exit(EXIT_400);
  }
and replace with this
  /* create the directory */
  if ( mkdir(workdir, 0755) == -1 ) {
_exit(EXIT_400);
  }
--
Fa


Re: [vchkpw] SIMSCAN

2004-09-28 Thread tonix (Antonio Nati)
At 27/09/2004 27/09/2004 -0300, you wrote:
i am running simscan with vpopmail user.
I feel you should run simscan as qmaild user, as vpopmail user cannot write 
in qmail spool archives.

but when i set the QMAILQUEUE to simscan i receive this message. (unable to
exec qq)
That should be the reason: no permission for vpopmail user.
Ciao,
Tonino

Itamar Reis Peixoto
Analista Consultor
TreyNet Consultoria - Uberlândia
Tel : + 55 34 3231 0598
Cel:  +55 38 9107 1250
http://www.treynet.com.br

[EMAIL PROTECTED]Interazioni di Antonio Nati
   http://www.interazioni.it  [EMAIL PROTECTED]



Re: [vchkpw] SIMSCAN working directory privs

2004-09-28 Thread tonix (Antonio Nati)
At 28/09/2004 28/09/2004 +0200, you wrote:
Simscan creates the working directory with a privilege of 700. in this way 
clamd
must run with the same owner of simscan to access the msg.
They work on the same files (and only on those files), so why should they 
have different users?

I feel this design to be very safe, because clamd should be dedicated to 
e-mail only.
There should be more safety having them only accessing the files with the 
same uid/permissions.

To complete the security of the system, clamd client should be activated by 
simscan user only.

Changing the privilege to 755 clamd and spamd can access the working
directory regardless of clamd process user.
mod 755 means every one in the system may access those files.
Ciao,
Tonino
To apply the change -  search this
  /* create the directory */
  if ( mkdir(workdir, 0700) == -1 ) {
_exit(EXIT_400);
  }
and replace with this
  /* create the directory */
  if ( mkdir(workdir, 0755) == -1 ) {
_exit(EXIT_400);
  }
--
Fa

[EMAIL PROTECTED]Interazioni di Antonio Nati
   http://www.interazioni.it  [EMAIL PROTECTED]



Re: [vchkpw] SIMSCAN working directory privs

2004-09-28 Thread Fabrizio Frosali - Impulso Srl
At 10.14 28/09/2004, you wrote:
At 28/09/2004 28/09/2004 +0200, you wrote:
Simscan creates the working directory with a privilege of 700. in this 
way clamd
must run with the same owner of simscan to access the msg.

To complete the security of the system, clamd client should be activated 
by simscan user only.
Ok, I admit, I've lost a cople of hours to figure out why simscan rejected 
all my mails with a 500:
my clamd user was wrong (qscand).

I suggest, then, a line in the INSTALL doc:
check that clamd runs under the same simscan user.

I feel this design to be very safe, because clamd should be dedicated to 
e-mail only.
There should be more safety having them only accessing the files with the 
same uid/permissions.
I agree with you, clamd should be called only by simscan, but now,that 
simscan is new, everybody tries
to test it on servers configured for other solutions (ie qmailscan).
if simscan is a little friendly with other solutions it can can be tested 
and adopted very fast.

mod 755 means every one in the system may access those files.
Yes, that's a fact. But the directory is created processed by clamd and 
then removed.


Ciao,
Tonino

Ciao
Fa


To apply the change -  search this
  /* create the directory */
  if ( mkdir(workdir, 0700) == -1 ) {
_exit(EXIT_400);
  }
and replace with this
  /* create the directory */
  if ( mkdir(workdir, 0755) == -1 ) {
_exit(EXIT_400);
  }
--
Fa

[EMAIL PROTECTED]Interazioni di Antonio Nati
   http://www.interazioni.it  [EMAIL PROTECTED]




[vchkpw] simscan still not working

2004-09-28 Thread Payal Rathod
Hi,
I am still not able to get simscan working. I even tried something
as easy as this,
# export QMAILQUEUE=/var/qmail/bin/simscan  /usr/local/bin/tcpserver -vHRl 0 0 25 
/var/qmail/bin/qmail-smtpd

But still I get an error like this when I send a message,
451 mail server temporarily rejected message (#4.3.0)

What is the reason for this?

With warm regards,
-Payal


Re: [vchkpw] simscan still not working

2004-09-28 Thread Rick Macdougall

Payal Rathod wrote:
Hi,
I am still not able to get simscan working. I even tried something
as easy as this,
# export QMAILQUEUE=/var/qmail/bin/simscan  /usr/local/bin/tcpserver -vHRl 0 0 25 
/var/qmail/bin/qmail-smtpd
But still I get an error like this when I send a message,
451 mail server temporarily rejected message (#4.3.0)
What is the reason for this?
Hi,
What user does qmail-smtpd run as ?
What user does clamd run as ?
Are the two users above the same ?
If not, make them the same.
Regards,
Rick


Re: [vchkpw] simscan still not working

2004-09-28 Thread Payal Rathod
On Tue, Sep 28, 2004 at 06:30:06AM -0400, Rick Macdougall wrote:
 What user does qmail-smtpd run as ?

root.

 What user does clamd run as ?

root.

Thanks,
-Payal


Re: [vchkpw] unable to exec qq

2004-09-28 Thread Itamar Reis Peixoto
i have downloaded the tcpserver with tls and pid patch from inter7 home page


- Original Message -
From: Ken Jones [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 27, 2004 9:07 PM
Subject: Re: [vchkpw] unable to exec qq


On Monday 27 September 2004 04:22 pm, Itamar Reis Peixoto wrote:
 i am runnig qmail-smtp wiht this script and i am receiving a message

 unable to exec qq

 what´s the problem ?
env - PATH=/var/qmail/bin:/usr/local/bin:$PATH \
 QMAILQUEUE=/var/qmail/bin/simscan  \
 tcpserver -vHRD -l$HOSTNAME -x /home/vpopmail/etc/tcp.smtp.cdb \
 -c100 -w /var/run/smtpd.pid 0 25 rblsmtpd -b -r
 sbl-xbl.spamhaus.org \
 /var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw /bin/true
21

 | \

 /usr/local/bin/setuidgid qmaill \
 /usr/local/bin/multilog t n20 s100 /var/log/smtp 
 echo -n smtp 

tcpserver does not use the -w option unless you applied our pid-patch.

Ken



[vchkpw] Aliases issue with vpopmail+mysql

2004-09-28 Thread Laurent MONIN
Hi,

i just discover an annoying issue:

vadduser [EMAIL PROTECTED]
valias -i '[EMAIL PROTECTED]' [EMAIL PROTECTED]

A message addressed to [EMAIL PROTECTED] will cause a loop...

 
@4000415954f914af0564 info msg 32008: bytes 1002 from [EMAIL PROTECTED] qp 19552 
uid 89
@4000415954f9176bbc34 starting delivery 479: msg 32008 to local [EMAIL PROTECTED]
@4000415954f9189e0e2c delivery 479: deferral: [EMAIL PROTECTED]/mail_is_looping/

Message stays in queue until i remove the faulty(?) alias.

How can i get an alias 'a' for an account 'a-b' working ?
Is this related to dot-qmail extensions ? I tried to compile vpopmail
without --enable-qmail-ext - no change.

I use vpopmail+mysql (so aliases are in a mysql table).

Thanks for your help, 

-- 

Laurent MONIN
Systèmes  Réseaux
Metaconcept Sarl
http://www.metaconcept.com


[vchkpw] unable to exec qq

2004-09-28 Thread Itamar Reis Peixoto
I am installing qmail and receiving a message unable to exec qq

QMAILQUEUE=/var/qmail/bin/simscan  \ -  unable to exec qq

to fix this problem I am removed the lasted space of QMAILQUEUE variable


QMAILQUEUE=/var/qmail/bin/simscan \ -  works fine.



Itamar Reis Peixoto
Analista Consultor
TreyNet Consultoria - Uberlândia
Tel : + 55 34 3231 0598
Cel:  +55 38 9107 1250
http://www.treynet.com.br



[vchkpw] simscan

2004-09-28 Thread Itamar Reis Peixoto
I am testing simscan .

when i send a mail with a .pif attachment  i receive this message.

An unknown error has occurred. Subject 'Enviando email: enderecos', Account:
'mail', Server: '200.XXX.XXX.XXX', Protocol: SMTP, Server Response: '554
mail server permanently rejected message (#5.3.0)', Port: 25, Secure(SSL):
No, Server Error: 554, Error Number: 0x800CCC6F

how to change this message for this new message

 This message has been rejected because it has
a potentially executable attachment  a .pif file
This form of attachment has been used by
recent viruses or other malware.
If you meant to send this file then please
package it up as a zip file and resend it.


Itamar Reis Peixoto
Analista Consultor
TreyNet Consultoria - Uberlândia
Tel : + 55 34 3231 0598
Cel:  +55 38 9107 1250
http://www.treynet.com.br



[vchkpw] [Fwd: ezmlm warning]

2004-09-28 Thread Rainer Duffner
Hi,

I just got the following bounce from the list.

Can anyone explain what exactly this error-message might mean ?

I can't remember having head any outages back then.




Thanks,
Rainer
-- 
===
~ Rainer Duffner - [EMAIL PROTECTED] ~
~   Freising - Munich - Germany   ~
~Unix - Linux - BSD - OpenSource - Security   ~
~  http://www.ultra-secure.de/~rainer/pubkey.pgp  ~
===
---BeginMessage---
Hi! This is the ezmlm program. I'm managing the
[EMAIL PROTECTED] mailing list.

I'm working for my owner, who can be reached
at [EMAIL PROTECTED]


Messages to you from the vchkpw mailing list seem to
have been bouncing. I've attached a copy of the first bounce
message I received.

If this message bounces too, I will send you a probe. If the probe bounces,
I will remove your address from the vchkpw mailing list,
without further notice.


I've kept a list of which messages from the vchkpw mailing list have 
bounced from your address.

Here are the message numbers:

   28354
   28355
   28356
   28357
   28360
   28365
   28363
   28368
   28370
   28367

--- Enclosed is a copy of the bounce message I received.

Return-Path: 
Received: (qmail 29081 invoked for bounce); 16 Sep 2004 21:25:01 -
Date: 16 Sep 2004 21:25:01 -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: failure notice

Hi. This is the qmail-send program at mail.inter7.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

[EMAIL PROTECTED]:
62.146.20.26 does not like recipient.
Remote host said: 451 216008.107568.78.194.78TTL.94.98/1116.408/0.2
Giving up on 62.146.20.26.
I'm not going to try again; this message has been in the queue too long.

---End Message---


Re: [vchkpw] unable to exec qq

2004-09-28 Thread Itamar Reis Peixoto
result of ps


[EMAIL PROTECTED] control]# ps -ef | grep tcpserver | grep 25
vpopmail 14586 1  0 11:32 ?00:00:00
tcpserver -vHRD -lserver.mnet.co
m.br -c100 -w /var/run/qmail-smtpd.pid -u 89 -g 89 0 25 rblsmtpd -b -r
sbl-xbl.s
pamhaus.org /var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw /bin/true
[EMAIL PROTECTED] control]#
[EMAIL PROTECTED] control]#








Re: [vchkpw] CVS (5.5) version of vpopmail errors and missing files

2004-09-28 Thread Tom Collins
On Sep 27, 2004, at 9:11 PM, Remo Mattei wrote:
Hello guys I tried to install the version of the CVS but I notice a 
few things: 
I'm unsure of the stability of the CVS HEAD (5.5.x), but you should be 
able to pull from the stable-5_4 branch.

If you're interested in features from 5.5, then I'd recommend 
downloading one of the 5.5 releases from SourceForge or check in with 
Rick Widmer and Ken Jones who have done most of the coding for 5.5.

--
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] 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.




Re: [vchkpw] simscan

2004-09-28 Thread Jeremy Kitchen
On Tuesday 28 September 2004 09:04 am, Itamar Reis Peixoto wrote:
 I am testing simscan .

 when i send a mail with a .pif attachment  i receive this message.

 An unknown error has occurred. Subject 'Enviando email: enderecos',
 Account: 'mail', Server: '200.XXX.XXX.XXX', Protocol: SMTP, Server
 Response: '554 mail server permanently rejected message (#5.3.0)', Port:
 25, Secure(SSL): No, Server Error: 554, Error Number: 0x800CCC6F

 how to change this message for this new message
[snip]

qmail-smtpd's rejection message is based on the exit code of simscan.  
Therefore you can only have one, because simscan doesn't differentiate 
between different rejection types.  To change the message that is returned, 
you'll have to look at the qmail source code.

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l
kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail
   GnuPG Key ID: 481BF7E2 ++ scriptkitchen.com/kitchen.asc


pgpF7sFsqYrGC.pgp
Description: PGP signature


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

2004-09-28 Thread Rick Romero
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



Re: [vchkpw] CVS (5.5) version of vpopmail errors and missing files

2004-09-28 Thread Remo Mattei
It was the 5.4 branch not the 5.5 so you know
Remo

I'm unsure of the stability of the CVS HEAD (5.5.x), but you should be 
able to pull from the stable-5_4 branch.



Re: [vchkpw] unable to exec qq

2004-09-28 Thread Remo Mattei
I had similar problem it was the owner of the qmail-scanner on my case.

Remo
- Original Message - 
From: Itamar Reis Peixoto [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 28, 2004 9:00 AM
Subject: Re: [vchkpw] unable to exec qq


 result of ps


 [EMAIL PROTECTED] control]# ps -ef | grep tcpserver | grep 25
 vpopmail 14586 1  0 11:32 ?00:00:00
 tcpserver -vHRD -lserver.mnet.co
 m.br -c100 -w /var/run/qmail-smtpd.pid -u 89 -g 89 0 25 rblsmtpd -b -r
 sbl-xbl.s
 pamhaus.org /var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw /bin/true
 [EMAIL PROTECTED] control]#
 [EMAIL PROTECTED] control]#









Re: [vchkpw] CVS (5.5) version of vpopmail errors and missing files

2004-09-28 Thread Tom Collins
On Sep 28, 2004, at 8:35 AM, Remo Mattei wrote:
It was the 5.4 branch not the 5.5 so you know
Remo
I'm unsure of the stability of the CVS HEAD (5.5.x), but you should be
able to pull from the stable-5_4 branch.
--enable-spamassassin is only an option in 5.5.x, so if you have that 
option, you're not pulling from the stable-5_4 branch.

--
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] Re: TLS found no client cert in control/clientcert.pem

2004-09-28 Thread Jeremy Kitchen
Your mail client is not quoting at all.. this makes your email very very 
difficult to read as people who haven't read the prior messages have no idea 
what text is my question and what text is your response.  Please set your 
mail client up to quote messages (the usual way, as you can see by my email, 
and most other emails on this list, is to use  in front of each line of 
quoted text) or change mail clients.  As you are using Outlook Express, I 
believe it is in your best interests, and the best interests of the rest of 
the Internet world that you do not use Outlook Express, as it's about as 
secure as a lock with the combination engraved into the side.

That being said (and attempting to fix your quoting, or rather, your lack 
thereof):

On Monday 27 September 2004 11:50 pm, Paul Rennix wrote:
  1) are you interested in, or have any need to, support TLS for smtp?
 yes, but I can live without it if I have to.

  2) are you running your smtp server as the vpopmail:vchkpw user?
 yes.

  3) have you verified that the vpopmail user can indeed read the file?
  (hint: cd / ; setuidgid vpopmail cat /var/qmail/control/clientcert.pm )
 yes, it spits out the key.

  4) have you verified that the clientcert.pem file you have generated is
  the proper format that the SSL libraries are looking for?

 you lost me here : )

then that's probably your issue.  If I were you I would disable TLS until you 
can figure out how to generate your pem file.  The pem file it's looking for 
needs an unencrypted private key, and public key (from the same keypair, of 
course) in pem format.  Look in the openssl documentation and google for 
information on how to generate the proper keypair required for this.

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l
kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail
   GnuPG Key ID: 481BF7E2 ++ scriptkitchen.com/kitchen.asc


pgpNjf8BXvD2K.pgp
Description: PGP signature


[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!



Re: [vchkpw] Modifying accounts with PHP

2004-09-28 Thread Chris Ess
On Tue, 28 Sep 2004, a.h.s. boy wrote:

 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.

I used to have an issue with valias but that has been fixed in newer
versions of vpopmail.

If you use valias, adding and deleting aliases is as simple as
manipulating rows in the table.

As mentioned on this list at the beginning of the month, you can
essentially add users by adding a row to the table for your users (usually
vpopmail) with an empty home directory.  When an email is first delivered
or the account is checked via POP3 or IMAP, the directory field is
populated and the directory is set up.  (Emails from this thread are also
in the README.mysql file in vpopmail 5.4.7.)

There is unfortunately no like mechanism for deleting users as far as I
know.

Adding/deleting domains requires modifying qmail control files so these
would need to be done as root (unless you want to play ownership games
with said files).

There is work underway to create a vpopmail daemon that can parse requests
from PHP scripts or other sources and make the appropriate changes.  My
understanding is that the existing PHP vpopmail extension has been
obsoleted in favour of a new set that will use the daemon.

 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.

That would work.  I do something vaguely like that for deleting users
through my vpopmail admin module for squirrelmail already.  (Really what I
do is put the information for the deleted user into a separate table and
take the user out of the vpopmail table.  A perl script then handles
archiving/deleting the user data.)

Another method, advocated by some people, is to run a separate copy of
apache with the user vpopmail and group vchkpw.  I don't like this
solution at all.  (Which is why I ended up writing my own admin module.
Maybe my boss will let me distribute it.  I must remember to ask him...)
There's always suexec (and mod_phpsuexec) but I don't like that solution
much either.

Sincerely,


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


[vchkpw] simscan mailing list

2004-09-28 Thread Jeremy Kitchen
Due to popular demand, I have created a mailing list for simscan.  The address 
is [EMAIL PROTECTED] and you can subscribe by sending an email to 
[EMAIL PROTECTED]

On this list we can discuss development, issues with simscan, installation 
problems, etc :)

simscan is a qmail-queue wrapper package written by Ken Jones that is designed 
to work with clamav and spamassassin to do virus blocking and content 
filtering.  It is written in C so is a very fast and efficient scanning 
solution.  Also, its ease of installation gives users the ability to rapidly 
deploy virus blocking and content filtering on their qmail systems.

Please note that the software IS IN BETA, so you should make sure to 
thoroughly test it before putting it into a production environment.  We 
welcome any and all feedback, bug reports and feature suggestions, so please 
don't hesitate to send them our way.

Thanks and sorry for the big cross post :)

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l
kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail
   GnuPG Key ID: 481BF7E2 ++ scriptkitchen.com/kitchen.asc


pgpFzyU92WYzB.pgp
Description: PGP signature


Re: [vchkpw] Fw: [Courier-imap] chdir username: No such file or directory

2004-09-28 Thread Jeremy Kister
On Sun, 26 Sep 2004 22:31:49 +1000, Michael Bowe wrote:
 DEBUG_LOGIN=2. Then restart your courier-imap daemon. Then look in your
 /var/log/maillog. This is an example of an entry from my logs :
[...]
 Jeremy, how does this compare with your system?

I have slightly obfuscated the email address and password.

Connection, ip=[68.80.68.156]
LOGIN: DEBUG: ip=[68.80.68.156], command=LOGIN
LOGIN: DEBUG: ip=[68.80.68.156], [EMAIL PROTECTED]
LOGIN: DEBUG: ip=[68.80.68.156], password=blah
authvchkpw: starting client module
authvchkpw: [EMAIL PROTECTED], sysuserid=1010,
   sysgroupid=1010, homedir=jeremy,
   [EMAIL PROTECTED], fullname=null,
   maildir=null, quota=null, options=null
authvchkpw: clearpasswd=null, passwd=zfhdrFE4797Xs
password matches successfully
chdir jeremy: No such file or directory

 And the corresponding vuserinfo shows :

goofy ~vpopmail/bin/vuserinfo [EMAIL PROTECTED]
name:   jeremy
passwd: zfhdrFE4797Xs
clear passwd: blah
uid:1
gid:0
flags:  0
gecos: jeremy
limits: No user limits set.
dir:   /home/vpopmail/domains/jeremykister.com/jeremy
quota: 104857600S
usage: 5%
last auth: Tue Sep 28 15:18:05 2004
last auth ip: imap

--

Jeremy Kister
http://jeremy.kister.net/



[vchkpw] Sorry,_no_mailbox_here_by_that_name

2004-09-28 Thread kalin mintchev
hi all..

this is something very simple probably but can not figure it out.
i have vpopmail installed with qmail. it used to work a few weeks ago
without any problem and i have not (or any body else) modified any of the
files in the qmail/control directory.
when i send mail to the machine that has the qmail/vpopmail installed i
get Sorry,_no_mailbox_here_by_that_name in the maillog. i created a new
user under the same virtual domain using qmailadmin. no problems there.
everything under ~/vpopmail seems ok and under the qmail/controls too.
assign, vitualdomains, rcpthosts - they all have the correct entries.

but is till get Sorry,_no_mailbox_here_by_that_name .
what am i missing? where else should i look?

thanks..

-- 


Re: [vchkpw] Sorry,_no_mailbox_here_by_that_name

2004-09-28 Thread kalin mintchev

 hi all..

i must mention that apparently the problem is in the domain setup somewhere.
i just added a new domain for tetsing and it works fine. i compared both
set ups and i can't see any differences. help please..

thanks..


 this is something very simple probably but can not figure it out.
 i have vpopmail installed with qmail. it used to work a few weeks ago
 without any problem and i have not (or any body else) modified any of the
 files in the qmail/control directory.
 when i send mail to the machine that has the qmail/vpopmail installed i
 get Sorry,_no_mailbox_here_by_that_name in the maillog. i created a new
 user under the same virtual domain using qmailadmin. no problems there.
 everything under ~/vpopmail seems ok and under the qmail/controls too.
 assign, vitualdomains, rcpthosts - they all have the correct entries.

 but is till get Sorry,_no_mailbox_here_by_that_name .
 what am i missing? where else should i look?

 thanks..

 --



-- 


Re: [vchkpw] Sorry,_no_mailbox_here_by_that_name

2004-09-28 Thread Jeremy Kitchen
On Tuesday 28 September 2004 10:30 pm, kalin mintchev wrote:
  On Tuesday 28 September 2004 09:43 pm, kalin mintchev wrote:
   but is till get Sorry,_no_mailbox_here_by_that_name .
   what am i missing? where else should i look?
 
  the domain in question is probably in the locals file, or the locals file
  doesn't exist and it's in the me file.

 it's not in locals. i did check..  i tared and moved the maildir and
 deleted the account and created a new one - the same - with qmailadmin.
 same result. Sorry,_no_mailbox_here_by_that_name
 did new - test - domain that one works fine...

show us the full, unedited output of qmail-showctl, the contents 
of /var/qmail/users/assign, and tell us what domain you're having issues 
with.

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l
kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail
   GnuPG Key ID: 481BF7E2 ++ scriptkitchen.com/kitchen.asc


Re: [vchkpw] Sorry,_no_mailbox_here_by_that_name

2004-09-28 Thread kalin mintchev
did the domain again (it had only 2 users). now it's working.
thanks..


 On Tuesday 28 September 2004 09:43 pm, kalin mintchev wrote:
  but is till get Sorry,_no_mailbox_here_by_that_name .
  what am i missing? where else should i look?

 the domain in question is probably in the locals file, or the locals
 file
 doesn't exist and it's in the me file.

 it's not in locals. i did check..  i tared and moved the maildir and
 deleted the account and created a new one - the same - with qmailadmin.
 same result. Sorry,_no_mailbox_here_by_that_name
 did new - test - domain that one works fine...


 -Jeremy

 thanks for the reply...



 --
 Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies,
 Inc.
   [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465
 int'l
 kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail
GnuPG Key ID: 481BF7E2 ++ scriptkitchen.com/kitchen.asc



 --



-- 


Re: [vchkpw] Sorry,_no_mailbox_here_by_that_name

2004-09-28 Thread Jeremy Kitchen
On Tuesday 28 September 2004 10:42 pm, kalin mintchev wrote:
 did the domain again (it had only 2 users). now it's working.
 thanks..

my guess is that your .qmail-default file was missing, but I guess we'll never 
know.

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l
kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail
   GnuPG Key ID: 481BF7E2 ++ scriptkitchen.com/kitchen.asc