ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Автоответчик Vacation
@ 2002-11-29 11:39 Прокопьев Евгений
  2002-11-29 12:51 ` [Comm] " Dmitry A. Legkikh
  0 siblings, 1 reply; 2+ messages in thread
From: Прокопьев Евгений @ 2002-11-29 11:39 UTC (permalink / raw)
  To: community

Здравствуйте!

Скачиваю vacation-1.2.6.1.tar.gz с vacation.sourceforge.net

Пытаюсь его установить:

# make install
install -s -m 755 vacation /usr/bin/vacation
install -s -m 755 vaclook /usr/bin/vaclook
strip: /usr/bin/vaclook: File format not recognized
install: strip failed
install -m 444 vacation.man /usr/man/man1/vacation.1
install: cannot create regular file `/usr/man/man1/vacation.1': No such 
file or directory
make: *** [install] Error 1

Затем от имени пользователя john запускаю vacation, после чего в 
домашней директории создаются cледующие файлы:

# cat /home/john/.forward
\john, "|/usr/bin/vacation john"

# cat /home/john/.vacation.msg
Subject: away from my mail

I will not be reading my mail for a while.
Your mail concerning "$SUBJECT"
will be read when I'm back.

Тем не менее, когда пользователь test посылает пользователю john письмо, 
в логе появляется следующее

Nov 29 14:29:38 firebird postfix/pickup[10845]: 5A3443AA: uid=502 
from=<test>
Nov 29 14:29:38 firebird postfix/cleanup[12651]: 5A3443AA: 
message-id=<20021129112938.5A3443AA@firebird.iserv.donpac.ru>
Nov 29 14:29:38 firebird postfix/qmgr[1348]: 5A3443AA: 
from=<test@firebird.iserv.donpac.ru>, size=309, nrcpt=1 (queue active)
Nov 29 14:29:38 firebird postfix/local[12652]: 5A3443AA: 
to=<john@firebird.iserv.donpac.ru>, relay=local, delay=0, status=sent 
("|/usr/bin/procmail -a $DOMAIN -d $LOGNAME")
Nov 29 14:29:38 firebird postfix/local[12652]: 5A3443AA: 
to=<john@firebird.iserv.donpac.ru>, relay=local, delay=0, status=bounced 
(mail to command is restricted)
Nov 29 14:29:38 firebird postfix/cleanup[12651]: 7DAB43B3: 
message-id=<20021129112938.7DAB43B3@firebird.iserv.donpac.ru>
Nov 29 14:29:38 firebird postfix/qmgr[1348]: 7DAB43B3: from=<>, 
size=1971, nrcpt=1 (queue active)
Nov 29 14:29:38 firebird postfix/local[12652]: 7DAB43B3: 
to=<test@firebird.iserv.donpac.ru>, relay=local, delay=0, status=sent 
("|/usr/bin/procmail -a $DOMAIN -d $LOGNAME")

А пользователь test получает от автоответчика не то, что ожидается, а 
следующее:

 From MAILER-DAEMON  Fri Nov 29 14:36:42 2002
Return-Path: <>
Delivered-To: test@firebird.iserv.donpac.ru
Received: by firebird.iserv.donpac.ru (Postfix)
	id 454BA3B9; Fri, 29 Nov 2002 14:36:42 +0300 (MSK)
Date: Fri, 29 Nov 2002 14:36:42 +0300 (MSK)
From: MAILER-DAEMON@firebird.iserv.donpac.ru (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: test@firebird.iserv.donpac.ru
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
	boundary="EEF593B2.1038569802/firebird.iserv.donpac.ru"
Message-Id: <20021129113642.454BA3B9@firebird.iserv.donpac.ru>
Status: O

This is a MIME-encapsulated message.

--EEF593B2.1038569802/firebird.iserv.donpac.ru
Content-Description: Notification
Content-Type: text/plain

This is the Postfix program at host firebird.iserv.donpac.ru.

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the message returned below.

			The Postfix program

<john@firebird.iserv.donpac.ru>: mail to command is restricted

--EEF593B2.1038569802/firebird.iserv.donpac.ru
Content-Description: Delivery error report
Content-Type: message/delivery-status

Reporting-MTA: dns; firebird.iserv.donpac.ru
Arrival-Date: Fri, 29 Nov 2002 14:36:41 +0300 (MSK)

Final-Recipient: rfc822; john@firebird.iserv.donpac.ru
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; mail to command is restricted

--EEF593B2.1038569802/firebird.iserv.donpac.ru
Content-Description: Undelivered Message
Content-Type: message/rfc822

Received: by firebird.iserv.donpac.ru (Postfix, from userid 502)
	id EEF593B2; Fri, 29 Nov 2002 14:36:41 +0300 (MSK)
To: john@firebird.iserv.donpac.ru
Message-Id: <20021129113641.EEF593B2@firebird.iserv.donpac.ru>
Date: Fri, 29 Nov 2002 14:36:41 +0300 (MSK)
From: test@firebird.iserv.donpac.ru

hello

--EEF593B2.1038569802/firebird.iserv.donpac.ru--

Кажется, что-то надо подкрутить в постфиксе, но что (и его ли), я не 
знаю. Помогите

--
С уважением, Прокопьев Евгений



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Comm] Re: [Comm] Автоответчик Vacation
  2002-11-29 11:39 [Comm] Автоответчик Vacation Прокопьев Евгений
@ 2002-11-29 12:51 ` Dmitry A. Legkikh
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry A. Legkikh @ 2002-11-29 12:51 UTC (permalink / raw)
  To: Прокопьев
	Евгений

Hello,
Friday, November 29, 2002, 2:39:35 PM, you wrote:

ПЕ> Здравствуйте!
ПЕ> Скачиваю vacation-1.2.6.1.tar.gz с vacation.sourceforge.net

[skip]

Зачем же так сложно?
Уж лучше procmail скрипт написать:

SHELL=/bin/sh    # for other shells, this might need adjustment

:0 Whc: vacation.lock
 # Perform a quick check to see if the mail was addressed to us
* $^To:.*\<$\LOGNAME\>
 # Don't reply to daemons and mailinglists
* !^FROM_DAEMON
 # Mail loops are evil
* !^X-Loop: your@own.mail.address
| formail -rD 8192 vacation.cache

  :0 ehc         # if the name was not in the cache
  | (formail -rI"Precedence: junk" \
       -A"X-Loop: your@own.mail.address" ; \
     echo "I received your mail,"; \
     echo "but I won't be back until Monday."; \
     echo "-- "; cat $HOME/.signature \
    ) | $SENDMAIL -oi -t


взято целиком из man procmailex

-- 
Best regards,
 Dmitry



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-29 12:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-29 11:39 [Comm] Автоответчик Vacation Прокопьев Евгений
2002-11-29 12:51 ` [Comm] " Dmitry A. Legkikh

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git