On Tue Jun 18, 2002 at 12:34:52PM -0400, Barry Michels wrote:

> Is there a way to get qmail to automatically forward everything it receives?
> I would like qmail to get the incoming mail and pass it on, unaltered to our
> Exchange Server.  Hopefully without adding all the user accounts to our
> Linux box.
> Eventually, I would have qmail filter the mail before passing it on, but
> first things first...

Having qmail filter the mail and then pass it on might be a little
problematic (read: not as easy to setup).  Simply passing it on is
simple.

Make sure the domain you want to receive for is in
/var/qmail/control/rcpthosts and then make a
/var/qmail/control/smtproutes file which contains:

domain:destination

In other words, if you want all mail to foo.com to go to the IP
10.0.0.28, you would use:

foo.com:10.0.0.28

in your smtproutes file.  Restart qmail and it should work fine.

-- 
MandrakeSoft Security; http://www.mandrakesecure.net/
"lynx -source http://www.freezer-burn.org/bios/vdanen.gpg | gpg --import"
1024D/FE6F2AFD   88D8 0D23 8D4B 3407 5BD7  66F9 2043 D0E5 FE6F 2AFD

Current Linux kernel 2.4.18-6.10mdk uptime: 15 days 15 hours 58 minutes.

Attachment: msg55590/pgp00000.pgp
Description: PGP signature

Reply via email to