[vchkpw] Help in chkuser

2004-01-23 Thread Mario Junior

Hello,

I've setup a qmail+vpopmail-3.2.20+mysql with 3 virtual domains. So I applied 
only the shupp and chk.user.mysql patches from the toaster page;

 I 've already read in this list that if a domain is in control/virtualdomains 
the patch will not check the recipient and will try to deliver  the message 
locally. So I setup one of that domains (abc.com) at another machine with the 
same users.

Then I removed the domain abc.com from virtualdomains (now it lives only in 
rcpthosts) and wrote a line in control/smtproutes : 
abc.com.br:mail.abc.com:25 where mail.abc.com is a IP in that another 
machine.

But when I send a email to a non-existent email like [EMAIL PROTECTED] I receive 
only a bounce message  from mail.abc.com , nothing from chk-user patch. 
What's wrong?



-- 

   Mário Viana Barbosa
---
  Network Admin
  SecrelNet ISP - Brazil




[vchkpw] courier 2 binc

2004-01-23 Thread Raboo Treed
I've made a small script that will copy the courier imap subscribed 
folders list to binc-style...
I actually made this for qmail+vpopmail+imap...
I don't know how other MTA's work, but this script should work for 
vpopmail+qmail users.

So here you go.
http://qmail.nu/files/courier-2-binc.sh



Re: [vchkpw] Help in chkuser

2004-01-23 Thread tonix (Antonio Nati)
How are you running qmail-smtpd?

Is bouncing enabled?

Ciao,

Tonino

At 23/01/2004 23/01/2004 -0200, Mario Junior wrote:

Hello,

I've setup a qmail+vpopmail-3.2.20+mysql with 3 virtual domains. So I applied
only the shupp and chk.user.mysql patches from the toaster page;
 I 've already read in this list that if a domain is in 
control/virtualdomains
the patch will not check the recipient and will try to deliver  the message
locally. So I setup one of that domains (abc.com) at another machine with the
same users.

Then I removed the domain abc.com from virtualdomains (now it lives only in
rcpthosts) and wrote a line in control/smtproutes :
abc.com.br:mail.abc.com:25 where mail.abc.com is a IP in that another
machine.
But when I send a email to a non-existent email like [EMAIL PROTECTED] I receive
only a bounce message  from mail.abc.com , nothing from chk-user patch.
What's wrong?


--

   Mário Viana Barbosa
---
  Network Admin
  SecrelNet ISP - Brazil

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



[vchkpw] Unable to ch to dir

2004-01-23 Thread patrick . liechty








I am running Qmail with Vpopmail and Courier-Imap. It has been working for a while now, but
recently Qmail is reporting errors like this:



Jan 23 14:04:45 cssimsp0
qmail: [ID 748625 mail.info] 1074884685.189906 delivery 12: deferral: U

nable_to_chdir_to_maildir._(#4.2.1)/





I am unable to receive email through Qmail. I have the latest version of Qmail and
VPopmail. I checked the Qmail config
files and they seem to be setup right to deliver mail to the /opt/vpopmail/domains/domain
dir.



Patrick Liechty 
Aurum Technology

Ebusiness Team 
801-796-3868 











Notice:  The information contained in this message may be privileged, confidential, and protected from disclosure.  If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited.  If you have received this communication in error, please notify us immediately by replying to this message, and then delete it from your computer.  All e-mail sent to this address will be received by the Aurum Technology corporate e-mail system and is subject to archiving and review by someone other than the recipient. 




Re: [vchkpw] Unable to ch to dir

2004-01-23 Thread Jeremy Kitchen
On Fri, 2004-01-23 at 13:07, [EMAIL PROTECTED] wrote:
 I am running Qmail with Vpopmail and Courier-Imap.  It has been
 working for a while now, but recently Qmail is reporting errors like
 this:
 
  
 
 Jan 23 14:04:45 cssimsp0 qmail: [ID 748625 mail.info]
 1074884685.189906 delivery 12: deferral: U
 
 nable_to_chdir_to_maildir._(#4.2.1)/

that error is coming from qmail, not vpopmail, which means you have
specified a maildir delivery in your .qmail file, or it is using the
default delivery which is going to a maildir.

perhaps your domain is in locals as well as virtualdomains?

if that's not true, please give the full, unedited output of
qmail-showctl as well as the contents of any .qmail file you think
should be handling this email.

-Jeremy

-- 
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE



Re: [vchkpw] Help in chkuser

2004-01-23 Thread Mario Junior
Em Friday 23 January 2004 13:53, tonix (Antonio Nati) escreveu:

Hello Tonix,

 How are you running qmail-smtpd?


I 've setuid it already according to your site :

chown qmaild:nofiles qmail-smtpd
chmod 6555 qmail-smtpd

xxx:/var/qmail/bin # ls -la /var/qmail/bin/qmail-smtpd
-r-sr-sr-x1 qmaild   nofiles226508 Jan 22 13:42 /var/qmail/bin/
qmail-smtpd

My initialization script is :

xxx:/ # cat /var/qmail/rc.smtp
#!/bin/sh

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


  #LWQ-Like

  QMAILDUID=`id -u qmaild`
  NOFILESGID=`id -g qmaild`

  # PATH=/var/qmail/bin:/usr/local/bin \
  /usr/local/bin/softlimit -m 500 \
  /usr/local/bin/tcpserver -v -R -p -x /etc/tcp.smtp.cdb -c120 \
  -u $QMAILDUID -g $NOFILESGID 0 smtp \
  /usr/local/bin/rblsmtpd -r blackholes.mail-abuse.org \
  /var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw /bin/true 21 | \
  /usr/local/bin/setuidgid qmaill \
  /usr/local/bin/multilog t n2 s1000 /var/log/qmail-smtpd


 Is bouncing enabled?

xxx:/home/vpopmail/domains/abc.com # cat .qmail-default
| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

Should I remove .qmail-default?


-- 

   Mário Viana Barbosa
---
  Network Admin
  SecrelNet ISP - Brazil




Re: [vchkpw] Help in chkuser

2004-01-23 Thread Mario Junior
Em Friday 23 January 2004 16:26, Mario Junior escreveu:

Tonix,

I've already tried to modify

   QMAILDUID=`id -u qmaild`
   NOFILESGID=`id -g qmaild`


QMAILUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`

The same happens.

I also removed qmail-default but it also didn't work.


-- 

   Mário Viana Barbosa
---
  Network Admin
  SecrelNet ISP - Brazil




RE: [vchkpw] Unable to ch to dir

2004-01-23 Thread patrick . liechty
Title: RE: [vchkpw] Unable to ch to dir





The domain name is in the locals file. I removed it. That didn't help.


This is the contents of my .qmail-default in /opt/vpopmail/domains/aurum-email.net:


| /opt/vpopmail/bin/vdelivermail '' /opt/vpopmail/domains/aurum-email.net/postmaster



Here is the output of qmail-showctl:


bash-2.05# /var/qmail/bin/qmail-showctl
qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 120.
subdirectory split: 23.
user ids: 108, 109, 110, 0, 111, 112, 113, 114.
group ids: 102, 103.


badmailfrom: (Default.) Any MAIL FROM is allowed.


bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.


bouncehost: (Default.) Bounce host name is aurum-email.net.


concurrencylocal: (Default.) Local concurrency is 10.


concurrencyremote: (Default.) Remote concurrency is 20.


databytes: (Default.) SMTP DATA limit is 0 bytes.


defaultdomain: Default domain name is aurum-email.net.


defaulthost: (Default.) Default host name is aurum-email.net.


doublebouncehost: (Default.) 2B recipient host: aurum-email.net.


doublebounceto: (Default.) 2B recipient user: postmaster.


envnoathost: (Default.) Presumed domain name is aurum-email.net.


helohost: (Default.) SMTP client HELO host name is aurum-email.net.


idhost: (Default.) Message-ID host name is aurum-email.net.


localiphost: (Default.) Local IP address becomes aurum-email.net.


locals:
Messages for inet.aurum-email.com are delivered locally.
Messages for inet.aurum-email.org are delivered locally.
Messages for aurum-email.com are delivered locally.
Messages for aurum-email.org are delivered locally.


me: My name is aurum-email.net.


percenthack: (Default.) The percent hack is not allowed.


plusdomain: Plus domain name is aurum-email.net.


qmqpservers: (Default.) No QMQP servers.


queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds.


rcpthosts: (Default.) SMTP clients may send messages to any recipient.


morercpthosts: (Default.) No rcpthosts; morercpthosts is irrelevant.


morercpthosts.cdb: (Default.) No effect.


smtpgreeting: (Default.) SMTP greeting: 220 aurum-email.net.


smtproutes:
SMTP route: :mx2.inet.aurumtechnology.net


timeoutconnect: (Default.) SMTP client connection timeout is 60 seconds.


timeoutremote: (Default.) SMTP client data timeout is 1200 seconds.


timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds.


virtualdomains:
Virtual domain: aurumtechnology.org:aurumtechnology.org
Virtual domain: aurum-email.net:aurum-email.net


rcpthosts.lock: I have no idea what this file does.


virtualdomains.lock: I have no idea what this file does.


locals.lock: I have no idea what this file does.


rcpthosts.orig: I have no idea what this file does.



-Original Message-
From: Jeremy Kitchen [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 23, 2004 1:21 PM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] Unable to ch to dir


On Fri, 2004-01-23 at 13:07, [EMAIL PROTECTED] wrote:
 I am running Qmail with Vpopmail and Courier-Imap. It has been
 working for a while now, but recently Qmail is reporting errors like
 this:
 
 
 
 Jan 23 14:04:45 cssimsp0 qmail: [ID 748625 mail.info]
 1074884685.189906 delivery 12: deferral: U
 
 nable_to_chdir_to_maildir._(#4.2.1)/


that error is coming from qmail, not vpopmail, which means you have
specified a maildir delivery in your .qmail file, or it is using the
default delivery which is going to a maildir.


perhaps your domain is in locals as well as virtualdomains?


if that's not true, please give the full, unedited output of
qmail-showctl as well as the contents of any .qmail file you think
should be handling this email.


-Jeremy


-- 
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE



Notice: The information contained in this message may be privileged, confidential, and protected from disclosure. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to this message, and then delete it from your computer. All e-mail sent to this address will be received by the Aurum Technology corporate e-mail system and is subject to archiving and review by someone other than the recipient. 





RE: [vchkpw] Unable to ch to dir

2004-01-23 Thread Jeremy Kitchen
please keep list posts on the list.  Please do not top post.  I've fixed
your broken quoting.

On Fri, 2004-01-23 at 16:49, [EMAIL PROTECTED] wrote:
   The domain name is in the locals file.  I removed it.  That didn't
   help.

  did you HUP or restart qmail-send after you did that?

 Yes.  You can see in the qmail-showctl that aurum-email.net is not in
 the locals.

correct, it's not in locals, but does qmail-send know that?  Again I
ask, did you HUP or restart qmail-send after you removed the domain from
the locals file?

 Does vpopmail create .qmail-user files in the
 /opt/vpopmail/domains/domain directory?

if that's what the ./configure script for vpopmail determined was where
the domains directory was supposed to be (or if that's where you told it
to be)

 Or better said, does Qmail Admin create .qmail-user files in the
 /opt/vpopmail/domains/domain dir?

qmailadmin uses vpopmail calls.  So as long as you have compiled
qmailadmin since the last time you recompiled vpopmail, they go to the
same place.  However, most of vpopmail's handling of email is from the
.qmail-default file, it does not create seperate .qmail files for each
user when you do vadduser.

 I noticed in .qmail-default that vpopmail is called.

vdelivermail, yes.

 It appears to me that vpopmail handles the delivery of the mail.  Is
 that true?

vdelivermail, yes.  Which is why I said 'that error is coming from
qmail, not vpopmail' (see the first reply of mine in this thread)

 I am using the Maildir format.

vpopmail only uses maildir, so that's not useful information.

-Jeremy

-- 
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE



Re: [vchkpw] moving servers

2004-01-23 Thread Rick Macdougall


Jon Reynolds wrote:

I am moving from one server to a new and was wondering what I need to do
to move my users from the old server to the new. I am thinking I need to
move the /etc/passwd,/etc/master.passwd and /etc/group then move the
domain directory in /home/vpopmail/domains/domain.
Would that work and do I need to make sure that all the uid's and gid's
match for spamassassin, clamav and the others?
Hi,

Basically, and the contents of /var/qmail/users and /var/qmail/control, 
the rcpthosts, morercpthosts and virtualdomains file.

Regards,

Rick



RE: [vchkpw] Unable to ch to dir

2004-01-23 Thread patrick . liechty
Title: RE: [vchkpw] Unable to ch to dir





Yes, I did a HUP after I removed the domain from the locals file.


To understand the deliver process better I have a few questions. Qmail receives an email for delivery. It finds the domain in the virtualdomains file. It looks in the assigns file and sees that the mail needs to be delivered to the /opt/vpopmail/domains/aurum-email.net (in my case) directory. My assigns file is as so:

+aurum-email.net-:aurum-email.net:89:89:/opt/vpopmail/domains/aurum-email.net:-::


So it looks in /opt/vpopmail/domains/aurum-email.net for the .qmail-default file to proceed with delivery. The .qmail-default has the following:

| /opt/vpopmail/bin/vdelivermail '' /opt/vpopmail/domains/aurum-email.net/postmaster


So Qmail runs vdelivermail to deliver the email. It knows where the user's maildir is and puts the email there.


So in my case, Qmail must not have the proper setup to get to my /opt/vpopmail/domains/aurum-email.net directory to call vdelivermail to deliver the email. Thus the error in the log unable_to_ch_to_dir.

I have given my config info. Any ideas where the missing link is in this chain?


-Original Message-
From: Jeremy Kitchen [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 23, 2004 5:45 PM
To: [EMAIL PROTECTED]
Subject: RE: [vchkpw] Unable to ch to dir


please keep list posts on the list. Please do not top post. I've fixed
your broken quoting.


On Fri, 2004-01-23 at 16:49, [EMAIL PROTECTED] wrote:
   The domain name is in the locals file. I removed it. That didn't
   help.


  did you HUP or restart qmail-send after you did that?


 Yes. You can see in the qmail-showctl that aurum-email.net is not in
 the locals.


correct, it's not in locals, but does qmail-send know that? Again I
ask, did you HUP or restart qmail-send after you removed the domain from
the locals file?


 Does vpopmail create .qmail-user files in the
 /opt/vpopmail/domains/domain directory?


if that's what the ./configure script for vpopmail determined was where
the domains directory was supposed to be (or if that's where you told it
to be)


 Or better said, does Qmail Admin create .qmail-user files in the
 /opt/vpopmail/domains/domain dir?


qmailadmin uses vpopmail calls. So as long as you have compiled
qmailadmin since the last time you recompiled vpopmail, they go to the
same place. However, most of vpopmail's handling of email is from the
.qmail-default file, it does not create seperate .qmail files for each
user when you do vadduser.


 I noticed in .qmail-default that vpopmail is called.


vdelivermail, yes.


 It appears to me that vpopmail handles the delivery of the mail. Is
 that true?


vdelivermail, yes. Which is why I said 'that error is coming from
qmail, not vpopmail' (see the first reply of mine in this thread)


 I am using the Maildir format.


vpopmail only uses maildir, so that's not useful information.


-Jeremy


-- 
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE



Notice: The information contained in this message may be privileged, confidential, and protected from disclosure. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to this message, and then delete it from your computer. All e-mail sent to this address will be received by the Aurum Technology corporate e-mail system and is subject to archiving and review by someone other than the recipient. 





[vchkpw] domain user scripts

2004-01-23 Thread Jason Parker
FYI -

Here are two scripts (further below) I wrote as an alternative to 
moving domains and users.

vmakeadddomains will read your domains and create a script to recreate 
those domains to another working system. Pretty simple. It doesn't 
attempt to move any domain settings.

vmakeaddusers will read all users and create a script to recreate those 
users for each domain.
It only works with clear passwd set on.
It recreates the user, quota, comment and passwd. All other items are 
left behind.
It doesn't move postmaster, assuming that creating the domain creates 
postmaster.

For both scripts remember to chmod 755... on them and then their 
outputs (I decided this was a good pause for the admin to consider what 
they were going to do :-)

I did this because I'm moving a small setup to a new os install and 
from MySQL to Postgres. I wanted a backup of what I had and an 
alternative for the bit clunky vconvert shuffle in case of trouble ...

-jason

vmakeadddomains  
#!/bin/bash
#
vpath=/var/qmail/vpopmail
domains=`$vpath/bin/vdominfo`
domains=`echo ${domains} | grep domain:`
domains=`echo ${domains} | sed s/^domain://`
echo Domains found:
echo ${domains}
echo Creating vadddomains file ...
thecode=#!/bin/bash
# recreates vpopmail domains
# edit to suit

for dom in $domains
do
thecode=${thecode}
echo \Adding domain: $dom ...\
${vpath}/bin/vadddomain -u vpopmail ${dom} 
done
echo -e ${thecode}  vadddomains

echo 
cat vadddomains
echo 
echo Copy the vadddomains file to the new installation.
echo Edit it to suit the new installation.
echo chmod 755 vadddomains before running.
# end
vmakeaddusers-
#!/bin/bash
# Works only with clear passwds enabled
vpath=/var/qmail/vpopmail
domains=`$vpath/bin/vdominfo`
domains=`echo ${domains} | grep domain:`
domains=`echo ${domains} | sed s/^domain://`
echo Domains found:
echo ${domains}
headcode=#!/bin/bash
# recreates vpopmail user for a given domain
# edit to suit

for dom in $domains
do
echo Creating vaddusers.${dom} file ...
thecode=${headcode}
# do the users for the domain
users=`$vpath/bin/vuserinfo -n -D $dom`
for user in $users
 do
if [ ${user} = postmaster ] ; then
   continue
fi
quota=`$vpath/bin/vuserinfo -q [EMAIL PROTECTED]
if [ -n ${quota} ] ; then
   quota=-q ${quota}
fi
comment=`$vpath/bin/vuserinfo -c [EMAIL PROTECTED]
comment=`echo $comment | sed s/^ *//` # in case it has all spaces
if [ -n ${comment} ] ; then
   comment=-c ${comment}
fi
passwd=`$vpath/bin/vuserinfo -C [EMAIL PROTECTED]
thecode=${thecode}
echo \Adding user: $user ...\
$vpath/bin/vadduser ${quota} ${comment} [EMAIL PROTECTED] ${passwd}
 done
echo -e ${thecode}  vaddusers.${dom}
done
echo 
echo Copy the vaddusers.domain files to the new installation.
echo Edit each to suit the new installation.
echo chmod 755 on each before running.
#end


Re: [vchkpw] domain user scripts

2004-01-23 Thread Jeremy Kitchen
On Fri, 2004-01-23 at 19:41, Jason Parker wrote:
 FYI -
[snip]

so what's wrong with rsync?

-Jeremy

-- 
Jeremy Kitchen [EMAIL PROTECTED]