Re: vhost popper?
A simpler way would be to add a mapping in the pop server that first
checks through the virtualuser table (what sendmail uses) for the
email address requested.
Then just uses (for example:) joe21 as the real mailbox. This way you
don't haveto listen on different IP's, and you don't have to have other config files.
So, user puts email@example.com in the username field of his pop client,
your server translates this to joe21, and retrives the mail in a normal
One way of making it easer is to call "sendmail -bv firstname.lastname@example.org"
directly from the popserver and see that the output is.
On Thu, 26 Mar 1998 email@example.com wrote:
> On Thu, 26 Mar 1998, Jens B. Jorgensen wrote:
> : This should be easy enough (at least the networking part). A socket
> : must be bound to an IP/port before it can listen for connections. In
> : sockets programming servers generally bind to the address '0' which
> : means any address. You can easily bind to a specific IP address. If
> : you've set up an ip-alias then that solves that problem. Then you just
> : have to figure out how to hack the program so that it accesses a
> : different source for passwords--you can replace getpwent by fgetpwent.
> : Better yet you can use a custom user database and have your clients
> : use APOP authentication instead of POP3's usual 'here, let me send
> : your password in the clear of the network' method. Of course then your
> : clients will have to use Eudora...
> <sigh> ... well, I'll pull out the Stevens network programming book
> tonight. I guess I could use Perl, but this seems like a good
> opportunity to get a firmet grip on C.
> My clients will never use only one email program ... we're an ISP. I
> see a lot of Netscape, IE, Exchange ... blech.
> Thinking further on this, I see delivery will have to be looked into ...
> each user still needs a unique mailbox.
> I'll see what I can do :)
> : firstname.lastname@example.org wrote:
> : > I was just thinking (it's dangerous, I don't like to do it often) ... we
> : > support quite a few virtual host customers around here. Now, there are
> : > solutions for http and ftp, but for email we've been using the
> : > virtusertable capabilities of sendmail. This works well when someone
> : > wants to receive their email at an offsite location. However, we have a
> : > lot of customers who don't want (or know how to) run their own mail
> : > server, or web server, so they come to us with a request for a virtual
> : > host and a list of 20-30 email addresses for their employees. It's
> : > really hard to explain why they can have an email address like
> : > "email@example.com" but they have to retrieve mail from our mail
> : > server with a username like "joe21".
> : >
> : > So, now to the question :) Is there a hack for popper so that it
> : > listens to different IP addresses, and access a different
> : > username/password database depending on which IP the request arrived at?
> : > I hope that makes sense ... I also hope someone smarter than me has
> : > thought about it and implemented it. Otherwise, I may try to get my
> : > hands dirty ... the real programmers won't like my code at all :)
> : >
> : > Thanks,
> : >
> : > --
> : > Nathan Norman
> : > MidcoNet - 410 South Phillips Avenue - Sioux Falls, SD 57104
> : > mailto://firstname.lastname@example.org http://www.midco.net
> : > finger email@example.com for PGP Key: (0xA33B86E9)
> : >
> : > --
> : > To UNSUBSCRIBE, email to firstname.lastname@example.org
> : > with a subject of "unsubscribe". Trouble? Contact email@example.com
> : --
> : Jens B. Jorgensen
> : firstname.lastname@example.org
> To UNSUBSCRIBE, email to email@example.com
> with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org
To UNSUBSCRIBE, email to email@example.com
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org