relay-ctrl and qmail

2001-02-26 Thread Bill Isaacs

After installing this package, I found that I could not login to check my 
email (ERR: authorization failed).  I had to uncomment the pop-3 and smtp 
lines in inetd.conf to be able to connect to the server at all (these had 
been commented out during by the installation routine).

I am trying to use this package so that I can relay from my home workstation 
in California with a dynamic IP address.

Any advice?

Thanks,

Bill
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Relay-ctrl and qmail

2001-02-27 Thread Bill Isaacs

Now that we're all in agreement on what relay-ctrl is, let me get
more specific about what is not happening for me with this package ;)

I check the spool directory:
---
[root@hoss relay-ctrl]# ls -l
total 0
[root@hoss relay-ctrl]#
---

I log into my server and collect my email with Eudora,
and then check the spool directory again:
--
[root@hoss relay-ctrl]# ls -l
total 0
-rw-rw-r--   1 root workshop0 Feb 27 12:43 63.207.13.190
[root@hoss relay-ctrl]#
--

I now check the cron log to make sure that relay-ctrl-age has run
since the timestamp on the above file:
---
root (02/27-12:47:00-5529) CMD (/usr/sbin/relay-ctrl-age)
---

So far so good.  Now I attempt to relay a message from my
workstation at the above IP address:

'553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)'.


So obviously, the database isn't being updated.
Here is my invocation of tcpserver and relay-ctrl
---
tcpserver -v -R 0 pop-3 /var/qmail/bin/qmail-popup (fqdn - no, its the real 
name not 'fqdn') \
/bin/checkpassword /usr/sbin/relay-ctrl-allow /var/qmail/bin/qmail-pop3d 
Maildir
2>&1 | \
/var/qmail/bin/splogger pop3d &


Here are the contents of /etc/relay-ctrl:

[root@hoss relay-ctrl]# ls -l
total 6
-rw-rw-r--   1 root qmail   4 Feb 26 18:52 expiry
-rw-rw-r--   1 root qmail  22 Feb 26 18:52 rule
-rw-rw-r--   1 root qmail   9 Feb 26 18:52 smtpcdb
-rw-rw-r--   1 root qmail  11 Feb 26 18:53 smtprules
-rw-rw-r--   1 root qmail  22 Feb 26 18:53 spooldir
-rw-rw-r--   1 root qmail  18 Feb 26 18:54 tcprules
[root@hoss relay-ctrl]# cat *
900
:allow,RELAYCLIENT=''
smtp.cdb
smtp.rules
/var/spool/relay-ctrl
/usr/bin/tcprules
[root@hoss relay-ctrl]#
--

What is going on here?  What else should I check?

Thanks,

Bill


_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: Relay-ctrl and qmail

2001-02-27 Thread Bill Isaacs

Hi Bruce and Charles,

No luck yet.  I tried Bruce's suggestion with the same outcome as before:
---
tcpserver -v -R -x /etc/smtp.cdb 0 pop-3 /var/qmail/bin/qmail-popup 
hoss.willysworkshop.com \
/bin/checkpassword /usr/sbin/relay-ctrl-allow /var/qmail/bin/qmail-pop3d 
Maildir
2>&1 | \
/var/qmail/bin/splogger pop3d &
---


And Charles, here are the diagnostics you requested (I hope)

>Okay, lets see some information on the file itself.  How about
> `ls -ld / /etc /etc/tcpcontrol /etc/tcpcontrol/*`
--
[root@hoss relay-ctrl]# ls -ld / /etc /etc/tcpcontrol /etc/tcpcontrol/*
drwxr-xr-x  19 root root 1024 Feb 26 12:35 /
drwxr-xr-x  24 root root 3072 Feb 27 22:34 /etc
drwxr-xr-x   2 root root 1024 Feb 27 21:27 /etc/tcpcontrol
-rw-r--r--   1 root qmail2072 Feb 26 12:48 
/etc/tcpcontrol/pop-3.cdb
-rw-r--r--   1 root qmail2072 Feb 26 13:12 
/etc/tcpcontrol/pop-3.cdb
.rpmnew
-rw-r--r--   1 root qmail   7 Feb 26 12:48 
/etc/tcpcontrol/pop-3.rul
es
-rw-r--r--   1 root qmail   7 Feb 26 13:12 
/etc/tcpcontrol/pop-3.rul
es.rpmnew
-rw-r--r--   1 root qmail2074 Feb 26 12:48 
/etc/tcpcontrol/qmqp.cdb
-rw-r--r--   1 root qmail2074 Feb 26 13:12 
/etc/tcpcontrol/qmqp.cdb.
rpmnew
-rw-r--r--   1 root qmail   6 Feb 26 12:48 
/etc/tcpcontrol/qmqp.rule
s
-rw-r--r--   1 root qmail   6 Feb 26 13:12 
/etc/tcpcontrol/qmqp.rule
s.rpmnew
-rw-r--r--   1 root qmail2072 Feb 26 12:48 
/etc/tcpcontrol/qmtp.cdb
-rw-r--r--   1 root qmail2072 Feb 26 13:12 
/etc/tcpcontrol/qmtp.cdb.
rpmnew
-rw-r--r--   1 root qmail   7 Feb 26 12:48 
/etc/tcpcontrol/qmtp.rule
s
-rw-r--r--   1 root qmail   7 Feb 26 13:12 
/etc/tcpcontrol/qmtp.rule
s.rpmnew
-rw-r--r--   1 root root 2072 Feb 27 21:27 
/etc/tcpcontrol/smtp.cdb
-rw-r--r--   1 root qmail2072 Feb 26 13:12 
/etc/tcpcontrol/smtp.cdb.
rpmnew
-rw-r--r--   1 root qmail   7 Feb 26 12:48 
/etc/tcpcontrol/smtp.rule
s
-rw-r--r--   1 root qmail   7 Feb 26 13:12 
/etc/tcpcontrol/smtp.rule
s.rpmnew
[root@hoss relay-ctrl]#

>Then, use tcprulescheck on the cdb file to see if that IP address is
>in there:
> `TCPREMOTEIP=1.2.3.4 tcprulescheck /etc/tcpcontrol/smtp.cdb`

[root@hoss workshop]# TCPREMOTEIP=63.207.13.190 tcprulescheck 
/etc/tcpcontrol/smtp.cdb
rule :
allow connection
[root@hoss workshop]#
--

Anyway, there's the dope.  I did find an error in tcpcontrol, to whit:
I had not specified the full path to the smtp.cdb file.  Unfortunately
fixing this did not solve the problem.

Thanks,

Bill

_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Relay-ctrl and qmail: problem more fundamental, I think

2001-02-28 Thread Bill Isaacs


OK, I've done some newbie-snooping and found that relay-ctrl-age wasn't 
updating the database.  I removed the path in the smtpcdb rules file, and 
that fixed that.  I then did a tcprulescheck and got:

[root@hoss /etc]# TCPREMOTEIP=64.161.212.206 tcprulescheck 
/etc/tcpcontrol/smtp.
cdb
rule 64.161.212.206:
set environment variable RELAYCLIENT=
allow connection
[root@hoss /etc]#

In addition, I noted the the smtp.cdb file was being updated every minute 
according to ls -l .

So now methinks I should be able to relay, no?  no.  Same message, "5.5.3 
sorry, blah blah blah".  OK, so then I stopped the relay-ctrl-age in the 
cron, and manually compiled the smtp.cdb file from a text file according to 
documentation (after allowing the spool file to expire, so that there was 
nothing in the database referring to my dynamic IP).  I got the exact same 
result with tcprulescheck as above.  I try relaying again, but no luck.

So the question is, doesn't this sound like a more fundamental issue than 
relay-ctrl?  Is there something perhaps with qmail that would disallow 
relaying regardless of what the CDB database says?

thanks,

Bill

>From: Charles Cazabon <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Relay-ctrl and qmail
>Date: Tue, 27 Feb 2001 15:19:59 -0600
>
>Bill Isaacs <[EMAIL PROTECTED]> wrote:
> > Now that we're all in agreement on what relay-ctrl is, let me get
> > more specific about what is not happening for me with this package ;)
>[...]
> > I now check the cron log to make sure that relay-ctrl-age has run
> > since the timestamp on the above file:
> > ---
> > root (02/27-12:47:00-5529) CMD (/usr/sbin/relay-ctrl-age)
> > ---
> >
> > So far so good.
>[...]
> > So obviously, the database isn't being updated.
>
>Okay, lets see some information on the file itself.  How about
> `ls -ld / /etc /etc/tcpcontrol /etc/tcpcontrol/*`
>
>Then, use tcprulescheck on the cdb file to see if that IP address is
>in there:
> `TCPREMOTEIP=1.2.3.4 tcprulescheck /etc/tcpcontrol/smtp.cdb`
>
>Replace 1.2.3.4 with the IP address of the machine you POP-checked your
>mail from immediately before doing the above steps.
>
>Charles
>--
>---
>Charles Cazabon<[EMAIL PROTECTED]>
>GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
>Any opinions expressed are just that -- my opinions.
>---

_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Fwd: Re: Relay-ctrl and qmail: problem more fundamental, I think

2001-02-28 Thread Bill Isaacs


I have a feeling I'll get laughed at, but here goes.
I'm not using svscan.  This is what I have in (*gulp*) inetd.conf:

smtpstream tcp nowait qmaild /var/qmail/bin/tcp-env tcp-env   
/var/qmail/bin/qmail-smtpd

>From: Charles Cazabon <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Relay-ctrl and qmail: problem more fundamental, I think
>Date: Wed, 28 Feb 2001 12:47:10 -0600
>
>Bill Isaacs <[EMAIL PROTECTED]> wrote:
> >
> > that fixed that.  I then did a tcprulescheck and got:
> > 
> > [root@hoss /etc]# TCPREMOTEIP=64.161.212.206 tcprulescheck
> > /etc/tcpcontrol/smtp.
> > cdb
> > rule 64.161.212.206:
> > set environment variable RELAYCLIENT=
> > allow connection
> > [root@hoss /etc]#
> > 
> > In addition, I noted the the smtp.cdb file was being updated every 
>minute
> > according to ls -l .
> >
> > So now methinks I should be able to relay, no?  no.  Same message, 
>"5.5.3
> > sorry, blah blah blah".
>
>The .cdb file is fine, but you're not being allowed to relay.  Therefore,
>the problem is in your qmail-smtpd start script.  Please post that.
>If you're using svscan, post the contents of .../service/smtpd/run .
>
>Charles
>--
>---
>Charles Cazabon<[EMAIL PROTECTED]>
>GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
>Any opinions expressed are just that -- my opinions.
>---

_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: Relay-ctrl and qmail: problem more fundamental, I think

2001-02-28 Thread Bill Isaacs


Lost, lost, lost!

OK, I'm a newbie with most of this stuff, but I'm having a problem invoking 
smtp with tcpserver. Trying this:

tcpserver -v -R -x /etc/tcpcontrol/smtp.cdb 0 pop-3 
/var/qmail/bin/qmail-popup hoss.willysworkshop.com \
/bin/checkpassword /usr/sbin/relay-ctrl-allow /var/qmail/bin/qmail-pop3d 
Maildir
2>&1 | \
/var/qmail/bin/qmail-smtpd \
/var/qmail/bin/splogger pop3d &

results in this:

[root@hoss smtpd]# 220 hoss.willysworkshop.com ESMTP
502 unimplemented (#5.5.1)

and this on my POP client:

Could not connect to "hoss.willysworkshop.com" Cause: connection 
refused(10061)

What am I doing wrong with the tcpserver invocation?

>From: Charles Cazabon <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Fwd: Re: Relay-ctrl and qmail: problem more fundamental, I 
>think
>Date: Wed, 28 Feb 2001 13:11:57 -0600
>
>Bill Isaacs <[EMAIL PROTECTED]> wrote:
> >
> > I have a feeling I'll get laughed at, but here goes.
>
>No, laughing is reserved for people who send mail like "qmail isn't working
>for me.  Why?" to the mailing list.
>
> > I'm not using svscan.  This is what I have in (*gulp*) inetd.conf:
> >
> > smtpstream tcp nowait qmaild /var/qmail/bin/tcp-env tcp-env
> > /var/qmail/bin/qmail-smtpd
>
>Okay.  You need to change this; take it out of inetd.conf and kill -HUP
>inetd.  Start qmail-smtpd with tcpserver -- if you want, you can
>supervise and svscan it as well.  The tcpserver invocation must include the
>option and value "-x /etc/tcpcontrol/smtp.cdb".
>
>So the problem was that the .cdb file was never being consulted, and 
>therefore
>the RELAYCLIENT environment variable was not being set (conditionally or 
>not).
>
>Charles
>--
>---
>Charles Cazabon<[EMAIL PROTECTED]>
>GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
>Any opinions expressed are just that -- my opinions.
>---

_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Fwd: Re: Relay-ctrl and qmail: problem more fundamental, I think

2001-02-28 Thread Bill Isaacs


At the risk of sounding really stupid, do I need to invoke BOTH the 
corrected script (minus the qmail-smtpd part) AND the old one (pop-3, etc.)? 
  In other words, will I have two tcpserver scripts, one invoking the pop-3 
and the other the qmail smtpd?

As I said, I am a complete newbie with email and no great shakes with much 
of this stuff to begin with.  I hope you folks aren't getting to tired of 
answering these dumb questions.

Thanks,

Bill

>From: Charles Cazabon <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Relay-ctrl and qmail: problem more fundamental, I think
>Date: Wed, 28 Feb 2001 15:15:08 -0600
>
>Bill Isaacs <[EMAIL PROTECTED]> wrote:
> >
> > Lost, lost, lost!
> >
> > OK, I'm a newbie with most of this stuff, but I'm having a problem 
>invoking
> > smtp with tcpserver. Trying this:
> > 
> > tcpserver -v -R -x /etc/tcpcontrol/smtp.cdb 0 pop-3
> > /var/qmail/bin/qmail-popup hoss.willysworkshop.com \
> > /bin/checkpassword /usr/sbin/relay-ctrl-allow /var/qmail/bin/qmail-pop3d
> > Maildir
> > 2>&1 | \
> > /var/qmail/bin/qmail-smtpd \
> > /var/qmail/bin/splogger pop3d &
>
>Okay, a couple of problems here.  One, you're trying to bind to the pop3
>port (the argument pop-3).  That should be either "smtp" or "25".
>Two, you're not invoking the right program.
>
>Try something more like:
>
>tcpserver g GID -u UID -DRvX \
>-x /etc/tcpcontrol/smtp.cdb 0 smtp \
>qmail-smtpd
>
>Change GID and UID to the GID and UID values that the server should run
>as.  The last argument is the program which tcpserver runs for each
>connection.  -v turns on some status messages, -R turns off ident lookups
>on the remote host, -D turns on TCP_NODELAY, -X says accept connections
>even if the cdb file doesn't exist.
>
>Charles
>--
>---
>Charles Cazabon<[EMAIL PROTECTED]>
>GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
>Any opinions expressed are just that -- my opinions.
>---

_
Get your FREE download of MSN Explorer at http://explorer.msn.com