Re: [exim] .forward file for virtual users]

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Petr Cernohouz
日付:  
To: exim-users
題目: Re: [exim] .forward file for virtual users]
user home directory is /virtual/$domain/$local_part and maildir is
/virtual/$domain/$local_part/Maildir/
I attempt place .forward file into home directory, but this not work, in
Maildir also not work, mail is delivered direct to maildir
Here is relevant parts of config

in router part:
userforward:
debug_print = "R: userforward for $local_part@$domain"
driver = redirect
domains = +local_domains
check_local_user
file = $home/.forward
no_verify
no_expn
check_ancestor
allow_filter
directory_transport = address_directory
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
skip_syntax_errors
syntax_errors_to = real-$local_part@$domain


virtual_user:
     driver = redirect
     allow_fail
     allow_defer
     data = ${lookup mysql{ SELECT maildir FROM users \
            WHERE id='${quote_mysql:${local_part}@${domain}}' }}
     directory_transport = virtual_directory


in transport:

virtual_directory:
     driver = appendfile
     quota = ${lookup mysql{ SELECT quota FROM users WHERE     
        id='${quote_mysql:${local_part}@${domain}}' }}
     quota_warn_threshold = 75%
     envelope_to_add = true
     return_path_add = true
     maildir_format
     quota_warn_message ="\
     To: $local_part@$domain\n\
     ...



W B Hacker wrote:
> Petr Cernohouz wrote:
>
>> hello,
>>
>> sorry for my english
>>
>> I have problem with settings forwarding for virtual users. data is in
>> MySQL and Maildir is in /virtual/domain.com/localpart/, all works fine,
>> but if creating .forward file in user home directory, exim the file
>> ignoring. Any idea how to?
>>
>> Thanks
>>
>
> Nothing to do with your English, but 'unaware of' more likely than ignoring.
>
> Parsing a .forward file is part of the delvery process, so Exim needs to detect
> these in the same place where it expects to deliver the mail.
>
> You did not actually specify Maildir storage, but if you meant your example,
> aboe to be;
>
> /virtual/$domain/$local_part/Maildir
>
> Then a 'conventional' .forward file needs to be in:
>
> /virtual/$domain/$local_part/Maildir/.forward
>
> - So that is where MySQL should drop them.
>
> You haven't specified where the '..user home directory' is located, but it must
> be eleswhere at present.
>
> HTH,
>
> Bill
>
>