[Dovecot] Setting a Default Domain

Richard Laager rlaager at wiktel.com
Tue Mar 28 09:13:15 EEST 2006


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.

Thanks,
Richard




More information about the dovecot mailing list