Pete the Feet wrote: some progress made, comments inline.
>
> Hiya
>
> Just trying to solve a little puzzle here at work.

>
> We would like to use an e-smith box (on orange (DMZ) network
> of smoothwall / ipcop firewall) as a mail server for two
> domains, let us call them foo.com and foo.co.uk
e-smith 5.6 box set up as mail.foo.com, with foo.co.uk as a virtual domain
> All mail coming in to users at foo.com is to be stored in
> user mailboxes. This is so users can pop in themselves and
> pick it up (15 mailboxes max, pretty low volume). This bit is
> easy, and works out of the box.
yup, tis okay.
> All mail coming in to users at foo.co.uk should be forwarded
> to an MS Exchange server on the green network (25 mailboxes
> max, pretty low volume). This is the tricky bit. At the
> moment we have set up a username for each exchange user on
> the e-smith box, and a pop3 plugin for exchange then pops the
> mail from the e-smith box to the exchange box. HOWEVER, the
> e-smith frequently flakes out (too many pop3 connections) and
> this is therefore not a viable solution.
I setup a template fragment doing the following:
[root@e-smith]# mkdir -p /etc/e-smith/templates-custom/var/qmail/control/smtproutes
[root@e-smith]# cd /etc/e-smith/templates-custom/var/qmail/control/smtproutes
[root@e-smith]# echo foo.co.uk:1.2.3.4:25 > foo.co.uk
[root@e-smith]# /sbin/e-smith/expand-template /var/qmail/control/smtproutes
[root@e-smith]# /etc/rc.d/init.d/smtpfront-qmail restart
But mail sent to whoever@foo.co.uk still ends up in the mailbox of whoever@foo.com, not forwarded to the mailserver at 1.2.3.4:25.
Any idea where I'm going wrong?
> I would like the e-smith box to simply forward all mail
> address to any user at foo.co.uk to the exchange box. I have
> seen smtproute mentioned a few times, but am not sure if this
> is the way forward....
>
> Anyone else achieved or looking at this? and would care to
> gently poke me in the right direction? We're runnning e-smith
> 5.6, and I've canned Squid as its not required.
>
> TIA
>
> Pete