Значит имеем Exim настроенный по доке в комплекте с
http://silverwraith.com/vexim/ . Нужно настроить автоматическое
сохранение копий пользовательской почты. Вот что написано в транспорте
последние два блока взял из доки
http://www.devco.net/archives/2006/03/24/saving_copies_of_all_email_using_exi..
. почему не работает не пойму,
пока работает только сохранение исходящий почты. Помогите друзья!!!!
######################################################################
# TRANSPORTS CONFIGURATION #
######################################################################
# ORDER DOES NOT MATTER #
# Only one appropriate transport is called for each delivery. #
######################################################################
# A transport is used only when referenced from a router that successfully
# handles an address.
begin transports
# This transport is used for delivering messages over SMTP connections.
remote_smtp:
driver = smtp
# This transport is used for local delivery to user mailboxes in traditional
# BSD mailbox format. By default it will be run under the uid and gid of the
# local user, and requires the sticky bit to be set on the /var/mail directory.
# Some systems use the alternative approach of running mail deliveries under a
# particular group instead of using the sticky bit. The commented options below
# show how this can be done.
# local_delivery:
# driver = appendfile
# file = /var/mail/backup/mail
# delivery_date_add
# envelope_to_add
# return_path_add
# group = vexim
# user = vexim
# mode = 0660
# no_mode_fail_narrower
virtual_delivery:
driver = appendfile
envelope_to_add
return_path_add
mode = 0600
maildir_format = true
create_directory = true
directory = ${lookup mysql{select smtp from users,domains \
where localpart = '${quote_mysql:$local_part}' \
and domain = '${quote_mysql:$domain}' \
and users.domain_id = domains.domain_id}}
user = ${lookup mysql{select users.uid from users,domains \
where localpart = '${quote_mysql:$local_part}' \
and domain = '${quote_mysql:$domain}' \
and users.domain_id = domains.domain_id}}
group = ${lookup mysql{select users.gid from users,domains \
where localpart = '${quote_mysql:$local_part}' \
and domain = '${quote_mysql:$domain}' \
and users.domain_id = domains.domain_id}}
quota = ${lookup mysql{select users.quota from users,domains \
where localpart = '${quote_mysql:$local_part}' \
and domain = '${quote_mysql:$domain}' \
and users.domain_id = domains.domain_id}{${value}M}}
quota_is_inclusive = false
#quota_size_regex = ,S=(\d+):
quota_warn_threshold = 75%
maildir_use_size_file = false
quota_warn_message = "To: $local_part@$domain\n\
Subject: Mailbox quota warning\n\n\
This message was automatically generated by the mail delivery software.\n\n\
You are now using over 75% of your allocated mail storage quota.\n\n\
If your mailbox fills completely, further incoming messages will be automatically\n\
returned to their senders.\n\n\
Please take note of this and remove unwanted mail from your mailbox.\n"
virtual_vacation_delivery:
driver = autoreply
from = "${local_part}@${domain}"
to = ${sender_address}
subject = "Autoreply from ${local_part}@${domain}"
text = ${lookup mysql{select vacation from users,domains \
where domain='${quote_mysql:$domain}' \
and localpart='${quote_mysql:$local_part}' \
and users.domain_id=domains.domain_id}}
mailman_transport:
driver = pipe
command = MAILMAN_WRAP \
'${if def:local_part_suffix \
{${sg{$local_part_suffix}{-(\\w+)(\\+.*)?}{\$1}}} \
{post}}' \
$local_part
current_directory = MAILMAN_HOME
shadow_transport = local_copy_incoming
home_directory = MAILMAN_HOME
user = MAILMAN_USER
group = MAILMAN_GROUP
# This transport is used for handling pipe deliveries generated by alias or
# .forward files. If the pipe generates any standard output, it is returned
# to the sender of the message as a delivery error. Set return_fail_output
# instead of return_output if you want this to happen only when the pipe fails
# to complete normally. You can set different transports for aliases and
# forwards if you want to - see the references to address_pipe in the routers
# section above.
address_pipe:
driver = pipe
return_output
user = ${lookup mysql{select users.uid from users,domains where localpart = '${quote_mysql:$local_part}' and domain = '${quote_mysql:$domain}' and users.do
group = ${lookup mysql{select users.gid from users,domains where localpart = '${quote_mysql:$local_part}' and domain = '${quote_mysql:$domain}' and users.d
address_pipe_catchall:
driver = pipe
return_output
user = ${lookup mysql{select users.uid from users,domains where localpart = '*' and domain = '${quote_mysql:$domain}' and users.domain_id = domains.domain_
group = ${lookup mysql{select users.gid from users,domains where localpart = '*' and domain = '${quote_mysql:$domain}' and users.domain_id = domains.domain
address_pipe_local:
driver = pipe
return_output
# This transport is used for handling deliveries directly to files that are
# generated by aliasing or forwarding.
address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
# This transport is used for handling autoreplies generated by the filtering
# option of the userforward router.
address_reply:
driver = autoreply
local_copy_outgoing:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
group = vexim
user = vexim
mode = 0660
maildir_format = true
create_directory = true
address_directory:
driver = appendfile
create_directory
delivery_date_add
directory_mode = 770
envelope_to_add
maildir_format
return_path_add
shadow_transport = local_copy_incoming
shadow_condition = ${if eq {$domain}{pupkin.ru}{yes}{no}}
local_copy_incoming:
driver = appendfile
directory = /var/mail/pupkin.ru/.${tr{$sender_address}{.}{_}}.outgoing/
delivery_date_add
envelope_to_add
return_path_add
group = vexim
user = vexim
mode = 0660
maildir_format = true
create_directory = true
Ответ на:
комментарий
от chocholl
Ответ на:
комментарий
от osipen
Ответ на:
комментарий
от Anoxemian
Ответ на:
комментарий
от sdio
Ответ на:
комментарий
от Anoxemian
Ответ на:
комментарий
от osipen
Ответ на:
комментарий
от Anoxemian
Ответ на:
комментарий
от osipen
Ответ на:
комментарий
от chocholl
Ответ на:
комментарий
от osipen
Ответ на:
комментарий
от chocholl
Ответ на:
комментарий
от osipen
Ответ на:
комментарий
от chocholl
Ответ на:
комментарий
от osipen
Ответ на:
комментарий
от chocholl
Ответ на:
комментарий
от osipen
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.
Похожие темы
- Форум Exim выполнить mysql INSERT (2013)
- Форум exim + procmail (2011)
- Форум Помогите составить кондишн для exim (2020)
- Форум dkim, exim и dovecot-lda (2013)
- Форум Авторизация на SMTP - не работает (2013)
- Форум Exim, почему не работает при удалении лишнего? (2018)
- Форум exim проблема с отправкой (2018)
- Форум exim + cyrus + mysql - virtualdomains (2008)
- Форум exim + vesta - проблема с отправкой писем с сайтов (2017)
- Форум Exim бэкап исходящей почты (2009)