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

2001-03-01 Thread Charles Cazabon

Bill Isaacs [EMAIL PROTECTED] wrote:
 
 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?

If I remember your setup, yes.  Think of tcpserver as a meta-daemon --
it binds to one TCP port on your machine and accepts connections.  For each
connection, it spawns a specified program which reads and writes data from
and to that connection.  Therefore, if you want to use it for two different
ports (different services, like SMTP and POP3), you need to run two 
different instances of tcpserver.

 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.

This list generally doesn't tire of questions from people who are willing
to do some work, experiment, and report honest results.  If you want to
help yourself further, I would recommend reading everything at cr.yp.to,
especially concerning ucspi-tcp, daemontools, and qmail, as well as
everything linked to from www.qmail.org.

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



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: Fwd: Re: Relay-ctrl and qmail: problem more fundamental, I think

2001-02-28 Thread Charles Cazabon

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



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
  21 | \
  /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