Koozali.org: home of the SME Server

Fowarding mail to 2 or more accounts

ChanChong

Fowarding mail to 2 or more accounts
« on: September 12, 2002, 08:58:40 AM »
Hi,

I have a problem, how can I foward mails from an account to 2 or more accounts? I know it works if you forward to only one account. However, when I add another account, the 2nd account does not recieve the mails.

I tried using commas and semi-colons, however, it does not work. Can someone pls enlighten me. Thanks.

Cheers.

Sean Kannegiesser

Re: Fowarding mail to 2 or more accounts
« Reply #1 on: September 12, 2002, 11:09:01 AM »
Question.. Is this e-mail box that you want to have it forward to 2 e-mail addresses a primary domain or a virtual domain??

I think you might be able to do it with a virtual domain. Just have to mess with the custom-templates

Example:
pico /etc/e-smith/templates-custom/var/qmail/control/virtualdomains/90aliases

edit that template "will have to make if you haven't already"
and put
sales@domain.com:user1
sales@domain.com:user2

Try that.. That might work..

Darrell May

Re: Fowarding mail to 2 or more accounts
« Reply #2 on: September 12, 2002, 11:24:18 AM »
IIRC, for internal users you may create a group, add the recipients as members to the group, then forward to the group.

If you mean to forward to external addresses then create a custom procmail rule (man procmailrc).

Darrell

ChanChong

Re: Fowarding mail to 2 or more accounts
« Reply #3 on: September 12, 2002, 02:36:40 PM »
Thanks for the advice... I managed to create a group and then use the group to do the forwarding.

Thanks again!