On Mon, Jul 24, 2000 at 03:05:08PM -0400, Nakul Hoelz wrote > Hello, > I have a 2 mail servers for our domain, both running debian gnu > linux. > The first one has a DNS mailexchange value of 0 the other has a DNS > mailchange value of 5... > i.e. all email should be pouring into the main mail machine for our > domain.... > somehow though email ended up on the secondary mail server and I would > like to send the email in the mailboxes of the secondary mail server to > the primary mail server... > How can I do that? I have so far not been able to come up with > anything... > shouldn't there be an easy way of postprocessing the mailbox files under > /var/spool/mail/USERNAME split the messages into the original messages > and to send them on to the main mailserver? > Any help is appreciated. > Nakul >
You should do two things: - set up your secondary MX so that it forwards all mail to your primary, and does no local deliveries; - look at man 1 formail, which can feed /usr/sbin/sendmail to do what you want on a mailbox-by-mailbox basis. John P. -- [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.mdt.net.au/~john Debian Linux admin & support:technical services