Re: Accept mail for hostmaster@.*

2001-02-13 Thread Johan Almqvist

* Fredrik Steen <[EMAIL PROTECTED]> [010213 15:08]:
> I'm trying to setup a Qmail server. I need it to accept mail for
> hostmaster@.* without any configuration for new hosts.
> Example:
> Is this possible?

Besides all the other notes that have been posted, you realize that this
means you'll never be able to send mail to hostmasters around the world?

If that's really what you want to do, patch qmail-smtpd to lie about the
RCPT TO it read, or patch qmail-send to handle hostmaster@ differently.

This may be one of the occasion where the obscurness of the task requires
the obscureness of sendmail.cf

-Johan
-- 
Johan Almqvist
http://www.almqvist.net/johan/qmail/

 PGP signature


Re: Accept mail for hostmaster@.*

2001-02-13 Thread Peter van Dijk

On Tue, Feb 13, 2001 at 06:49:16PM +0100, Fredrik Steen wrote:
[snip]
> 
> I need to do this because of the extra administration to add and to delete
> domains that don't get approved at the nic. The people registrating
> domains don't know that mush :). I have a "daemon" that manager
> these files but they never get deleted and the files get really
> huge becase of so many tries on a domainnames that don't go thru the
> registration process.. 

Then do a cleanup every once in a while. End of problem.

Greetz, Peter.



Re: Accept mail for hostmaster@.*

2001-02-13 Thread Fredrik Steen

On Tue, Feb 13, 2001 at 04:02:47PM +0100, Martin Akesson wrote:
| On Tue, Feb 13, 2001 at 03:44:20PM +0100, Fredrik Steen mumbled:
| > | > 
| > | > I'm trying to setup a Qmail server. I need it to accept mail for
| > | > hostmaster@.* without any configuration for new hosts.
| 
| Umm..  I think you are making it harder than what it really is.  If the
| qmail server is setup to as MX and is ready to receive mail all you need
| to do is add yourdomain.com to /var/qmail/control/rcpthosts.  Dont
| forget to restart qmail.
| 
| That will tell qmail to start receiving mail for your new domain.  If
| you already have a .qmail-hostmaster file in /var/qmail/aliases then
| your are ready to receive.
| 
| /M
| 

I need to do this because of the extra administration to add and to delete
domains that don't get approved at the nic. The people registrating
domains don't know that mush :). I have a "daemon" that manager
these files but they never get deleted and the files get really
huge becase of so many tries on a domainnames that don't go thru the
registration process.. 

-- 
.Fredrik Steen
- http://www.stone.nu -



Re: Accept mail for hostmaster@.*

2001-02-13 Thread Greg White

On Tue, Feb 13, 2001 at 04:02:47PM +0100, Martin Akesson wrote:
> On Tue, Feb 13, 2001 at 03:44:20PM +0100, Fredrik Steen mumbled:
> > | > 
> > | > I'm trying to setup a Qmail server. I need it to accept mail for
> > | > hostmaster@.* without any configuration for new hosts.
> 
> Umm..  I think you are making it harder than what it really is.  If the
> qmail server is setup to as MX and is ready to receive mail all you need
> to do is add yourdomain.com to /var/qmail/control/rcpthosts.  Dont
> forget to restart qmail.
> 
Don't just add it to rcpthosts without adding it to locals, or forcing
an smtproute for the domain in question, or you'll get:

<[EMAIL PROTECTED]>
Sorry. Although I'm listed as a best-preference MX or a for that host,
it isn't in my control/locals file, so I don't treat it as local
(#5.4.6).

P.S., it's unnecessary to restart qmail just to reread control/locals
and control/rcpthosts. SIGHUP does this for you, without a restart.


-- 
Greg White
Those who make peaceful revolution impossible will make violent
revolution inevitable.
-- John F. Kennedy



Re: Accept mail for hostmaster@.*

2001-02-13 Thread Peter van Dijk

On Tue, Feb 13, 2001 at 04:02:47PM +0100, Martin Akesson wrote:
> On Tue, Feb 13, 2001 at 03:44:20PM +0100, Fredrik Steen mumbled:
> > | > 
> > | > I'm trying to setup a Qmail server. I need it to accept mail for
> > | > hostmaster@.* without any configuration for new hosts.
> 
> Umm..  I think you are making it harder than what it really is.  If the
> qmail server is setup to as MX and is ready to receive mail all you need
> to do is add yourdomain.com to /var/qmail/control/rcpthosts.  Dont
> forget to restart qmail.

And /var/qmail/control/locals.

Greetz, Peter.



Re: Accept mail for hostmaster@.*

2001-02-13 Thread Martin Akesson

On Tue, Feb 13, 2001 at 03:44:20PM +0100, Fredrik Steen mumbled:
> | > 
> | > I'm trying to setup a Qmail server. I need it to accept mail for
> | > hostmaster@.* without any configuration for new hosts.

Umm..  I think you are making it harder than what it really is.  If the
qmail server is setup to as MX and is ready to receive mail all you need
to do is add yourdomain.com to /var/qmail/control/rcpthosts.  Dont
forget to restart qmail.

That will tell qmail to start receiving mail for your new domain.  If
you already have a .qmail-hostmaster file in /var/qmail/aliases then
your are ready to receive.

/M



Re: Accept mail for hostmaster@.*

2001-02-13 Thread Fredrik Steen

On Tue, Feb 13, 2001 at 03:15:27PM +0100, Peter van Dijk wrote:
| On Tue, Feb 13, 2001 at 03:08:52PM +0100, Fredrik Steen wrote:
| > Hi,
| > 
| > I'm trying to setup a Qmail server. I need it to accept mail for
| > hostmaster@.* without any configuration for new hosts.
| > Example:
| > I configure the DNS to answer querys for domain test.com.
| > I put up mx records for test.com to point to the qmailserver.
| > I send a mail to [EMAIL PROTECTED] and I want it to get accepted not
| > bounced or something just accepted.
| > 
| > Is this possible?
| 
| It is ridiculous. What keeps you from updating configfiles on the
| mailserver?
| 
| Greetz, Peter.

Some nic's want to check that a site is configured for the domain you
want to buy. For example. We want to reg test.xx we type in
all the information about the company wanting to reg this domain dns
servers etc.. Then they check that your dns servers are okay that is
no problemo and then they check if there is a [EMAIL PROTECTED]
problemo. We change the [EMAIL PROTECTED] in the test.xx zone 
to [EMAIL PROTECTED] so there will always be a hostmaster address.
The nic's dns/mx/mail.. checking program doesen't check the test.xx
zones soa at our servers. 

blurb... I hope you understand my messy mail.. 

-- 
.Fredrik Steen
- http://www.stone.nu -



Re: Accept mail for hostmaster@.*

2001-02-13 Thread Peter van Dijk

On Tue, Feb 13, 2001 at 03:08:52PM +0100, Fredrik Steen wrote:
> Hi,
> 
> I'm trying to setup a Qmail server. I need it to accept mail for
> hostmaster@.* without any configuration for new hosts.
> Example:
> I configure the DNS to answer querys for domain test.com.
> I put up mx records for test.com to point to the qmailserver.
> I send a mail to [EMAIL PROTECTED] and I want it to get accepted not
> bounced or something just accepted.
> 
> Is this possible?

It is ridiculous. What keeps you from updating configfiles on the
mailserver?

Greetz, Peter.