Well you know what they say about necessity being the
mother of invention...

I pounded out a patch that allows you to do IP virtual based
domain hosting for dbmail v2.0.4.

Currently the patch only supports IMAP, but I expect by the
end of the day I'll have POP supported as well.

The premis of the patch is that you add a new table called
dbmail_domains, where you put a domain with an IP.  Then
when a new connection is made to the server, it figures out
what IP the client connected to, checks if the username is
fully qualified, of not, the domain that matches the IP from
the table is appended to the login name.

So it's expected that the usernames are fully qualified, however
the patch is also backwards compatable.  If you simply don't
define any domains to IP mappings the code will simply pass
the username through.

Patch can be found at:
http://dbmail.org/mantis/bug_view_advanced_page.php?bug_id=0000209

Check back later today for the updated version with POP support.

*NOTE*
I'd really like a developer to look at the code.  I believe it to
be completely safe, but since I had to make minor changes to the
serverchild.c function I want to be sure that I did not violate
anything.

--
David A. Niblett               | email: [EMAIL PROTECTED]
Network Administrator          | Phone: (352) 334-3400
Gainesville Regional Utilities | Web: http://www.gru.net/



-----Original Message-----
From: Niblett, David A 
Sent: Wednesday, May 25, 2005 7:49 AM
To: 'DBMail mailinglist'
Subject: RE: [Dbmail] Question about Virtual Domains


Thanks.  I was beginning to think that no one understood
what I wrote.

I'd love to make all my users change to fully qualified
name, but that's going to be exceptionally difficult with
the number I have and time alloted.

I'm looking at using perdition to act as the front end
and "append" any domain that it needs to, to the username.

Maybe I'll look at making a patch to the IMAP server such
that you can define client_idnr to IP address.

--
David A. Niblett               | email: [EMAIL PROTECTED]
Network Administrator          | Phone: (352) 334-3400
Gainesville Regional Utilities | Web: http://www.gru.net/



-----Original Message-----
From: Blake Mitchell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 24, 2005 4:28 PM
To: DBMail mailinglist
Subject: Re: [Dbmail] Question about Virtual Domains


It's a simple matter of having enough information to figure out who a 
person is. If you have identical user names for different domains, and 
they are different people, then you need some other piece of identifying 
information to figure out the domain. Be it a separate port or IP, or a 
domain in the login, there has to be something to tell these people apart.

DBMail uses a unique login, which is definitely a simpler way to deal 
with things. So the only way to get what you want is to have a separate 
install of dbmail for each of your domains. Not optimal in my opinion. 
If there is no way to convince your users they need to use their full 
email address as a login, you may just be better off sticking with what 
you have now.

Niblett, David A wrote:
> I understand the client_idnr field, but I don't understand how IMAP
> will determine when user 'xyz' from domain1 logs in and user 'xyz' 
> from domain2 logs in.  Right now I run a separate IP per domain, and 
> unless I force all my users to connect with [EMAIL PROTECTED] (which 
> most likely won't happen) then I may be stuck here.
> 
> --
> David A. Niblett               | email: [EMAIL PROTECTED]
> Network Administrator          | Phone: (352) 334-3400
> Gainesville Regional Utilities | Web: http://www.gru.net/
> 
> 
> 
> -----Original Message-----
> From: Curtis Maurand [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 23, 2005 1:36 PM
> To: DBMail mailinglist
> Subject: Re: [Dbmail] Question about Virtual Domains
> 
> 
> Yes, it does work.  I do it now.  dbmail has a field for client id.
> 
> each user has an alias, but all of my users have a user name of their 
> email address and an alias that is also their email address, you can 
> set up multiple email addresses for each customer.
> 
> I'm using postfix/dbmail/amavisd-new/spamassassin/clamav  The same 
> things that the barracuda networks gizmo uses (they don't use dbmail).
> 
> Curtis
> 
> 
> Niblett, David A wrote:
> 
> 
>>I really hope that I'm missing something here.  How does DBMail deal 
>>with virtual domains?
>>
>>User: [EMAIL PROTECTED]
>>User: [EMAIL PROTECTED]
>>
>>Right now, unfortunately, most all my users would log in
>>as 'xyz' with POP server of 'mail.domain1.com'.
>>
>>Currently I have to run 3 IP addresses on a very old NTMail server in 
>>order to deal with virtual domains.  Can I do the same in DBMail, or 
>>how do I set it up to distinguish between the two users?
>>
>>--
>>David A. Niblett               | email: [EMAIL PROTECTED]
>>Network Administrator          | Phone: (352) 334-3400
>>Gainesville Regional Utilities | Web: http://www.gru.net/
>>
>>_______________________________________________
>>Dbmail mailing list
>>[email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail
>>
>> 
>>
> 
> 
> 
> _______________________________________________
> Dbmail mailing list
> [email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail
> _______________________________________________
> Dbmail mailing list
> [email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail
_______________________________________________
Dbmail mailing list
[email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to