[vchkpw] SMTP Perms

2002-12-20 Thread Rob G
I know I sent an email yesterday but I am going to compile both into one
email and hopefully someone will be able to help me because I am so close to
getting my mail server up and running I can taste it.

I got my problem with Qmail not sending email to the proper mailbox fixed.
When I configured Qmail I followed the Life With Qmail installation
instructions to the word.  What I forgot when telling qmail where to deliver
the mail was I used ./Maildir instead of ./Maildir/,  when I changed this
mail started delivering with no problems. :)  My bad

Now I can receive mail with no problems, but when trying to send mail I get
the error that the email address is not in my rcpthosts.  I belive this has
to do with the authentication module for Qmail.

I see that /var/vpopmail/etc/open-smtp is writing IP addresses to the file
to allow me to send mail through the server. But Qmail is not reading this
file.

My qmail-smtpd run script is as follows:

#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
if [ -z $QMAILDUID -o -z $NOFILESGID -o -z $MAXSMTPD -o -z $LOCAL ];
then
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi
exec /usr/local/bin/softlimit -m 200 \
/usr/local/bin/tcpserver -v -R -l $LOCAL -x /etc/tcp.smtp.cdb -c
$MAXSMTPD \
-u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd
21

And I can say that my open-smtp file is not being erased by the cron job
that I setup.  I am not sure if this file is supposed to be cleared or not.

If anyone has any ideas I would greatly appreciate them as I said I am so
close that I can taste the mail server :)

I would really not like to have to recompile the qmail program with a patch
but I will if I have to if there is an easy script that will integrate with
my current system.

Regards,
Rob G





Re: [vchkpw] SMTP Perms

2002-12-20 Thread Rick Macdougall
Hi,

If you look on the command line for qmail-smtpd, you'll notice that you are
reading /etc/tcp.cdb and not /var/vpopmail/etc/tcp.cdb

Regards,

Rick


- Original Message -
From: Rob G [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, December 20, 2002 7:56 AM
Subject: [vchkpw] SMTP Perms


I know I sent an email yesterday but I am going to compile both into one
email and hopefully someone will be able to help me because I am so close to
getting my mail server up and running I can taste it.

I got my problem with Qmail not sending email to the proper mailbox fixed.
When I configured Qmail I followed the Life With Qmail installation
instructions to the word.  What I forgot when telling qmail where to deliver
the mail was I used ./Maildir instead of ./Maildir/,  when I changed this
mail started delivering with no problems. :)  My bad

Now I can receive mail with no problems, but when trying to send mail I get
the error that the email address is not in my rcpthosts.  I belive this has
to do with the authentication module for Qmail.

I see that /var/vpopmail/etc/open-smtp is writing IP addresses to the file
to allow me to send mail through the server. But Qmail is not reading this
file.

My qmail-smtpd run script is as follows:

#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
if [ -z $QMAILDUID -o -z $NOFILESGID -o -z $MAXSMTPD -o -z $LOCAL ];
then
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi
exec /usr/local/bin/softlimit -m 200 \
/usr/local/bin/tcpserver -v -R -l $LOCAL -x /etc/tcp.smtp.cdb -c
$MAXSMTPD \
-u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd
21

And I can say that my open-smtp file is not being erased by the cron job
that I setup.  I am not sure if this file is supposed to be cleared or not.

If anyone has any ideas I would greatly appreciate them as I said I am so
close that I can taste the mail server :)

I would really not like to have to recompile the qmail program with a patch
but I will if I have to if there is an easy script that will integrate with
my current system.

Regards,
Rob G







Re: [vchkpw] SMTP Perms

2002-12-20 Thread Rob G
H that is a good one as I set up vpopmail following the instructions
word for word.  It does appear that the /etc/tcp.smtp.cdb does have the IP
addresses of the system in it .. I opened the cdb file in vim and could see
the two IP addresses that I have POP'd in with.

I may have to go another route as I am not sure about the relaying as the IP
addresses are not being cleared from the tcp.smtp.db file or the open-smtp
file.  I would like to just use SMTP authentication instead of POP before
SMTP.

Regards,
Rob G

- Original Message -
From: Rick Macdougall [EMAIL PROTECTED]
To: Rob G [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, December 20, 2002 9:09 AM
Subject: Re: [vchkpw] SMTP Perms


Hi,

In my directory I have both a tcp.smtp and a tcp.smtp.cdb, you would want to
point it to the tcp.smtp.cdb if you can figure out why it is not creating
it.

Regards,

Rick

- Original Message -
From: Rob G [EMAIL PROTECTED]
To: Rick Macdougall [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, December 20, 2002 9:07 AM
Subject: Re: [vchkpw] SMTP Perms


In that directory there is no tcp.cdb  the only files in that directory are:

inc_deps  lib_deps  open-smtp  open-smtp.lock  tcp.smtp

Do I need to point it to the tcp.smtp file?

Regards,
Rob G

- Original Message -
From: Rick Macdougall [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, December 20, 2002 8:39 AM
Subject: Re: [vchkpw] SMTP Perms


Hi,

If you look on the command line for qmail-smtpd, you'll notice that you are
reading /etc/tcp.cdb and not /var/vpopmail/etc/tcp.cdb

Regards,

Rick


- Original Message -
From: Rob G [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, December 20, 2002 7:56 AM
Subject: [vchkpw] SMTP Perms


I know I sent an email yesterday but I am going to compile both into one
email and hopefully someone will be able to help me because I am so close to
getting my mail server up and running I can taste it.

I got my problem with Qmail not sending email to the proper mailbox fixed.
When I configured Qmail I followed the Life With Qmail installation
instructions to the word.  What I forgot when telling qmail where to deliver
the mail was I used ./Maildir instead of ./Maildir/,  when I changed this
mail started delivering with no problems. :)  My bad

Now I can receive mail with no problems, but when trying to send mail I get
the error that the email address is not in my rcpthosts.  I belive this has
to do with the authentication module for Qmail.

I see that /var/vpopmail/etc/open-smtp is writing IP addresses to the file
to allow me to send mail through the server. But Qmail is not reading this
file.

My qmail-smtpd run script is as follows:

#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
if [ -z $QMAILDUID -o -z $NOFILESGID -o -z $MAXSMTPD -o -z $LOCAL ];
then
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi
exec /usr/local/bin/softlimit -m 200 \
/usr/local/bin/tcpserver -v -R -l $LOCAL -x /etc/tcp.smtp.cdb -c
$MAXSMTPD \
-u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd
21

And I can say that my open-smtp file is not being erased by the cron job
that I setup.  I am not sure if this file is supposed to be cleared or not.

If anyone has any ideas I would greatly appreciate them as I said I am so
close that I can taste the mail server :)

I would really not like to have to recompile the qmail program with a patch
but I will if I have to if there is an easy script that will integrate with
my current system.

Regards,
Rob G











Re: [vchkpw] SMTP Perms

2002-12-20 Thread Peter Palmreuther
Hi Rob,

On Fri, 20 Dec 2002 09:21:07 -0500
Rob G [EMAIL PROTECTED] wrote:

  H that is a good one as I set up vpopmail following the
  instructions word for word.  It does appear that the
  /etc/tcp.smtp.cdb does have the IP addresses of the system in it .. I
  opened the cdb file in vim and could see the two IP addresses that I
  have POP'd in with.

Go, get cdbtools from DJBs web site ( http://cr.yp.to/cdb.html ) and
make a

cdbdump  /etc/tcp.smtp.cdb

If it cotains more addresses than /etc/tcp.smtp everything should be
fine.

You seem to have vpopmail set up (configured) to use /etc/tcp.smtp.cdb
instead of ~vpopmail/etc/tcp.smtp which is OK. No problem with this, in
fact it doesn't _really_ matter which one is used, as long as vpopmail
and qmail-smtpd use _the same_.

  I may have to go another route as I am not sure about the relaying as
  the IP addresses are not being cleared from the tcp.smtp.db file or
  the open-smtp file.  I would like to just use SMTP authentication
  instead of POP before SMTP.

You'll have to patch qmail for being able to use SMTP-Auth.
If you want to use SMTP_AUTH _exclusively_ you'll have to recompile
vpopmail with disabled romaing-users option. Else vpopmail _will_
continue to write IP-Adresses of authenticated POP3-users to open-smtp
and .cdb file.

To come back to your original problem:

have a look with above mentioned cdbdump command if /etc/tcp.smtp.cdb
contains the IP-address you're trying to send mail from.
If not: do a POP3-check and dump the file again ... your IP _should_
be present now ... !!!IF!!! this file can be written by the user your
POP3-process is started as

HTH

P.S.: Could you _please_ disable your 'Reply-To' header (by deleting
it's value in your account setup)??? It's redundant (it contains the
very same address already in 'From' which makes absolutely no sense) and
prevents from easy answering by simply using Reply. My MUA would be
able to reply to the list automatically (as it recognizes the list
headers), but your Reply-To header takes (intentionally by
my MUA) precedence ... Thanks in advance
-- 
Peter




Re: [vchkpw] SMTP Perms

2002-12-20 Thread Rob G
Sorry about the reply to header.. bad habit of doing years of technical
support ;)  For some reason it just started working this morning after I
applied the SMTP auth patch .  I haven't completely applied that patch but I
can now POP before SMTP authenticate and it will send out mail :)  Hopefully
this is the last I have to play with it.  It has been a fun week
transferring from XMail to Qmail .. but I think I have it... now on to mail
lists (which was the reason I switched to qmail)  any suggestions that work
well with vpopmail and qmail?

Regards,
Rob G

- Original Message -
From: Peter Palmreuther [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 20, 2002 10:10 AM
Subject: Re: [vchkpw] SMTP Perms


Hi Rob,

On Fri, 20 Dec 2002 09:21:07 -0500
Rob G [EMAIL PROTECTED] wrote:

  H that is a good one as I set up vpopmail following the
  instructions word for word.  It does appear that the
  /etc/tcp.smtp.cdb does have the IP addresses of the system in it .. I
  opened the cdb file in vim and could see the two IP addresses that I
  have POP'd in with.

Go, get cdbtools from DJBs web site ( http://cr.yp.to/cdb.html ) and
make a

cdbdump  /etc/tcp.smtp.cdb

If it cotains more addresses than /etc/tcp.smtp everything should be
fine.

You seem to have vpopmail set up (configured) to use /etc/tcp.smtp.cdb
instead of ~vpopmail/etc/tcp.smtp which is OK. No problem with this, in
fact it doesn't _really_ matter which one is used, as long as vpopmail
and qmail-smtpd use _the same_.

  I may have to go another route as I am not sure about the relaying as
  the IP addresses are not being cleared from the tcp.smtp.db file or
  the open-smtp file.  I would like to just use SMTP authentication
  instead of POP before SMTP.

You'll have to patch qmail for being able to use SMTP-Auth.
If you want to use SMTP_AUTH _exclusively_ you'll have to recompile
vpopmail with disabled romaing-users option. Else vpopmail _will_
continue to write IP-Adresses of authenticated POP3-users to open-smtp
and .cdb file.

To come back to your original problem:

have a look with above mentioned cdbdump command if /etc/tcp.smtp.cdb
contains the IP-address you're trying to send mail from.
If not: do a POP3-check and dump the file again ... your IP _should_
be present now ... !!!IF!!! this file can be written by the user your
POP3-process is started as

HTH

P.S.: Could you _please_ disable your 'Reply-To' header (by deleting
it's value in your account setup)??? It's redundant (it contains the
very same address already in 'From' which makes absolutely no sense) and
prevents from easy answering by simply using Reply. My MUA would be
able to reply to the list automatically (as it recognizes the list
headers), but your Reply-To header takes (intentionally by
my MUA) precedence ... Thanks in advance
--
Peter





Re: [vchkpw] SMTP Perms

2002-12-20 Thread Ajai Khattri
Rob G wrote:


transferring from XMail to Qmail .. but I think I have it... now on to mail
lists (which was the reason I switched to qmail)  any suggestions that work
well with vpopmail and qmail?


There's really only one choice: ezmlm with the ezmlm-idx patches.

If anyone has managed to get mailman working with qmail + vpopmail I 
would love to hear about it!

--
Aj.
Systems Administrator / Developer




Re: [vchkpw] SMTP Perms

2002-12-20 Thread Dave Weiner
 Rob G wrote:

  transferring from XMail to Qmail .. but I think I have it... now on to
mail
  lists (which was the reason I switched to qmail)  any suggestions that
work
  well with vpopmail and qmail?

 There's really only one choice: ezmlm with the ezmlm-idx patches.

 If anyone has managed to get mailman working with qmail + vpopmail I
 would love to hear about it!

Piece of cake.  Search the archives, I posted my solution here and to the
mailman list I believe.


 --
 Aj.
 Systems Administrator / Developer

Dave





Re: [vchkpw] SMTP Perms

2002-12-20 Thread Ajai Khattri
Dave Weiner wrote:


Piece of cake.  Search the archives, I posted my solution here and to the
mailman list I believe.


I found the posting. When I asked a long time ago I was overwhelmed by 
the loud sound of absolute silence ;-)

Glad to see someone worked this one out!

If anyone else needs to see Dave's original post go to:

http://bluedot.net/mail/archive/read.php?f=2i=4835t=4833


Thanks Dave,
--
Aj.
Systems Administrator / Developer