ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Andrew S. Golubev" <gottfrid@mail.ru>
To: <mandrake-russian@altlinux.ru>
Cc: <gottfrid@yandex.ru>
Subject: [mdk-re] Exim + Fetchmail + Cyrus Дублирование почты с внешних адресов и игнорирование "Сс" :(
Date: Wed Feb 20 23:32:01 2002
Message-ID: <007901c1ba4e$dfa25de0$0585a8c0@laczga> (raw)
In-Reply-To: <20020220224200.5fb138a2.gosha@sendmail.ru>

Доброго времени суток :-)

Имеется домен my.spb.ru, вся почта приходящая в домен складывается
провайдером в единственный pop3 ящик my@provider.ru
У меня стоит сервер который забирает почту с pop3 fetchmail'ом.
Далее работает exim. Потом cyrus-pop3d раздает ее пользователям.
Проблема состоит в том, что если отправить почту с любого внешнего
адреса(user@some.net) на внутренний(user1@my.spb.ru) и указать в поле
копия еще один внутренний(user2@my.spb.ru) адрес, то письмо придет user1
и my (на которого fetchmail забирает почту).
Как от этого избавиться? 
Помогите пожалуйста. Подскажите где искать, что читать...

P.S. Вот мои конфиги. 

/etc/fetchmailrc
set logfile "/var/log/fetchmail.log" #syslog
set idfile "/var/lock/fetchmail"
set postmaster "ego"
set bouncemail
set properties ""
set daemon 300
poll pop.provider.ru via pop.provider.ru
    with proto pop3
user my there with password secret is my here

/etc/exim/exim.conf
######################################################################
#                    MAIN CONFIGURATION SETTINGS                     #
######################################################################
primary_hostname = anapurna.my.spb.ru
qualify_domain = anapurna.my.spb.ru
message_filter = /etc/exim/filter/main.filter
message_filter_file_transport = address_file
message_filter_pipe_transport = address_pipe
message_filter_reply_transport = address_reply
local_domains = my.spb.ru:anapurna.my.spb.ru:localhost
local_domains_include_host = true
local_domains_include_host_literals = true
forbid_domain_literals
never_users = root
host_lookup = *
host_accept_relay = *
trusted_users = mail
smtp_accept_queue_per_connection = 100
queue_remote_domains = *
 smtp.wplus.net
freeze_tell_mailmaster = true
received_header_text = "Received: \
         ${if def:sender_rcvhost {from ${sender_rcvhost}\n\t}\
         {${if def:sender_ident {from ${sender_ident} }}\
         ${if def:sender_helo_name {(helo=${sender_helo_name})\n\t}}}}\
         by ${primary_hostname} \
         ${if def:received_protocol {with ${received_protocol}}} \
         (Exim ${version_number} #${compile_number} (Debian))\n\t\
         id ${message_id}\
         ${if def:received_for {\n\tfor <$received_for>}}"
#######accept_8bitmime = true
end
######################################################################
#                      TRANSPORTS CONFIGURATION                      #
######################################################################
#                       ORDER DOES NOT MATTER                        #
#     Only one appropriate transport is called for each delivery.    #
######################################################################
local_delivery:
  driver = appendfile
  group = mail
  mode = 0660
  mode_fail_narrower = false
  envelope_to_add = true
  return_path_add = true
  file = /var/spool/mail/${local_part}

address_pipe:
  driver = pipe
  path = /usr/bin:/bin:/usr/local/bin
  return_output

address_file:
  driver = appendfile
  envelope_to_add = true
  return_path_add = true

address_directory:
  driver = appendfile
  no_from_hack
  prefix = ""
  suffix = ""
# maildir_format

address_reply:
  driver = autoreply

procmail_pipe:
  driver = pipe
  command = "/usr/bin/procmail -d ${local_part}"
  return_path_add
  delivery_date_add
  envelope_to_add
  check_string = "From "
  escape_string = ">From "
  user = $local_part
  group = mail

remote_smtp:
  driver = smtp
# authenticate_hosts = smarthost.isp.com
end
######################################################################
#                      DIRECTORS CONFIGURATION                       #
#             Specifies how local addresses are handled              #
######################################################################
#                          ORDER DOES MATTER                         #
#   A local address is passed to each in turn until it is accepted.  #
######################################################################
real_local:
  prefix = real-
  driver = localuser
  transport = local_delivery

system_aliases:
  driver = aliasfile
  file_transport = address_file
  pipe_transport = address_pipe
  file = /etc/aliases
  search_type = lsearch
# user = list
# Uncomment the above line if you are running smartlist

userforward:
  driver = forwardfile
  file_transport = address_file
  pipe_transport = address_pipe
  reply_transport = address_reply
  no_verify
  check_ancestor
  check_local_user
  file = .forward
  modemask = 002
  filter

procmail:
  driver = localuser
  transport = procmail_pipe
  require_files =
${local_part}:+${home}:+${home}/.procmailrc:+/usr/bin/procmail
  no_verify
    
localuser:
  driver = localuser
  transport = local_delivery

end
######################################################################
#                      ROUTERS CONFIGURATION                         #
#            Specifies how remote addresses are handled              #
######################################################################
#                          ORDER DOES MATTER                         #
#  A remote address is passed to each in turn until it is accepted.  #
######################################################################

# Remote addresses are those with a domain that does not match any item
# in the "local_domains" setting above.

# Send all mail to a smarthost

smarthost:
  driver = domainlist
  transport = remote_smtp
  route_list = "* smtp.provider.ru bydns_a"

end
...
/etc/exim/filter/mail.filter
# Exim filter << Don't edit or remove this line!
# 	
# 
#
# User1 
#          if $header_to: contains "user1@my.spb.ru" then
#	    unseen deliver "user1@my.spb.ru" 
## User1
	   elif $header_to: contains "user2@my.spb.ru" then
	    unseen deliver "user2@my.spb.ru"
## User3
	   elif $header_to: contains "user3@my.spb.ru" then
	    unseen deliver "user3@my.spb.ru"
## My
    endif





  reply	other threads:[~2002-02-20 23:32 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-19 10:43 [mdk-re] Подсчет трафика Roman_Tutov
2002-02-19 10:45 ` Korshunov Ilya
2002-02-19 10:57   ` [mdk-re] Re[2]: " Roman_Tutov
2002-02-19 12:05   ` Artem Pastuchov
2002-02-19 12:11     ` admin
2002-02-19 12:22       ` [mdk-re] Re[2]: " Roman_Tutov
2002-02-19 12:35 ` [mdk-re] " Michael Shigorin
2002-02-19 13:02   ` Sergey Vlasov
2002-02-19 14:23     ` Grigory Milev
2002-02-19 14:56       ` Dmitriy Gnidchenko
2002-02-20  7:27         ` Maxim Mitrofanov
2002-02-20 11:25           ` Dmitriy Gnidchenko
2002-02-20 11:42             ` [mdk-re] Re[2]: " Artem Pastuchov
2002-02-20 11:50             ` Tihonov Vladimir
2002-02-20 12:14               ` Vyt
2002-02-20 12:22                 ` Maxim Mitrofanov
2002-02-20 12:44                   ` [mdk-re] Re[2]: " Artem Pastuchov
2002-02-20 13:17                     ` Maxim Mitrofanov
2002-02-20 12:42                 ` [mdk-re] " Artem Pastuchov
2002-02-20 20:30                   ` Gosha
2002-02-21 15:09                     ` Fred
2002-02-21 18:17                       ` Gosha
2002-02-22 15:52                         ` Fred
2002-02-24  9:15                           ` Gosha
2002-02-20 12:49                 ` Tihonov Vladimir
2002-02-21 11:31                   ` [mdk-re] Re: [mdk-re] Re: ðÏÄÓÞÅÔ ÔÒÁÆÉËÁ Russu V.F.
2002-02-21 15:30         ` [mdk-re] Re: Подсчет трафика Dmitriy
2002-02-19 17:11 ` [mdk-re] Re: [mdk-re] " Чужой
2002-02-19 17:39   ` Gosha
2002-02-19 17:36 ` Gosha
2002-02-19 17:41   ` Gosha
2002-02-19 17:48     ` [mdk-re] Re[2]: " roman_tutov
2002-02-19 21:22       ` [mdk-re] Re: [mdk-re] Gosha
2002-02-20  9:53         ` roman_tutov
2002-02-20 20:40           ` Gosha
2002-02-20 23:32             ` Andrew S. Golubev [this message]
2002-02-21  9:49             ` Re[2]: " roman_tutov
2002-02-21 12:14               ` [mdk-re] Michael Shigorin
2002-02-21 12:47                 ` roman_tutov
2002-02-21 13:47                   ` Re[2]: " Maxim
2002-02-21 23:53                     ` Re[2]: [mdk-re] Re: [JT] Postgres, Firebird, DB2 & Others (все грабли всех СУБД) Roman S
2002-02-21 18:07               ` Re[2]: [mdk-re] Re: [mdk-re] Gosha

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='007901c1ba4e$dfa25de0$0585a8c0@laczga' \
    --to=gottfrid@mail.ru \
    --cc=gottfrid@yandex.ru \
    --cc=mandrake-russian@altlinux.ru \
    /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