[vchkpw] Qmail returns relay denied for non vpopmail virtual domain

2005-09-19 Thread Nick Gilbert
Hi,

I built a Qmail box following Bill Schupp's instructions on the web. For
various reasons I then needed to add a normal qmail domain for a
normal local shell account (ie, not via vpopmail).

For some reason, if I try and send mail to this domain, I get a 500
relay denied error, even though the domain has been added to rcpthosts
and virtualdomains.

Why is this? Do real qmail domains no longer work on a box which has
vpopmail installed? How can I get this to work? I'm about 90% sure this
WAS working at one stage, but then I moved the domain to another box and
now it isn't working when I try and move it back.

Any help would be greatly appreciated as I'm off on holiday at the end
of the week and really need to get this sorted before I go!

Thanks,

Nick...




Re: [vchkpw] Qmail returns relay denied for non vpopmail virtual domain

2005-09-19 Thread Michael Bowe
- Original Message - 
From: Nick Gilbert [EMAIL PROTECTED]




I built a Qmail box following Bill Schupp's instructions on the web. For
various reasons I then needed to add a normal qmail domain for a
normal local shell account (ie, not via vpopmail).

For some reason, if I try and send mail to this domain, I get a 500
relay denied error, even though the domain has been added to rcpthosts
and virtualdomains.


Perhaps you need to recompile vpopmail with the --enable-passwd configure 
option ?


Michael.



Re: [vchkpw] Qmail returns relay denied for non vpopmail virtual domain

2005-09-19 Thread Nick Gilbert
 Perhaps you need to recompile vpopmail with the --enable-passwd
 configure option ?
 
 Michael.

I've just tried that and it doesn't seem to have made a difference. I
still get 550 relay not permitted.

:(

Nick...




Re: [vchkpw] Qmail returns relay denied for non vpopmail virtual domain

2005-09-19 Thread Michael Bowe


- Original Message - 
From: Nick Gilbert [EMAIL PROTECTED]



For some reason, if I try and send mail to this domain, I get a 500
relay denied error, even though the domain has been added to rcpthosts
and virtualdomains.


Oh Yeah

Shouldnt it be 
rcpthosts and locals


Not 
rcpthosts and virtualdomains


Michael.



Re: [vchkpw] Qmail returns relay denied for non vpopmail virtual domain

2005-09-19 Thread Nick Gilbert
 Shouldnt it be rcpthosts and locals
 
 Not rcpthosts and virtualdomains

What are locals?

Previously I've just added the domain to rcpthosts and added an entry
like domain.com:nick-domaincom to virtualdomains. Then in my home
directory /home/nick, I create a .qmail-domaincom-default and then I
start getting mail.. For some reason that's not working on this box.

Nick...




Re: [vchkpw] Qmail returns relay denied for non vpopmail virtual domain RESOLVED

2005-09-19 Thread Nick Gilbert
Fixed!

I have no idea why, but somehow Exim had jumped on to my box. I
certainly haven't installed manually but perhaps something had it as a
dependancy when I installed something else or maybe did a yum update.

Anyway - now that I've uninstalled Exim, everything is working OK. No
wonder my qmail config files didn't seem to be working!

Nick...




Re: [vchkpw] Help! /var/qmail removed

2005-09-19 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jan-Willem Regeer wrote:
 
 On Aug 8, 2005, at 4:52 PM, Matt Brookings wrote:
 
 Rick Macdougall wrote:
 | Matt Brookings wrote:
 | |
 | | #!/bin/sh
 | | #
 | | # 06/21/05
 | | # [EMAIL PROTECTED]
 | | #
 | | # Using vpopmail/domains directory, and locals file,
 | | # generate rcpthosts, virtualdomains, and users/assign
 | | #
 | |
 | | rm -f assign rcpthosts virtualdomains
 | |
 | | cat /var/qmail/control/locals  rcpthosts
 | |
 | | for i in *; do
 | | ~if [ ! -d $i ]; then
 | | ~continue;
 | | ~fi
 | |
 | | ~echo +$i-:$i:89:89:/home/vpopmail/domains/$i:-:: 
 assign
 | | ~echo $i  rcpthosts
 | | ~echo $i:$i  virtualdomains
 | | done
 | |
 | | echo .  assign

I just wanted to follow this posting up with a script that handles
hashed domains directories.  It's a little longer the previous one,
and may be a little fishy on older bash shells, but it should work
on any newer systems.  If you use it, let me know how it goes,
or any changes you feel should be made.

As the comment says at the top, you must name this script gen-hashed.sh
since it calls itself for recursion through the hashed directories,
and the script should be copied to ~vpopmail/domains and executed there.

Again, let me know how it goes!

#!/bin/sh
#
# Generate control files from hashed
# vpopmail domain tree.  Should be run
# from ~vpopmail/domains directory,
# and script should be named gen-hashed.sh
#
# [EMAIL PROTECTED]
#

SUB=

rm -f users.assign control.rcpthosts control.virtualdomains

if [ $# -eq 1 ]; then
CPWD=$PWD
SUB=$1/
cd $1
fi

for i in *; do
if [ ! -d $i ]; then
continue
fi

if [ ${#i} -eq 1 ]; then
~vpopmail/domains/gen-hashed.sh $i
continue
fi


if [ $CPWD !=  ]; then
CPWD=${CPWD}/
fi

echo +$i-:$i:89:89:$PWD/$i:-::  ${CPWD}users.assign
echo $i:$i  ${CPWD}control.virtualdomains
echo $i  ${CPWD}control.rcpthosts
done

if [ $SUB !=  ]; then
cd $CPWD
fi

if [ $# -eq 0 ]; then
echo .  ${CPWD}users.assign
fi

- --
/*
Matt Brookings [EMAIL PROTECTED]   GnuPG Key B7B54216
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFDLv4zhzYRRre1QhYRAiRFAJ4nah4+RVzvG9bWJGOLaBD4aj580gCeNtTV
k5cgtP2DJL5DE8+uJaZWmvc=
=Uis0
-END PGP SIGNATURE-


Re: [vchkpw] Help! /var/qmail removed

2005-09-19 Thread John Simpson

On 2005-09-19, at 1406, Matt Brookings wrote:


I just wanted to follow this posting up with a script that handles
hashed domains directories.  It's a little longer the previous one,
and may be a little fishy on older bash shells, but it should work
on any newer systems.  If you use it, let me know how it goes,
or any changes you feel should be made.

As the comment says at the top, you must name this script gen- 
hashed.sh

since it calls itself for recursion through the hashed directories,
and the script should be copied to ~vpopmail/domains and executed  
there.


is there a reason you couldn't have it recursively run itself using  
$0 instead of forcing a fixed name? does it not work this way, or  
is this a testing version and not meant to be a finished product yet?


also, you're hard-coding the numeric uid/gid for the vpopmail user...  
you can do this at the beginning with


VU=`id -u vpopmail`
VG=`id -g vpopmail`

then use ${VU} and ${VG} instead of 89 when generating the assign file.

i've found it dangerous to make too many assumptions about how and  
where a program is run... i have a queue repair script, and early  
versions made the assumption that the bucket count was 23- somebody  
with a different bucket count ran it on their queue without reading  
the directions, and ended up causing more damage instead of fixing  
anything. i ended up having it call qmail-showctl | grep split: to  
use the correct count now...


i've run into the same thing with qmailadmin and vqadmin, and even  
went so far as to write a patch for vqadmin (which has been ignored  
by inter7 for two years- maybe mentioning it again here will make  
somebody look at it? visit http://qmail.jms1.net/ and search for  
vqadmin to see the patch.)


--
| John M. Simpson - KG4ZOW - Programmer At Large |
| http://www.jms1.net/   [EMAIL PROTECTED] |
--
| Mac OS X proves that it's easier to make UNIX  |
| pretty than it is to make Windows secure.  |
--




PGP.sig
Description: This is a digitally signed message part