ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] Дублирование писем в postfix
@ 2007-02-15 12:16 Slava Dubrovskiy
  2007-02-15 13:00 ` Глодин С.В.
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Slava Dubrovskiy @ 2007-02-15 12:16 UTC (permalink / raw)
  To: Sysadmins

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

Здравствуйте.
Помогите разобраться почему дублируются письма.

Решил прикрутить спамассассин к постфиксу. Т.к. хотят, чтобы письма не
фильтровались, а просто анализировались и дописывался в заголовок
уровень спама, то использовать 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

Вот лог:
Feb 15 06:21:09 www postfix/smtpd[16797]: connect from
office.kiev.ua[83.144.203.2]
Feb 15 06:21:11 www postfix/smtpd[16797]: 014FAFA620:
client=office.kiev.ua[83.144.203.2], sasl_method=PLAIN,
sasl_username=slava@e.ca
Feb 15 06:21:11 www postfix/cleanup[16799]: 014FAFA620:
message-id=<45D4420F.2090409@e.ca>
Feb 15 06:21:11 www postfix/qmgr[16693]: 014FAFA620: from=<slava@e.ca>,
size=531, nrcpt=2 (queue active)
Feb 15 06:21:11 www postfix/smtpd[16797]: disconnect from
office.kiev.ua[83.144.203.2]
Feb 15 06:21:11 www spamd[455]: spamd: connection from
localhost.localdomain [127.0.0.1] at port 37442
Feb 15 06:21:11 www spamd[455]: spamd: setuid to spamd succeeded
Feb 15 06:21:12 www spamd[455]: spamd: processing message
<45D4420F.2090409@e.ca> for spamd:4001
Feb 15 06:21:16 www spamd[455]: spamd: clean message (0.0/4.0) for
spamd:4001 in 4.2 seconds, 512 bytes.
Feb 15 06:21:16 www spamd[455]: spamd: result: . 0 -
scantime=4.2,size=512,user=spamd,uid=4001,required_score=4.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=37442,mid=<45D4420F.2090409@e.ca>,autolearn=ham
Feb 15 06:21:16 www spamd[17380]: prefork: child states: II
Feb 15 06:21:16 www postfix/pickup[16692]: 60366FA62C: uid=4001
from=<slava@e.ca>
Feb 15 06:21:16 www postfix/cleanup[16799]: 60366FA62C:
message-id=<45D4420F.2090409@e.ca>
Feb 15 06:21:16 www postfix/pipe[16800]: 014FAFA620: to=<slava@e.ca>,
orig_to=<spam@e.ca>, relay=spamassassin, delay=6, status=sent (dummy)
Feb 15 06:21:16 www postfix/pipe[16800]: 014FAFA620: to=<spam@e.ca>,
relay=spamassassin, delay=6, status=sent (dummy)
Feb 15 06:21:16 www postfix/qmgr[16693]: 014FAFA620: removed
Feb 15 06:21:16 www postfix/qmgr[16693]: 60366FA62C: from=<slava@e.ca>,
size=818, nrcpt=3 (queue active)
Feb 15 06:21:16 www postfix/virtual[16804]: 60366FA62C: to=<slava@e.ca>,
relay=virtual, delay=0, status=sent (delivered to maildir)
Feb 15 06:21:16 www postfix/virtual[16804]: 60366FA62C: to=<slava@e.ca>,
orig_to=<spam@e.ca>, relay=virtual, delay=0, status=sent (delivered to
maildir)
Feb 15 06:21:16 www postfix/virtual[16804]: 60366FA62C: to=<spam@e.ca>,
relay=virtual, delay=0, status=sent (delivered to maildir)
Feb 15 06:21:16 www postfix/qmgr[16693]: 60366FA62C: removed

Как можно решить эту проблему?
Спасибо.

-- 
WBR,
Dubrovskiy Vyacheslav


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

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

end of thread, other threads:[~2007-02-23 15:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-15 12:16 [Sysadmins] Дублирование писем в postfix 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

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