Koozali.org: home of the SME Server

Forwarding e-mail to multiple e-mail accounts not hosted on

Andrew Sheehy

Forwarding e-mail to multiple e-mail accounts not hosted on
« on: March 28, 2003, 08:18:56 PM »
How can I forward incoming e-mail to multiple e-mail accounts.  The e-mail accounts that are being forwarded to are *not* on the same server so I cannot make add them to a group and forward to that.

Any help would be appreciated.

Bill Talcott

Re: Forwarding e-mail to multiple e-mail accounts not hosted
« Reply #1 on: March 28, 2003, 09:17:37 PM »
You can make a local account which forwards to the real account. Have sue@mysme.com forward to sue@herisp.net, then include the user sue in your group.

I'm not sure if there's a more elegant way than that...

Andrew Sheehy

Re: Forwarding e-mail to multiple e-mail accounts not hosted
« Reply #2 on: March 28, 2003, 10:37:34 PM »
I figured it out.  As soon as I posted I remembered that qmail uses a config file in a person's home directory (usually) to control things like forwarding, vacation messages, piping,,,,etc.

Sure enough, in the root of each person's home directory was a .qmail file.  After going to the qmail web site, I saw that this can control forwarding.  This is done by listing the accounts that are to be forwarded to and prepending a '&'.  

So, typically, the .qmail file looks like

#------------------------------------------------------------
# DO NOT MODIFY THIS FILE! It is updated automatically by the
# e-smith server and gateway software. Instead, modify the source
# template in the /etc/e-smith/templates directory. For more
# information, see http://www.e-smith.org.
#
# copyright (C) 1999-2001 e-smith, inc.
#------------------------------------------------------------
./Maildir/

#------------------------------------------------------------
# TEMPLATE END
#------------------------------------------------------------

with no forwarding.

After I turned on forwarding, it looks like

#------------------------------------------------------------
# DO NOT MODIFY THIS FILE! It is updated automatically by the
# e-smith server and gateway software. Instead, modify the source
# template in the /etc/e-smith/templates directory. For more
# information, see http://www.e-smith.org.
#
# copyright (C) 1999-2001 e-smith, inc.
#------------------------------------------------------------
./Maildir/
&mstolic@YYYYYYYYYY.com
&fgairdner@XXXXXXX.com

#------------------------------------------------------------
# TEMPLATE END
#------------------------------------------------------------

Of course this solution does not comply with how e-smith does things.  Right in the .qmail file it tells you not to do what I have done.  Good advice which I usually follow.  However this change only has to last 5 biz days and I do not want these changes to be permanent.