Your admin isn't completely correct. You can also add the domains to
virtualdomains, which can let you aggregate subdomains and do delivery in
your program. Giving your admin the benefit of the doubt, that you don't
have any possibility of aggregation, then yes, you have to put 3000 names in
the locals file.
Anyway, it sounds to me like you're trying to re-invent the wheel. Have you
looked at the qmailadmin suite from inter7.com?
On Fri, Jan 28, 2000 at 12:08:23AM -0600, Scott Beck wrote:
>
> On 27-Jan-00 Scott Schappell wrote:
> <SNIP>
> > That also has to assume the MX entry is correct
> > for his domain, that all mail goes to that machine.
> > In my example: silvertree.org IN MX 10 arthur.silvertree.org.
> >
> > The FAQ I am referencing is:
> > http://cr.yp.to/qmail/faq/incominghost.html#local
> >
> <SNIP>
>
> I have read this FAQ but failed to understand it because I did
> not know what they meant by DNS entry. Maybe I should explain
> the situation a little better.
>
> I am not the server administrator. I am just a Perl programmer
> trying to make things work correctly for a program I wrote. The
> server administrator told me the only way to get mail from
> <anyone>@<sub>.domain was to add an entry in /var/qmail/control/locals
> for each <sub>.domain. I did not believe him because the amount
> of entries in that file could be over 3000 (eek) so I tested it
> and my test email was bounced.
>
> I sent an email to [EMAIL PROTECTED] domain was entered in
> /var/qmail/control/locals but sub.domain was not. There was a line in
> /etc/aliases.cdb for [EMAIL PROTECTED] to be delivered to me@domain
> and the email bounced. The log said that qmail was not trying to
> deliver it locally.
>
> The program I am writting will just need to set up forwards for
> people that do not have an actual local email account just a
> subdomain account.
>
> I guess what my question should have been was where do I need to make
> entries when someone signs up for an email forward account?
> The forwards will be done with fastforward and I have already made the
> script that writes them to /etc/aliases.cdb.
>
> Sorry for the confusion
> Scott
>
> -----------------------------------------------------------------
> E-Mail: Scott Beck <[EMAIL PROTECTED]>
> Address: 3542 Pine Bettle Ln. Sulphur La. 70663
> Phone: (318) 527-9518
> Date: 27-Jan-00
> Time: 23:40:16
> -----------------------------------------------------------------
--
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.