[Dovecot] Setting a Default Domain
Daniel Watts
d at nielwatts.com
Tue Mar 28 12:57:12 EEST 2006
Richard Laager wrote:
>On Tue, 2006-03-28 at 14:19 +1000, Peter Fern wrote:
>
>
>>Richard Laager wrote:
>>
>>
>>
>>>I'm working on migrating to Dovecot. At the moment, I have a mail path
>>>that includes the domain, so I'm using %d to get that. However, if users
>>>authenticate without specifying a domain (i.e. using "bob" instead of
>>>"bob at wiktel.com"), then %d expands to nothing. I'd like to have that
>>>expand to a default domain (wiktel.com) instead. Is that possible?
>>>
>>>
>
>
>
>>You could use the perdition proxy to achieve this:
>>
>>http://www.vergenet.net/linux/perdition/
>>
>>
>
>Thank you for the suggestion. However, adding another layer of proxying
>for something so small seems like a bad idea. I'm currently using a SQL
>lookup to decide which requests are handled locally and which are
>proxied to the existing ("legacy") system that I'm migrating away from.
>I have this SQL lookup doing double-duty and adding the default domain
>if necessary.
>
>However, once the migration is complete, I won't need the proxy lookup
>anymore, so I'll want to get rid of the SQL overhead.
>
>A default domain configuration option is common in other mail servers,
>and very useful, so I'd like to see this in Dovecot as well. I could try
>to code it myself, if someone could steer me to roughly the right
>section of code.
>
>
>
>
This would be a great feature. Although if you're going to go through
the trouble why not create the ability for defaults for other variables?
Eg %h,%u,%n
How about general %-prefixed variable support and operations ;o)
More information about the dovecot
mailing list