On Mon, 19 Mar 2007 20:41:54 -0600 Neal McConachie <[EMAIL PROTECTED]> wrote:
> 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 = I chose not to change that, the main.cf comments seemed to suggest it made things more difficult. > Once those things are done, any external email that's addressed to any > of your machines should be nicely deposited on your mailserver. That's working very well, thank you. > 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. I tried that, but unfortunately the mails then bounced back and forth indefinitely. The best I could do was put the right address in ~/.forward > Hope that helps, > - nkm At least external mail is routed correctly ; ) In one sense, if I address mail to a host that doesn't accept mail, I guess it's my fault. Thanks for the advice. -- gentoo-user@gentoo.org mailing list