telnet connection refused, can't receive/deliver

This is a discussion on telnet connection refused, can't receive/deliver within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; Dave, My version is probably old, the book is dated 2002, so I got it quite some time ago. Time ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 07-06-2005
jack
 
Posts: n/a
Default Re: telnet connection refused, can't receive/deliver

Dave,

My version is probably old, the book is dated 2002, so I got it quite
some time ago. Time flys!

Thanks for your help,

Jack

bsd# ps wwaux | grep tcpserver
qmaild 1676 0.0 0.2 104 412 C0- I Sat05PM 0:00.01
/usr/local/bin/tcpserver -v -R -H -l 0 -x /etc/tcp.smtp.cdb -c 20 -u
1001 -g 1000 0 465 /usr/local/sbin/stunnel -f -p
/usr/local/etc/stunnel.pem -l /var/qmail/bin/qmail-smtpd
bsd# cd /var/qmail/service/qmail-smtpd
bsd# ls
log run
bsd# cat run
#!/bin/sh

# Dave Sill, 2001-11-06
# For use with The qmail Handbook, ISBN 1893115402

QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`head -1 /var/qmail/control/concurrencyincoming`
if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" ]; then
echo QMAILDUID, NOFILESGID, or MAXSMTPD is unset in
echo $0
exit 1
fi
exec /usr/local/bin/softlimit -m 3000000 \
/usr/local/bin/tcpserver -v -R -H -l 0 -x /etc/tcp.smtp.cdb -c
"$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 465 \
/usr/local/sbin/stunnel -f -p /usr/local/etc/stunnel.pem \
-l /var/qmail/bin/qmail-smtpd 2>&1

Reply With Quote
  #12 (permalink)  
Old 07-06-2005
Dave Sill
 
Posts: n/a
Default Re: telnet connection refused, can't receive/deliver

"jack" <jackjenkins@softhome.net> writes:

> My version is probably old, the book is dated 2002, so I got it quite
> some time ago. Time flys!


That's the latest version of the book. Lifewithqmail.org has newer
versions of the scripts, but the ones in the book will work.

> bsd# ps wwaux | grep tcpserver
> qmaild 1676 0.0 0.2 104 412 C0- I Sat05PM 0:00.01
> /usr/local/bin/tcpserver -v -R -H -l 0 -x /etc/tcp.smtp.cdb -c 20 -u
> 1001 -g 1000 0 465 /usr/local/sbin/stunnel -f -p
> /usr/local/etc/stunnel.pem -l /var/qmail/bin/qmail-smtpd


That's listening on port 465 and is an SSL-secured SMTP service.

> bsd# cd /var/qmail/service/qmail-smtpd
> bsd# ls
> log run
> bsd# cat run
> #!/bin/sh
>
> # Dave Sill, 2001-11-06
> # For use with The qmail Handbook, ISBN 1893115402
>
> QMAILDUID=`id -u qmaild`
> NOFILESGID=`id -g qmaild`
> MAXSMTPD=`head -1 /var/qmail/control/concurrencyincoming`
> if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" ]; then
> echo QMAILDUID, NOFILESGID, or MAXSMTPD is unset in
> echo $0
> exit 1
> fi
> exec /usr/local/bin/softlimit -m 3000000 \
> /usr/local/bin/tcpserver -v -R -H -l 0 -x /etc/tcp.smtp.cdb -c
> "$MAXSMTPD" \
> -u "$QMAILDUID" -g "$NOFILESGID" 0 465 \
> /usr/local/sbin/stunnel -f -p /usr/local/etc/stunnel.pem \
> -l /var/qmail/bin/qmail-smtpd 2>&1


And we can see from the run script that it's been modified from the
one in the book to add SSL.

Replace the last bit with:

/usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 25 /var/qmail/bin/qmail-smtpd 2>&1

and do "svc -t /service/qmail-smtpd".

--
Dave Sill Oak Ridge National Lab, Workstation Support
Author, The qmail Handbook <http://web.infoave.net/~dsill>
<http://lifewithqmail.org/>: Almost everything you always wanted to know.
Reply With Quote
  #13 (permalink)  
Old 07-06-2005
jack
 
Posts: n/a
Default Re: telnet connection refused, can't receive/deliver

Dave,

Thanks for your patience.

Still no change...I really appreciate your help.
I think I may have another problem besides qmail.
nmap and netstat show that nothing is listening on port 25.
I think I need to go over the install again.

Thanks again,

Jack

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:25 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0