On Tue, Oct 05, 1999 at 02:04:56PM +0600, [EMAIL PROTECTED] wrote:

Ok. There are a number of things you're doing wrong. See below; I've
answered in context.

> Hi all,
> 
> I had a small mishap with a hacker 
> who played a bit with my mail server. the result was a full reinstall, 
> the best I could do to get rid of any programs installed 
> 
> In my setup I have 2 machines which use AutoTURN to send mail to my
> subdomain. 
> 
> I have done the setup using Dave's advice and his "lwq"
> but this time when I install I must have missed something in the serial
> setup as the AutoTURN will not work
> 
> Help is much appriciated.
> Jacob
> 
> 
> --------------------metta.lk-----------Internet
>                204.143.107.46
>                       |
>                       ppp link
>                       |
>                   col7.metta.lk
>                    172.16.1.1
> 
> when I invoke the ppp connection from the subdomain then mail goes out to
> "metta.lk" for delivery.
> but the AutoTURN connection is not made 
> 
> I see mail in /var/qmail/autoturn/new/
> 
> I see a connection made from col7.metta.lk
> /var/log/qmail/smtpd/
> ---------------------
> 939108968.281973 tcpserver: pid 19679 from 172.16.1.1
> 939108968.821487 tcpserver: ok 19679 metta.lk:204.143.107.46:25
> col7.metta.lk:172.16.1.1:root:1025
> 939108971.651536 tcpserver: end 19679 status 0
> 939108971.651798 tcpserver: status: 1/40
> 939109599.374155 tcpserver: end 19597 status 0
> 939109599.374190 tcpserver: status: 0/40
> 
> I see the PPP connection is up.
> 
> [root@dhamma qmail]# pppstats
> IN   PACK VJCOMP  VJUNC  VJERR  |      OUT   PACK VJCOMP  VJUNC NON-VJ
> 3098     26      1     11      0  |     1276     27      2     11  14
> 
> when I manually execute the command on in the
> /var/qmail/bin/qmail-smtpd-wrapper 
> after having got the connection from
> the subdomain "col7.metta.lk" the I get the error
> 
> [root@dhamma autoturn]# /var/local/bin/setlock -nx $TCPREMOTEIP/seriallock
> /usr/local/bin/maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP-
> $TCPREMOTEIP AutoTURN
> bash: /var/local/bin/setlock: No such file or directory

That's a mistake. "setlock" is in /usr/local/bin, not /var/local/bin.
That's why you get a "No such file" error. However, this is not your
actual problem. See further.

> what is the file missing (setlock is there)
> 
> -rwxr-xr-x   1 root     root        10128 Oct  1 23:40 setlock
> 
> 
> my /var/qmail/bin/qmail-smtpd-wrapper   looks like this
> --------------------------------------
> #!/bin/bash
> PATH=$PATH:/var/qmail/bin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin
> export PATH
> ulimit -d 1024
> exec /var/qmail/bin/qmail-smtpd ${1+"$@"}
^^^^^^^

This exec is the mistake. exec replaces the current program with
the new program on the command line. In your case, your entire
smtpd-wrapper script is being replaced by an invocation of qmail-smtpd,
so the program never gets to the maildirsmtp part. Exec should
normally only be the last part of your program or script, if you
chosse to use it. To fix this, remove the exec, and then after
qmail-smtpd finishes an SMTP conversation, the wrapper will go on
to run maildirsmtp.

> cd /var/qmail/autoturn
> exec /usr/local/bin/setlock -nx $TCPREMOTEIP/seriallock \
> /usr/local/bin/maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP- \
> $TCPREMOTEIP AutoTURN
> --------------------------------------
> 
> I can ping the local subdomain from main domain
> 
> [root@dhamma qmail]# ping 172.16.1.1
> PING 172.16.1.1 (172.16.1.1): 56 data bytes
> 64 bytes from 172.16.1.1: icmp_seq=0 ttl=255 time=240.6 ms
> 64 bytes from 172.16.1.1: icmp_seq=1 ttl=255 time=220.0 ms
> 64 bytes from 172.16.1.1: icmp_seq=2 ttl=255 time=210.0 ms
> 64 bytes from 172.16.1.1: icmp_seq=3 ttl=255 time=210.0 ms
> 64 bytes from 172.16.1.1: icmp_seq=4 ttl=255 time=210.0 ms
> 
> --- 172.16.1.1 ping statistics ---
> 6 packets transmitted, 5 packets received, 16% packet loss
> round-trip min/avg/max = 210.0/218.1/240.6 ms
> 

-- 
See complete headers for more info

Reply via email to