ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: <pustovit@romul.com.ua>
To: <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] замена From: в Postfix
Date: Wed, 23 Dec 2009 10:25:59 +0200
Message-ID: <F4EAE5A50DD4284FA989696644EC86D203FB4ABC@exchsrv.romul.local> (raw)
In-Reply-To: <1261506328.8278.6.camel@mikes-ws.shuvaloffs.net>

Может и не совсем кошерно, но если просто нужно заменить From: можно так, как в принципе и другие заголовки:

В /etc/postfix/main.cf добавляем 
header_checks = pcre:/etc/postfix/header_checks.pcre

Сам /etc/postfix/header_checks.pcre :

/^From:.*<user1@domain1\.com>$/	REPLACE From: <user2@domain2.com>

Ну и дальше вариации с регэкспами...

Да, только надо доставить postfix-pcre.

>Добрый вечер!

>Локальный Postfix настроил как транслятор. Почта уходит, но вот как
>настроить замену from: в сообщениях с user1@domain1 на user2@domain2 ?
>Чего-то я не дочитал. Отправляю файлы с помощью mpack.



  parent reply	other threads:[~2009-12-23  8:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-22 18:25 Михаил Шувалов
2009-12-22 18:27 ` Michael Shigorin
2009-12-24 10:22   ` Михаил Шувалов
2009-12-23  8:25 ` pustovit [this message]
2009-12-23  9:11   ` Patlasov YuriI

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=F4EAE5A50DD4284FA989696644EC86D203FB4ABC@exchsrv.romul.local \
    --to=pustovit@romul.com.ua \
    --cc=sysadmins@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 sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

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


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