Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

exim4: setting $home in a .forward-file

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


tehpeh at gmx

Oct 30, 2002, 9:50 AM

Post #1 of 7 (410 views)
Permalink
exim4: setting $home in a .forward-file

Hi,

We want to allow our virtual users to have a .forward file. But the
variable $home is expanded to the empty string, because I can't set the
"check_local_user" option for virtual users.

In exim3 I used the option "file_directory", but in exim4 it
disappeared, and "transport_home_directory" apparently doesn't work.

Has anybody a idea how can I manage to set $home?

Thanks for your consideration,
Thomas


### excerpts from /etc/exim/exim4.conf ###

virtual_userforward:
driver = redirect
# hard coded for test-purposes:
transport_current_directory = \
/usr/local/vdomains/${domain}/users/${local_part}
transport_home_directory = \
/usr/local/vdomains/${domain}/users/${local_part}
file = ${lookup mysql{ SELECT home FROM users \
WHERE id='${local_part}@${domain}' }}/.forward
no_verify
no_expn
forbid_filter_existstest
forbid_filter_lookup
check_ancestor
allow_filter
directory_transport = address_directory
reply_transport = address_reply
user = mail

# [...]

address_directory:
driver = appendfile
maildir_format
delivery_date_add
envelope_to_add
return_path_add


masta at perlgolf

Oct 30, 2002, 10:08 AM

Post #2 of 7 (411 views)
Permalink
Re: exim4: setting $home in a .forward-file [In reply to]

Thomas Pircher wrote:
> Hi,
>
> We want to allow our virtual users to have a .forward file. But the
> variable $home is expanded to the empty string, because I can't set the
> "check_local_user" option for virtual users.

http://mail.tmtowtdi.de/exim/exim-4.11-homedir.patch
Try this patch

ciao


tehpeh at gmx

Oct 30, 2002, 12:20 PM

Post #3 of 7 (411 views)
Permalink
Re: exim4: setting $home in a .forward-file [In reply to]

Nico Erfurth wrote:
> Thomas Pircher wrote:
> >We want to allow our virtual users to have a .forward file. But the
> >variable $home is expanded to the empty string, because I can't set the
> >"check_local_user" option for virtual users.
>
> http://mail.tmtowtdi.de/exim/exim-4.11-homedir.patch
> Try this patch

Thanks,

it works perfectly here, with exim-4.10. Do you know whether this (or a
similar) hack will find its way into an official release of exim?


Thomas


masta at perlgolf

Oct 30, 2002, 12:39 PM

Post #4 of 7 (409 views)
Permalink
Re: exim4: setting $home in a .forward-file [In reply to]

Thomas Pircher wrote:

>>>We want to allow our virtual users to have a .forward file. But the
>>>variable $home is expanded to the empty string, because I can't set the
>>>"check_local_user" option for virtual users.
>>
>>http://mail.tmtowtdi.de/exim/exim-4.11-homedir.patch
>>Try this patch
>
>
> Thanks,
>
> it works perfectly here, with exim-4.10. Do you know whether this (or a
> similar) hack will find its way into an official release of exim?

It was a wishlist item, and philip know about the patch, he said he will
have a look into it, so i think, if it's ok, it will be inlcuded in the
next version.

ciao


paul at neology

Jan 19, 2012, 1:41 AM

Post #5 of 7 (396 views)
Permalink
Re: exim4: setting $home in a .forward-file [In reply to]

Thomas Pircher <tehpeh <at> gmx.net> writes:

>
> Hi,
>
> We want to allow our virtual users to have a .forward file. But the
> variable $home is expanded to the empty string, because I can't set the
> "check_local_user" option for virtual users.
>
> In exim3 I used the option "file_directory", but in exim4 it
> disappeared, and "transport_home_directory" apparently doesn't work.
>
> Has anybody a idea how can I manage to set $home?

I found that setting the directory option on my transport also set the $home
variable for the user's filter, like so:

address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
maildir_format
directory = ${lookup mysql{MYSQL_Q_LOCALMAILACCOUNT_DIR}}





--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


graeme at graemef

Jan 19, 2012, 2:49 AM

Post #6 of 7 (393 views)
Permalink
Re: exim4: setting $home in a .forward-file [In reply to]

On Thu, 2012-01-19 at 09:41 +0000, Paul Diedericks wrote:
> Thomas Pircher <tehpeh <at> gmx.net> writes:

[something that's over 9 years old]

Paul, please be aware that when you're replying to list messages it's a
good idea to make sure that they're current. The message you replied to
via GMane was dated October 13th 2002!

Graeme


--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


paul at neology

Jan 19, 2012, 3:46 AM

Post #7 of 7 (392 views)
Permalink
Re: exim4: setting $home in a .forward-file [In reply to]

Graeme Fowler <graeme <at> graemef.net> writes:

>
> On Thu, 2012-01-19 at 09:41 +0000, Paul Diedericks wrote:
> > Thomas Pircher <tehpeh <at> gmx.net> writes:
>
> [something that's over 9 years old]
>
> Paul, please be aware that when you're replying to list messages it's a
> good idea to make sure that they're current. The message you replied to
> via GMane was dated October 13th 2002!
>
> Graeme
>

Lol - my bad, I though as much. The page @
http://comments.gmane.org/gmane.mail.exim.user/10271 doesn't indicate the year.

Anycase, I though I'd post since I had the same problem...



--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.