open-smtp woes

2000-11-08 Thread Robin S. Socha

Dear all,

I just installed open-smtp by Russ Nelson. It does Not Work(tm). The
tcprules-file gets overwritten as expected (?), but there are '"'
missing:

(root@kens):(~)$ cat /etc/tcprules.d/qmail-smtpd
212.84.219.13:allow,RELAYCLIENT=

To the effect that:

(root@purgatory):(~)# fetchmail -v
fetchmail: 5.3.8 querying kens.com (protocol POP3) at Wed, 08 Nov 2000 16:25:12 +0100 
(CET)
fetchmail: POP3 +OK [EMAIL PROTECTED]
fetchmail: POP3 USER rsocha
fetchmail: POP3 +OK 
fetchmail: POP3 PASS *
fetchmail: POP3 tcprules: fatal: unable to parse this line: 
212.84.219.13:allow,RELAYCLIENT=
fetchmail: Unknown login or authentication error on [EMAIL PROTECTED]
fetchmail: POP3 QUIT
fetchmail: POP3 +OK 
fetchmail: client/server protocol error while fetching from kens.com
fetchmail: Query status=4 (PROTOCOL)
fetchmail: normal termination, status 4

Any ideas, please?

Thanks,
Robin
-- 
Robin S. Socha http://socha.net/
"If you are too low a lifeform to be able to learn how to use the
manual page subsystem, why should we help you?"  (Theo de Raadt)



Re: open-smtp woes

2000-11-08 Thread James T. Perry


Hi Robin,

"Robin S. Socha" wrote:
 
 Dear all,
 
 I just installed open-smtp by Russ Nelson. It does Not Work(tm). The
 tcprules-file gets overwritten as expected (?), but there are '"'
 missing:
 
 (root@kens):(~)$ cat /etc/tcprules.d/qmail-smtpd
 212.84.219.13:allow,RELAYCLIENT=

[verbose fetchmail log snipped]

It seems like the script called pop3-record is missing
back-slashes to escape double quotes.
(actually, it contains no double quotes ;)

  #!/bin/sh
  echo "$TCPREMOTEIP:allow,RELAYCLIENT=//" /etc/smtp.filter.newer
  cat /etc/smtp.filter.* | /usr/blah/blah...

The above should read RELAYCLIENT=\"\""
You also may need
  echo -e
depending on the shell.

hope this helped...

cheers,
jamie

#-#-#-#-#-#-#-#
-- If somebody can help create a search engine for my room,
   I will call them a Saint...
   GUI == Graphical User Interference



Re: open-smtp woes

2000-11-08 Thread Robin S. Socha

* James T. Perry [EMAIL PROTECTED] [001108 12:03]:
 It seems like the script called pop3-record is missing
 back-slashes to escape double quotes.
 (actually, it contains no double quotes ;)
 
   #!/bin/sh
   echo "$TCPREMOTEIP:allow,RELAYCLIENT=//" /etc/smtp.filter.newer
   cat /etc/smtp.filter.* | /usr/blah/blah...
 
 The above should read RELAYCLIENT=\"\""
 You also may need
   echo -e
 depending on the shell.

Not really. And my users are about to kill me, too ;-)

(root@purgatory):(~)# fetchmail -
fetchmail: 5.3.8 querying kens.com (protocol POP3) at Wed, 08 Nov 2000
19:47:42 +0100 (CET)
fetchmail: POP3 +OK [EMAIL PROTECTED]
fetchmail: POP3 USER rsocha
fetchmail: POP3 +OK 
fetchmail: POP3 PASS *
fetchmail: POP3 /usr/local/bin/pop3-record: 1: Syntax error:
Unterminated quoted string
fetchmail: Unknown login or authentication error on [EMAIL PROTECTED]
fetchmail: POP3 QUIT
fetchmail: POP3 +OK 
fetchmail: client/server protocol error while fetching from kens.com
fetchmail: not swapping UID lists, no UIDs seen this query
fetchmail: Query status=4 (PROTOCOL)
fetchmail: Deleting fetchids file.
fetchmail: normal termination, status 4
fetchmail: Deleting fetchids file.

(root@kens):(/etc/tcprules.d)$ cat /usr/local/bin/pop3-record 
#!/bin/sh
TCPDIR=/etc/tcprules.d
SMTPRULES=$TCPDIR/qmail-smtpd
PATH=$PATH:/usr/local/bin/
# First see if $TCPREMOTEIP is handled by existing rules
tcprulescheck $TCPDIR/qmail-smtpd.cdb ``$TCPREMOTEIP'' | \
grep RELAYCLIENT  /dev/null  exit 0
echo ``$TCPREMOTEIP''':allow,RELAYCLIENT=\"\""  $TCPDIR/smtp.filter.newer
cat $TCPDIR/smtp.filter.*  $SMTPRULES
tcprules $SMTPRULES.cdb $SMTPRULES.tmp  $SMTPRULES

HELP!!!1 }:-



Re: open-smtp woes

2000-11-08 Thread Charles Cazabon

Robin S. Socha [EMAIL PROTECTED] wrote:
 fetchmail: POP3 /usr/local/bin/pop3-record: 1: Syntax error:
 Unterminated quoted string
[...]

 # First see if $TCPREMOTEIP is handled by existing rules
 tcprulescheck $TCPDIR/qmail-smtpd.cdb ``$TCPREMOTEIP'' | \
 grep RELAYCLIENT  /dev/null  exit 0
 echo ``$TCPREMOTEIP''':allow,RELAYCLIENT=\"\""  $TCPDIR/smtp.filter.newer
[...]

Hmm.  I think those lines should be something more like this:

tcprulescheck $TCPDIR/qmail-smtpd.cdb "$TCPREMOTEIP" | \
grep RELAYCLIENT  /dev/null  exit 0
echo "$TCPREMOTEIP:allow,RELAYCLIENT=\"\""  $TCPDIR/smtp.filter.newer

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



Re: open-smtp woes

2000-11-08 Thread Gerry Boudreaux

Check to make sure that the patch to checkpassword inserted the line:

char *opensmtp = "/usr/local/bin/pop3-record";

Correctly, the error looks like it is coming from the
call *to* pop3-record from checkpassword, not pop3-record itself

(Hoping I am guessing correctly)

Gerry

At 01:48 PM 11/8/2000 -0500, "Robin S. Socha" [EMAIL PROTECTED] wrote:
* James T. Perry [EMAIL PROTECTED] [001108 12:03]:
  It seems like the script called pop3-record is missing
  back-slashes to escape double quotes.
  (actually, it contains no double quotes ;)
 
#!/bin/sh
echo "$TCPREMOTEIP:allow,RELAYCLIENT=//" /etc/smtp.filter.newer
cat /etc/smtp.filter.* | /usr/blah/blah...
 
  The above should read RELAYCLIENT=\"\""
  You also may need
echo -e
  depending on the shell.

Not really. And my users are about to kill me, too ;-)

(root@purgatory):(~)# fetchmail -
fetchmail: 5.3.8 querying kens.com (protocol POP3) at Wed, 08 Nov 2000
19:47:42 +0100 (CET)
fetchmail: POP3 +OK [EMAIL PROTECTED]
fetchmail: POP3 USER rsocha
fetchmail: POP3 +OK
fetchmail: POP3 PASS *
fetchmail: POP3 /usr/local/bin/pop3-record: 1: Syntax error:
Unterminated quoted string
fetchmail: Unknown login or authentication error on [EMAIL PROTECTED]
fetchmail: POP3 QUIT
fetchmail: POP3 +OK
fetchmail: client/server protocol error while fetching from kens.com
fetchmail: not swapping UID lists, no UIDs seen this query
fetchmail: Query status=4 (PROTOCOL)
fetchmail: Deleting fetchids file.
fetchmail: normal termination, status 4
fetchmail: Deleting fetchids file.

(root@kens):(/etc/tcprules.d)$ cat /usr/local/bin/pop3-record
#!/bin/sh
TCPDIR=/etc/tcprules.d
SMTPRULES=$TCPDIR/qmail-smtpd
PATH=$PATH:/usr/local/bin/
# First see if $TCPREMOTEIP is handled by existing rules
tcprulescheck $TCPDIR/qmail-smtpd.cdb ``$TCPREMOTEIP'' | \
grep RELAYCLIENT  /dev/null  exit 0
echo ``$TCPREMOTEIP''':allow,RELAYCLIENT=\"\""  $TCPDIR/smtp.filter.newer
cat $TCPDIR/smtp.filter.*  $SMTPRULES
tcprules $SMTPRULES.cdb $SMTPRULES.tmp  $SMTPRULES

HELP!!!1 }:-





Re: open-smtp woes

2000-11-08 Thread Ricardo Cerqueira

On Wed, Nov 08, 2000 at 01:48:55PM -0500, Robin S. Socha wrote:
 echo ``$TCPREMOTEIP''':allow,RELAYCLIENT=\"\""  $TCPDIR/smtp.filter.newer

Open 2 backticks, close with 3 quotes, 2 escaped double-quotes and yet
another double-quote?

how about:

echo "$TCPREMOTEIP:allow,RELAYCLIENT=\"\""  $TCPDIR/smtp.filter.newer

RC

-- 
+---
| Ricardo Cerqueira  
| PGP Key fingerprint  -  B7 05 13 CE 48 0A BF 1E  87 21 83 DB 28 DE 03 42 
| Novis  -  Engenharia ISP / Rede Técnica 
| Pç. Duque Saldanha, 1, 7º E / 1050-094 Lisboa / Portugal
| Tel: +351 2 1010  - Fax: +351 2 1010 4459

 PGP signature


Re: open-smtp woes

2000-11-08 Thread Robin S. Socha

* Ricardo Cerqueira [EMAIL PROTECTED] writes:

 Open 2 backticks, close with 3 quotes, 2 escaped double-quotes and yet
 another double-quote?

Sure ;-) It's all Mirko's fault, anyway:

(root@kens):(/opt1/Qmail)$ cat open-smtp/pop3-record-alternative 
From: Mirko Zeibig [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Russ Nelson's open-smtp patch
Date: Thu, 16 Sep 1999 03:12:00 +0200

[...]
Here is a slightly improved script for /usr/local/bin/pop3-record:
#!/bin/sh
TCPDIR=/etc/tcprules.d
SMTPRULES=$TCPDIR/qmail-smtpd
PATH=$PATH:/usr/local/bin/
# First see if $TCPREMOTEIP is handled by existing rules
tcprulescheck $TCPDIR/qmail-smtpd.cdb ``$TCPREMOTEIP'' | \
grep RELAYCLIENT  /dev/null  exit 0
echo ``$TCPREMOTEIP''':allow,RELAYCLIENT='  $TCPDIR/smtp.filter.newer
cat $TCPDIR/smtp.filter.*  $SMTPRULES
tcprules $SMTPRULES.cdb $SMTPRULES.tmp  $SMTPRULES

In /etc/tcrules.d you may include a file called smtp.filter.zintern for internal
networks you always trust (chose .zintern to make sure this is read last).

Regards
Mirko

*sigh* Sorry for the interruption... On with the show. And: THANKS to
all three of you!
-- 
Robin S. Socha http://socha.net/



Re: open-smtp issues (is anyone is using this?)

2000-09-26 Thread Charles Cazabon

andy [EMAIL PROTECTED] wrote:
 
 1) I'm trying to implement open-smtp. Open-smtp uses a database generated by
 pop3 logins to set Relayclients (among other things). I would also like to
 use a standard static database of Relayclients in conjunction with this. How
 would I get remote mail users to use the instance of tcpserver w\ dynamic
 database, and local users\remote servers to use the other instance with the
 static database?

Don't.  Keep a file with your static tcp rules in it, and another
(dynamically generated) file with the dynamic rules in it.  cat them 
together and run tcprules on them.

However, you could also avoid the problem entirely, and use the
excellent relay-ctrl package from Bruce Guenter, which does exactly this,
and works well.  See http://em.ca/~bruceg/relay-ctrl/ for more.

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



Re: open-smtp issues (is anyone is using this?)

2000-09-26 Thread andy

 andy [EMAIL PROTECTED] wrote:
 
  1) I'm trying to implement open-smtp. Open-smtp uses a database
generated by
  pop3 logins to set Relayclients (among other things). I would also like
to
  use a standard static database of Relayclients in conjunction with this.
How
  would I get remote mail users to use the instance of tcpserver w\
dynamic
  database, and local users\remote servers to use the other instance with
the
  static database?

 Don't.  Keep a file with your static tcp rules in it, and another
 (dynamically generated) file with the dynamic rules in it.  cat them
 together and run tcprules on them.

 However, you could also avoid the problem entirely, and use the
 excellent relay-ctrl package from Bruce Guenter, which does exactly this,
 and works well.  See http://em.ca/~bruceg/relay-ctrl/ for more.

Charles

Thanks for the advice Charles. I've looked in relay-ctrl and like what I
see, but I'm wondering is the "fixup address" piece what I would use for the
static relaying addresses I need? It looks like smtp.fixup gets mixed with
smtp.rules to make the smtp.cdb, but the whole concept of fixup addresses
has me stumped. I looked at the qmail FAQ, but am still not sure how "the
guts" of the fixup process shown there work.

-=Andy




Re: open-smtp issues (is anyone is using this?)

2000-09-26 Thread Charles Cazabon

andy [EMAIL PROTECTED] wrote:
 
  However, you could also avoid the problem entirely, and use the
  excellent relay-ctrl package from Bruce Guenter, which does exactly this,
  and works well.  See http://em.ca/~bruceg/relay-ctrl/ for more.
 
 Thanks for the advice Charles. I've looked in relay-ctrl and like what I
 see, but I'm wondering is the "fixup address" piece what I would use for the
 static relaying addresses I need? It looks like smtp.fixup gets mixed with
 smtp.rules to make the smtp.cdb, but the whole concept of fixup addresses
 has me stumped. I looked at the qmail FAQ, but am still not sure how "the
 guts" of the fixup process shown there work.

fixup is a third piece of the puzzle -- it lets you send all mail from 
certain clients through a script to "fix up" their broken email (wrong EOL
conventions in their implementation of SMTP, etc).  It's not necessary to
use that part of it, but it helps in cases where you've got clients you want
to relay for who have very broken software, like old versions of Eudora or
Outlook on Windows.

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



An open-smtp question

2000-09-22 Thread andy



Hey All,

Just started to implement open-smtp4 package from 
Russel Nelson.

Everything seems fine, I patched checkpassword, 
installed tcpcontrol, the \etc\smtp.filter.newer file is getting 
updated.

However, (there is always a however) myremote 
users still can't send mail after authenticating to the mail server and 
receiving mail. I can see their IP addresses in smtp.filter.newer and I've 
experimented with them using different MUA's still no luck.

Any ideas where to look for possible 
problems?

Thanks,
-=Andy



Help please with a simple problem open-smtp code

2000-09-01 Thread Rob Havens

Using the pop3-record-alternative under RedHat Linux 6.0 (2.2-15) and qmail-1.03 
"memphis" rpm's, getting an error:

There was a problem logging onto your mail server. Your Password was rejected. 
Account: 'mail.newman.com', Server: 
'mail.newman.com', Protocol: POP3, Server Response: 'tcprules: fatal: unable to parse 
this line: 
206.84.204.38:allow,RELAYCLIENT=', Port: 110, Secure(SSL): No, Server Error: 
0x800CCC90, Error Number: 0x800CCC92
checking mail from the outside world. I believe this is coming from the patched 
"checkpassword" function.

It may be related to the fact that the RELAYCLIENT entry that pop3-record generates 
looks 
like:
[root@mail tcprules.d]# cat smtp.filter.newer
206.84.204.38:allow,RELAYCLIENT=

Instead of:
206.84.204.38:allow,RELAYCLIENT=""

If that's the case, how do I change the line of code:
echo ``$TCPREMOTEIP''':allow,RELAYCLIENT='  $TCPDIR/smtp.filter.newer
in pop3-record to generate the ""'s.

If that's not the case, can anyone tell me what else might be wrong?

TIA, Rob Havens




Russ Nelson's open-smtp patch

1999-09-15 Thread Michael

Can anyone explain how to install Russ Nelson's open-smtp patch for 
qmail?

I am interested in patching my qmail installation to allow relaying for POP3 
authenticated users.  I have downloaded the code, but the README just 
says to patch checkpassword, but I am unfamilar with patching programs.  
Additionally, there are 2 checkpassword.patch files in the tar:

checkpassword.patch
checkpassword.patch~

Would anyone mind explaining the patch process?  (Russ :) ?)

Thanks,
Michael Lundberg



RE: Russ Nelson's open-smtp patch

1999-09-15 Thread David Harris


Vince Vielhaber [mailto:[EMAIL PROTECTED]] wrote:
 An easier way than patching is to use David Harris' smtp-poplock.  I
 just installed it here and it looks like it's gonna work so I can do
 the last step in the installation :)

 http://www.davideous.com/smtp-poplock/

The main advantage of smtp-poplock is that you don't have to patch any of the
programs, and it can work with any of the checkpassword variants. There had
been some lingering problems with the checkpassword authentication logging tie
in, but they were solved in the latest release.

There are two tie ins, basically. First to log the POP3 authentication, you
just insert lobpopauth-pre and logpopauth-post before and after checkpassword
in the (tcpserver or inetd.con) chain of commands. For the second tie in, you
just add "relaylock" before qmail-smtpd in your (tcpserver) chain of commands.
The "relaylock" program simply sets the RELAYCLIENT environment variable if
that host has authenticated with POP3, allowing them to relay mail.

 - David Harris
   Principal Engineer, DRH Internet Services




Re: Russ Nelson's open-smtp patch

1999-09-15 Thread Mirko Zeibig

On Wed, Sep 15, 1999 at 01:46:34PM -0400, Russell Nelson wrote:
 Michael writes:
   checkpassword.patch
   checkpassword.patch~
   Would anyone mind explaining the patch process?  (Russ :) ?)
 
 Unpack open-smtp3.tar.gz
 Unpack checkpassword-0.81.tar.gz (found on koobera).
 cd into checkpassword-0.81
 Issue the following command: patch ../open-smtp/checkpassword.patch
 Make checkpassword as per usual.

Here is a slightly improved script for /usr/local/bin/pop3-record:
#!/bin/sh
TCPDIR=/etc/tcprules.d
SMTPRULES=$TCPDIR/qmail-smtpd
PATH=$PATH:/usr/local/bin/
# First see if $TCPREMOTEIP is handled by existing rules
tcprulescheck $TCPDIR/qmail-smtpd.cdb ``$TCPREMOTEIP'' | \
grep RELAYCLIENT  /dev/null  exit 0
echo ``$TCPREMOTEIP''':allow,RELAYCLIENT='  $TCPDIR/smtp.filter.newer
cat $TCPDIR/smtp.filter.*  $SMTPRULES
tcprules $SMTPRULES.cdb $SMTPRULES.tmp  $SMTPRULES

In /etc/tcrules.d you may include a file called smtp.filter.zintern for internal
networks you always trust (chose .zintern to make sure this is read last).

Regards
Mirko



Open-SMTP

1999-08-23 Thread Mirko Zeibig

Hello everybody,
I modified Russel's package a bit, my version of pop3-record:
 snip /usr/local/bin/pop3-record 
#!/bin/sh
TCPDIR=/etc/tcprules.d
PATH=$PATH:/usr/local/bin/
# First see if $TCPREMOTEIP is handled by existing rules
tcprulescheck $TCPDIR/qmail-smtpd.cdb "$TCPREMOTEIP" | grep RELAYCLIENT  /dev/null  
exit 0
echo "$TCPREMOTEIP"':allow,RELAYCLIENT=""'  $TCPDIR/smtp.filter.newer
cat $TCPDIR/smtp.filter.*  $TCPDIR/qmail-smtpd
tcprules $TCPDIR/qmail-smtpd.cdb $TCPDIR/qmail-smtpd.tmp  $TCPDIR/qmail-smtpd
 snap 

- pop3-record will act in /etc/tcprules.d
- I have users from an internal network which I always trust so:
- before adding TCPREMOTEIP, pop3-record will check wether this is already a
  RELAYCLIENT for us.
- rules for internal users go to /etc/tcprules.d/smtp.filter.zintern:
  snip /etc/tcprules.d/smtp.filter.zintern 
 127.0.0.1:allow,RELAYCLIENT=""
 192.168.0.:allow,RELAYCLIENT=""
 :allow
  snap  
- I also wrote a small spec-file for rpm which will apply the patches, copy
  the scripts to the appropriate places and set up a cron-script for age-smtp.  

Any comments?

Mirko



open smtp performance

1999-05-21 Thread Krzysztof Dabrowski

i have a little question regarding open smtp's performance under heavy load.
Running a separate shell process and then recreate tcprules for every pop3
connection looks like an overkill for me. We have a 3000+ users serer here
and we HAVE to implement some kind of authentication before relaying and we
can not just allow certain IP's as few of our customers are using IPass or
public dialups here.
If opensmtp is not suitable for us then could you poing me to any alternative?

Krzysztof Dabrowski



Re: open smtp performance

1999-05-21 Thread Timothy L. Mayo

I am using Russel Nelson's POP3 before SMTP very successfully here on a
single server handling  10,000 users.  I had to modify it slightly
though.  My tcprules update code makes sure that I have not already got a
rule that covers the new IP before adding it.

This works well and I will be expanding it in the next month to handle
multiple mail servers working off of a common tcprules set.  I will post
my results when I am done. :)

Tim Mayo

On Fri, 21 May 1999, Krzysztof Dabrowski wrote:

 i have a little question regarding open smtp's performance under heavy load.
 Running a separate shell process and then recreate tcprules for every pop3
 connection looks like an overkill for me. We have a 3000+ users serer here
 and we HAVE to implement some kind of authentication before relaying and we
 can not just allow certain IP's as few of our customers are using IPass or
 public dialups here.
 If opensmtp is not suitable for us then could you poing me to any alternative?
 
 Krzysztof Dabrowski
 
 

-
Timothy L. Mayo mailto:[EMAIL PROTECTED]
Senior Systems Administrator
localconnect(sm)
http://www.localconnect.net/

The National Business Network Inc.  http://www.nb.net/
One Monroeville Center, Suite 850
Monroeville, PA  15146
(412) 810- Phone
(412) 810-8886 Fax



Re: open smtp performance

1999-05-21 Thread Krzysztof Dabrowski

At 11:14 99-05-21 -0400, you wrote: 
I am using Russel Nelson's POP3 before SMTP very successfully here on a 
single server handling  10,000 users. I had to modify it slightly 
though. My tcprules update code makes sure that I have not already got a 
rule that covers the new IP before adding it. 
 
Good. can you send me that modifications? I've got a simple c routine to 
remove duplicates but it requires a sorting of the input file so it takes 
too much time. 
Could you respond right now as i have to leave work and i would like to 
test it while i'm at home.
Kris



RE: Qmail and Open-SMTP

1999-04-27 Thread Gordon Smith

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

- -Original Message-
From: Russell Nelson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 27, 1999 3:44 PM
To: Qmail List (E-mail)
Subject: Re: Qmail and Open-SMTP


Gordon Smith writes:
  I have been trying, rather unsuccessfully, to get open-smtp working
  over the last few days.

  /usr/src/smtp-poplock/relaylock \

What is this doing here?

Oops. My mistake.
I missed that. My shell script is now:

#!/bin/sh

# Using splogger to send the log through syslog.
# Using qmail-local to deliver messages to ~/Mailbox by default.

supervise /var/run/qmail-smtpd \
tcpserver \
-x /etc/tcp.smtp.cdb \
-u 502 \
-g 501 \
-c 100 \
-v \
0 25 \
/var/qmail/bin/qmail-smtpd \
21 | /var/qmail/bin/splogger smtpd 3 

tcpserver \
-v \
0 110 /var/qmail/bin/qmail-popup mailhost.hortauto.co.nz \
/bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir | 21 

exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start ./Maildir/ splogger qmail 

Checkpassword is patched with the PAM diffs and the Open-smtp patch.
Had no probs compiling.
/etc/tcp.smtp.filter.newer isn't being updated though.
When I look at the processes running, this is what I have:

/root]# ps ax |grep qmail
  397  ?  S0:00 supervise /var/run/qmail-smtpd tcpserver -x
/etc/tcp.smtp.cd
  398  ?  S0:00 /var/qmail/bin/splogger smtpd 3 
  399  ?  S0:00 tcpserver -v 0 110 /var/qmail/bin/qmail-popup
mail.domain.com
  402  ?  S0:00 qmail-lspawn ./Maildir/ 
  417  ?  S0:00 /var/qmail/bin/qmail-popup mail.domain.com
/bin/checkpassword
  422  ?  S0:00 /var/qmail/bin/qmail-popup mail.domain.com
/bin/checkpassword
  514  ?  S0:00 tcpserver -v 0 110 /var/qmail/bin/qmail-popup
mail.domain.com
  401  ?  S0:00 splogger qmail 
  404  ?  S0:00 qmail-clean 
  403  ?  S0:00 qmail-rspawn 
  396  ?  S0:00 qmail-send 
  418  ?  S0:00 /var/qmail/bin/qmail-pop3d Maildir 
  423  ?  S0:00 /var/qmail/bin/qmail-pop3d Maildir 

(Lines truncated by my terminal program)

In rc.local, I call csh -cf '/var/qmail/rc '

Perhaps I should be setting tcp-env?

Cheers,
Gordon Smith  MCP
Network Administrator

- -
Compac by Horticultural Automation Ltd
Phone Intl + 64 9 634 00 88
Fax Intl + 64 9 634 44 91
Email [EMAIL PROTECTED]
PGP Public Key is available at: http://pgpkeys.mit.edu





-BEGIN PGP SIGNATURE-
Version: PGP 6.0.2

iQA/AwUBNyWBJBd1+wtRT57SEQLvsACgkijXQH0P5O4Cft1K6j8/vbrwKZYAoMgV
7A11jibzvhYvK56qxQItqP7N
=ZLSQ
-END PGP SIGNATURE-



RE: Qmail and Open-SMTP

1999-04-27 Thread Russell Nelson

Gordon Smith writes:
  Checkpassword is patched with the PAM diffs and the Open-smtp patch.
  Had no probs compiling.
  /etc/tcp.smtp.filter.newer isn't being updated though.

Did you install /usr/local/bin/pop3-record ?  Is it marked executable?

-- 
-russ nelson [EMAIL PROTECTED]  http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok |   There is good evidence
521 Pleasant Valley Rd. | +1 315 268 1925 voice |   that freedom is the
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   |   cause of world peace.



Qmail and Open-SMTP

1999-04-26 Thread Gordon Smith

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I have been trying, rather unsuccessfully, to get open-smtp working
over the last few days.
My problem is that I have quite a few users that travel world-wide,
and they connect to our company using various ISPs.

The mail server is based on RedHat 5.9, running kernel 2.2.6. I've
compiled checkpassword 0.81, and applied the patches for PAM support
and the Open-SMTP patch, then successfully re-compiled.
I'm calling the start script /var/qmail/rc from rc.local. My rc script
is:

#!/bin/sh

# Using splogger to send the log through syslog.
# Using qmail-local to deliver messages to ~/Maildir/ by default.

supervise /var/run/qmail-smtpd \
tcpserver \
-x /etc/tcp.smtp.cdb \
-u 502 \
-g 501 \
-c 100 \
-v \
0 smtp \
/usr/src/smtp-poplock/relaylock \
/var/qmail/bin/qmail-smtpd \
21 | /var/qmail/bin/splogger smtpd 3 

tcpserver 0 110 /var/qmail/bin/qmail-popup mailserver.mydomain.com \
 /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 

exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start ./Maildir/ splogger qmail 


I'm sure I've messed up here somewhere, but I seem to be going round
in circles. 
Any advice would be appreciated.


Gordon Smith  MCP
Network Administrator

- - -
Compac by Horticultural Automation Ltd
Phone Intl + 64 9 634 00 88
Fax Intl + 64 9 634 44 91
Email [EMAIL PROTECTED]
PGP Public Key is available at: http://pgpkeys.mit.edu


-BEGIN PGP SIGNATURE-
Version: PGP 6.0.2

iQA/AwUBNyQxtBd1+wtRT57SEQI8ewCdFFlUUS2dw/hPpy3cbmyaLEMLdpkAnRfh
Yjfz0byIEgb/KD8YasmjQxcj
=JVAE
-END PGP SIGNATURE-



Re: Qmail and Open-SMTP

1999-04-26 Thread Russell Nelson

Gordon Smith writes:
  I have been trying, rather unsuccessfully, to get open-smtp working
  over the last few days.

  /usr/src/smtp-poplock/relaylock \

What is this doing here?

  tcpserver 0 110 /var/qmail/bin/qmail-popup mailserver.mydomain.com \
   /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 

Presumably this is the modified checkpassword?

  I'm sure I've messed up here somewhere, but I seem to be going round
  in circles. 

Have you checked to see if /etc/smtp.filter.newer is getting updated?

-- 
-russ nelson [EMAIL PROTECTED]  http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok |   There is good evidence
521 Pleasant Valley Rd. | +1 315 268 1925 voice |   that freedom is the
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   |   cause of world peace.



Open-SMTP for PAMified systems

1999-01-12 Thread Petr Novotny

Hi,

I have written a PAM module which can be used for Open-SMTP type of
treatment instead of patching checkpassword. I have mailed it to
Russell Nelson and I hope it would appear soon on www.qmail.org.
Meanwhile, I can send it to you by e-mail if you ask me (privately!).
--
Petr Novotny, ANTEK CS
[EMAIL PROTECTED]
http://www.antek.cz
-- Don't you know there ain't no devil there's just God when he's drunk.
 [Tom Waits]