> Hi there,
> 
> Is there any way that we can configure the smtp server in such a way
> that we can customize according to a certain group. Like for a group
> called blah, I want to use smtp.abc.com and for blah1 I want to user
> smtp.abc1.com.
> 
> Any suggestion or documentation.
> 
> 
> Thank you.
> 
> Warm Reards,
> 
> Ranjan

        For a quick and dirty hack, you could make .qmail-user files that
forwarded to the appropo server on a per user basis, or for a more
centralized/easier to manage thing, maybe setup fastforward to use a
sendmail aliases file.  

        You could also get into some advanced .qmail-default tricks if you
wanted to; something like the following in .qmail-default would probably
do the trick though...

# .qmail-default - WARNING - UNTESTED - MAY NOT WORK AT ALL!!!!
#
| if `egrep -wq $LOCAL -f /path/group1` ; then forward $[EMAIL PROTECTED] ; fi
| if `egrep -wq $LOCAL -f /path/group2` ; then forward $[EMAIL PROTECTED] ; fi
#
# Repeat for each group, and then put usernames in appropo group on SMTP
# server.

        Not sure about the above .qmail trick, it's not somehing I've ever
done anything similar to in practice, and I'm not positive the |'d input
will work in the midst of a if/fi statement but in theory it seems logical
to me.  :)  Cheers!

-- A.L.

--------------------------------------------------------------------------
If what they've been doing hasn't solved the problem, tell them to do
something else.
        -- Gerald Weinberg, "The Secrets of Consulting"
--------------------------------------------------------------------------

Reply via email to