ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Aeliya Grevnyov <gray_graff@list.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] postfix. уведомление о письме письмом на другой ящик
Date: Wed, 01 Oct 2008 00:36:24 +0800
Message-ID: <gbtkh2$h64$2@ger.gmane.org> (raw)
In-Reply-To: <gbtcod$g59$1@ger.gmane.org>

да простят меня обладатели прямых рук :)
сделал, как смог
поправил скрипт. теперь он такой:

#!/bin/bash
to=`grep $2 /etc/postfix/notify_users | cut -d "#" -f 2`
/usr/sbin/sendmail -f $1 $2
echo "`date +%D_%T` mail from: $1" | /bin/mail -s mail $to

notify_users имеет вид
user@domain.ru FILTER redirect: #user@domain2.ru

в master.cf
redirect  unix  -       n       n       -       -       pipe
  flags=R user=virtual:virtual argv=/etc/postfix/notify-script ${sender}
${recipient}

и все работает



      parent reply	other threads:[~2008-09-30 16:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-30 14:23 Aeliya Grevnyov
2008-09-30 14:40 ` Dmitriy Kruglikov
2008-09-30 15:01   ` Aeliya Grevnyov
2008-09-30 16:36 ` Aeliya Grevnyov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='gbtkh2$h64$2@ger.gmane.org' \
    --to=gray_graff@list.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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