Dan Farrell said the following:
> Hi all!  I have a central mailhub for my network and I want it to
> recieve mail for all hosts on the network.  It is the only host capable
> of actually recieving mail and so I would like anything addressed to
> *.spore.ath.cx to go to spore.ath.cx instead.  
>   
Hi Dan,
I might be wrong on this, but I think this will work:

The idea is to have your mail.spore.ath.cx box process all your mail. 
If I understand you correctly, you want any mail, whether sent
internally, or received externally, to end up on this box.  So first of
all, it has to recognize that it should be the final destination for
mail addressed like that.

(a preliminary step, which it looks like you've already done, is to have
your router pass any incoming SMTP traffic to mail.spore.ath.cx)

1) mydestination =
    - change it to include all the other hosts on your local network
that you want to accept mail for.
    ex: mydestination = $mydomain, localhost.$mydomain, mail.$mydomain,
davey.$mydomain, foo.$mydomain

Now, that's all well and good, but it also has to know what an
acceptable <user>@*.spore.cth.cx is.

2) local_recipient_maps =
    - this one may or may not need to be changed, I don't know enough
about it to give you any solid advice - check the documentation on this
one.  It will depend on how you're authenticating users, too...

Once those things are done, any external email that's addressed to any
of your machines should be nicely deposited on your mailserver.

The next thing to consider is mail that gets sent internally.  For that,
each of the machines on your network should use mail.$mydomain as their
relay host.  For this to work, a) the mailserver has to be willing to
relay their mail, and b) they need to know that they should relay mail
to the mailserver.

3a)(on the mailserver) mynetworks=
      - this should be set to allow your local network to relay mail
through the mailserver.  It looks like you've set it up already.

3b)(on each machine) relayhost=
    - here, I'm assuming that you're using postfix to send mail on each
of your hosts.  You'll want to put in mail.$mydomain as your relay host.

Oh, and actually, you also need:
mydestination=<blank> on each local machine - this is assuming you want
all logs and such going to the mailserver too - I'm not sure if that's
what you want or not...  You could play around with this by allowing
localhost as a destination on each machine, and specifying
[EMAIL PROTECTED] as the log email destination, for example.

Hope that helps,
- nkm
-- 
gentoo-user@gentoo.org mailing list

Reply via email to