Bernd Wurst <be...@bwurst.org> writes: > Learn about DNS. The protocols like POP3 and IMAP are not host name > dependant.
Some protocols are, or can be. (HTTP is the most obvious example.) However, that relies on the client telling the server what domain it's looking for, so it has to be built into the protocol. POP3 doesn't really have a provision for that. (I don't know IMAP.) SMTP does, in the sense that there's a domain built into the address to which the message is to be delivered, so it's possible not only to reject mail for domains you don't want to serve but also to send the messages to different mail boxes based on the domain. And Courier does have support for that. But with POP3 you have to do your differentiation in the username, because there's not really any domain information exchanged between the client and the server. This shouldn't be a problem, in practice, because you can introduce arbitrary hierarchies within the username namespace, and alias arbitrary incoming addresses to them. That is, your aliases file can look like this: f...@example.com: example_foo b...@example.com: example_bar f...@another.com: another_foo b...@another.com: another_bar It's even pretty trivial to write a script that generates this sort of alias file automatically and creates the accounts and mail dirs and whatever else you need, so the mail admin can basically just tell the script "create b...@isyouruncle.com" and voila. You then tell the user his email address is b...@isyouruncle.com and the POP3 settings are pop3.isyouruncle.com, port 110, username isyouruncle_bob, password WhAtEv3r And if Bob tries to use bob as his username without the domain information, the POP3 server isn't going to give him any mail. Which is basically what Martin asked for, modulo the word "DNS". -- Nathan Eady Galion Public Library ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users