Re: Re: CGP with uucp

От: Vyacheslav Garonin <CGatePro_at_mx_ru>
Дата: Fri 27 Aug 2004 - 19:56:27 MSD

 (Maxim Polyakov) пишет:

>>>Что логи uucp говорят?
>>>
>>>
>>>
>VG> если убрать <*%> из правила для route`а, т.е. оставить в вызове только
>VG> имя системы, то в uucp логе появляется:
>
>Не стоит убирать. Имя юзера обязательно для uu-клиента,
>установленнного у юзера, чтобы он знал, в какой ящик доставлять письмо.
>
>
угу,сделал
===
<*@uutest.domain.com>="[FILE] [RETPATH] uuDelivery *%test uutest.domain.com"@PIPE
===
изменив соответственно скрипт
=== uuDelivery ===
#!/bin/sh
LOG="/usr/local/sbin/CommuniGate/uuD.log"

NameUser=`expr $1 : '\(.*\)%.*'`
NameSyst=`expr $1 : '.*%\(.*\)'`
Domain=$2
QueueFile=$4
TempFile=`mktemp $QueueFile.XXXXXX`
FromName=`expr $6 : '<\(.*\)>'`

echo "From $FromName $(date '+%a %b %e %T %Y')" >$TempFile echo "Return-path: $FromName" >>$TempFile

#Envelope=`expr $1 : '\(.*\)%.*'`@`expr $1 : '.*%\(.*\)'`.domain.dom Envelope=$NameUser@$Domain

echo "Envelope-to: $Envelope" >>$TempFile echo "Delivery-date: $(date '+%a, %e %b %Y %T') +0300" >>$TempFile

sed -e '1,/^$/d' "$QueueFile" >> $TempFile

echo "1 - $1">$LOG
echo "2 - $2">>$LOG
echo "3 - $3">>$LOG
echo "4 - $4">>$LOG
echo "5 - $5">>$LOG
echo "6 - $6">>$LOG
echo "7 - $7">>$LOG
echo "NameUser - $NameUser">>$LOG
echo "NameSyst - $NameSyst">>$LOG
echo "Domain - $Domain">>$LOG
echo "Envelope - $Envelope">>$LOG
echo "FromName - $FromName">>$LOG

# put message to uucp mail box by uux
#/usr/local/bin/uux -p -z `expr $1 : '.*%\(.*\)'`!rmail `expr $1 :'\(.*\)%.*'`@`expr $1 : '.*%\(.*\)'`.domain.dom <$TempFile /usr/bin/uux -p -z $NameSyst!rmail $Envelope <$TempFile

rm $TempFile


18:50:35.48 2 ROUTER LoginPage@relay35.domain.net accepted by LOCAL as <LoginPage> at <relay35.domain.net>
18:50:35.49 2 WEB-00002(postmaster) [150018] composed. 724 bytes, 1 recipients
18:50:35.49 2 ROUTER <admin@uutest.domain.com> accepted by PIPE as <[FILE] [RETPATH] uuDelivery admin%test uutest.domain.com> at <10> (can relay)
18:50:35.49 5 QUEUE([150018]) header: Received: from [195.184.192.254] (account postmaster@relay35.domain.net)  by relay35.domain.net (CommuniGate Pro WebUser 4.2)  with HTTP id 150018 for admin@uutest.domain.com; Fri, 27 Aug 2004 18:50:35 +0300
18:50:35.49 5 QUEUE([150018]) header: From: <postmaster@relay35.domain.net>
18:50:35.49 5 QUEUE([150018]) header: Subject: control 22
18:50:35.49 5 QUEUE([150018]) header: To: admin@uutest.domain.com
18:50:35.49 5 QUEUE([150018]) header: X-Mailer: CommuniGate Pro WebUser Interface v.4.2
18:50:35.49 5 QUEUE([150018]) header: Date: Fri, 27 Aug 2004 18:50:35 +0300
18:50:35.49 5 QUEUE([150018]) header: Message-ID: <web-150018@relay35.domain.net>
18:50:35.49 5 QUEUE([150018]) header: MIME-Version: 1.0
18:50:35.49 5 QUEUE([150018]) header: Content-Type: text/plain; charset="KOI8-U"; format="flowed"
18:50:35.49 5 QUEUE([150018]) header: Content-Transfer-Encoding: 8bit
18:50:35.49 5 QUEUE([150018]) header: 
18:50:35.49 4 QUEUE([150018]) enqueued, nTotal=1
18:50:35.49 2 QUEUE([150018]) from <postmaster@relay35.domain.net>, 724 bytes (<web-150018@relay35.domain.net>)
18:50:35.49 4 QUEUE([150018]) opened, nOpen=1
18:50:35.49 4 PIPE(10) record created
18:50:35.49 4 PIPE(10) [150018] enqueueing (new)
18:50:35.49 5 PIPE waiting: 10   active:   
18:50:35.49 5 PIPE(10) ready in queue
18:50:35.49 2 ENQUEUER-01([150018]) enqueued
18:50:35.49 4 QUEUE([150018]) closed, nOpen=0
18:50:35.49 5 PIPE waiting:    active: 10  
18:50:35.49 4 PIPE queue is empty
18:50:35.49 4 PIPE(1) delivering
18:50:35.49 4 QUEUE([150018]) opened, nOpen=1
18:50:35.49 4 PIPE(1) [150018] processing with /usr/local/sbin/CommuniGate/uuDelivery admin%test uutest.domain.com -f Queue/150018.msg -p "<postmaster@relay35.domain.net>"
18:50:35.61 4 QUEUE([150018]) closed, nOpen=0
18:50:35.61 4 PIPE(1) [150018] delivered to '[FILE] [RETPATH] uuDelivery admin%test uutest.domain.com'
18:50:35.61 2 DEQUEUER [150018] PIPE(10)[FILE] [RETPATH] uuDelivery admin%test uutest.domain.com delivered
18:50:35.61 4 QUEUE([150018]) dequeued, nTotal=0
18:50:35.61 5 PIPE(10) record disposed
18:50:35.61 5 PIPE waiting(get):    active:   
18:50:35.61 4 PIPE queue is empty
18:50:35.61 2 QUEUE([150018]) deleted

===
тут по логу вроде все нормально, но в uucp ничего не появляется, да и в ее логе тоже.....вообще ничего, даже ошибок нет

-- 
Regards, Vyacheslav.
System administrator.
VVG-RIPE
Получено Fri Aug 27 15:56:30 2004

Этот архив был сгенерирован hypermail 2.1.8 : Fri 24 Apr 2015 - 16:13:10 MSK