ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Slava Dubrovskiy <slava@tangramltd.com>
To: slava@tangramltd.com,
	ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Дублирование писем в postfix
Date: Fri, 23 Feb 2007 17:44:24 +0200
Message-ID: <45DF0BD8.8020207@tangramltd.com> (raw)
In-Reply-To: <45D44F38.9030909@tangramltd.com>

[-- Attachment #1: Type: text/plain, Size: 1773 bytes --]

Slava Dubrovskiy пишет:
> Здравствуйте.
> Помогите разобраться почему дублируются письма.
>
> Решил прикрутить спамассассин к постфиксу. Т.к. хотят, чтобы письма не
> фильтровались, а просто анализировались и дописывался в заголовок
> уровень спама, то использовать amavis-new нельзя.
>
> Прикручивал так:
> в master.cf добавил
> smtp      inet  n       -       n       -       -       smtpd
>     -o content_filter=spamassassin:dummy      # добавил эту строку
>
> И сам фильтр.
> spamassassin unix -     n       n       -       5       pipe
>     user=spamd argv=/usr/bin/spamc -f -e
>     /usr/sbin/sendmail -oi -f ${sender} ${recipient}
>
> сервер настроен на виртуальных пользователей (стоит dovecot)
>
> virtual_mailbox_domains = /etc/postfix/vhosts
> virtual_mailbox_base = /var/spool/vmail
> virtual_mailbox_maps = hash:/etc/postfix/vmaps
> virtual_alias_maps = hash:/etc/postfix/valias
> virtual_uid_maps = static:5000
> virtual_gid_maps = static:5000
> virtual_minimum_uid = 5000
>
> В valias:
> spam@e.ca          spam@e.ca, slava@e.ca
>
> Отсылаю письмо на spam@e.ca
> Получаю 2 письма в slava@e.ca и одно в spam@e.ca
>
> Как можно решить эту проблему?
>   
Решил проблему
в main.cf добавил
receive_override_options = no_address_mappings
а в master.cf
smtp    inet    n       -       -       -       -       smtpd
    -o receive_override_options=

-- 
WBR,
Dubrovskiy Vyacheslav


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3249 bytes --]

      parent reply	other threads:[~2007-02-23 15:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-15 12:16 Slava Dubrovskiy
2007-02-15 13:00 ` Глодин С.В.
2007-02-15 13:38   ` Slava Dubrovskiy
2007-02-15 13:48     ` Slava Dubrovskiy
2007-02-15 13:21 ` Serge
2007-02-15 13:52   ` Slava Dubrovskiy
2007-02-15 14:31 ` Slava Dubrovskiy
2007-02-23 15:44 ` Slava Dubrovskiy [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=45DF0BD8.8020207@tangramltd.com \
    --to=slava@tangramltd.com \
    --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