[exim] .forward

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Stefan Klatt
日付:  
To: Exim users mailing list
古いトピック: [exim] Smarthost to another MTA on the same host?
題目: [exim] .forward
Hi folk,

at the moment i use exim 4.63 (the best mta i ever saw!) and i have two
questions about the .forward file:

Is there an size limit for exim 4.63 and 4.66?

If i have an error at the .forward file exim sends thousand and more
error emails that there is an error and after a while exim stores the
emails at the standard inbox of the user.
Is there a way to send only one error email (probably one for each email
the user gets) to the user and stop forwarding for this user until the
error is fixed?

Is the option skip_syntax_errors the key for this behavior? But without
this option the user doesn't get any error email:-(
And if i implement an special condition for the error emails the user
gets thousand and more error emails.

i use the following router:

user_filter:
driver = redirect
domains = +imap_domains
# condition = ${if eq{${LDAP_USER}}{} {FALSE}{TRUE}}
# caseful_local_part = true
# local_part_suffix = +* : -*
# local_part_suffix_optional
# file = /srv/imapd/user/$local_part/.forward
file = ${LDAP_USRPATH}/.forward
headers_add = Router: user_filter
allow_filter
no_verify
no_expn
no_rewrite
check_ancestor
user = email
group = email
file_transport = address_file
# pipe_transport = address_pipe
reply_transport = address_reply
redirect_router = local_user
skip_syntax_errors
syntax_errors_to = $local_part@$domain
syntax_errors_text = \
This is an automatically generated message. An error has\n\
been found in your .forward file. Details of the error are\n\
reported below. While this error persists, you will receive\n\
a copy of this message for every message that is addressed\n\
to you. If your .forward file is a filter file, or if it is\n\
a non-filter file containing no valid forwarding addresses,\n\
a copy of each incoming message will be put in your normal\n\
mailbox. If a non-filter file contains at least one valid\n\
forwarding address, forwarding to the valid addresses will\n\
happen, and those will be the only deliveries that occur.

local_user:
driver = accept
domains = +imap_domains
debug_print = "**** local_user for $local_part@$domain"
headers_add = Router: local_user
caseful_local_part = true
# local_part_suffix = +* : -*
# local_part_suffix_optional
# transport = imap_ltcp
transport = maildir
no_more


Mfg.
Stefan Klatt
begin:vcard
fn:Stefan Klatt
n:Klatt;Stefan
org:CaC
adr:;;Triftstrasse 9;Frankfurt;Hessen;60528;Germany
email;internet:stefan.klatt@???
title:Netzwerkspezialist
tel;cell:+49-172-6807809
version:2.1
end:vcard