Having been charged with the task of creating a new mail server for our
local Sun boxes, I looked at sendmail again, realized what a pain it would
be and turned to qmail. Setup of qmail has been relatively easy considering
until last week I hadn't even heard about it before.
I've been through various docs (LWQ, FAQTS, online man pages) and been
searching through the archives, but I don't think I've quite gotten a
handle on how to do what I want to do with qmail.
For testing I have set-up a qmail server and a mini-qmail installation on
two machines. The qmail server will act as a mail hub for all internal Sun
boxes to send outgoing mail through, as well as a redirection server for
incoming mail to the domain pern.com (names changed to protect the
helpless).
I have manage to configure the mini-qmail server to send out through the
mail hub and have messages appear as [EMAIL PROTECTED] even though the internal
network has a different domain name. Very cool.
I have also managed to send mail to [EMAIL PROTECTED] and have it
redirected to my real email address on our Notes server, appearing as from
the original sender and to the intended recipient. This is good as well as
we have many addresses for support purposes, such as [EMAIL PROTECTED], that
presently get forwarded to real users via sendmail aliases.
No local deliveries are to be performed. The qmail server is only to
redirect mail.
Any local mail sent from a Sun box on our network should be redirected to a
real email address on our Notes server. Our Sun user accounts vary, but our
Notes addresses take the form of [EMAIL PROTECTED]
Mail coming in to the qmail server must also be redirected, regardless if
an account exists on the qmail server. Some of the incoming mail is to
groups, some to individual users.
My questions are:
1) How do I prevent qmail from trying to deliver locally on the qmail
server? I read the man page for qmail-users, but I'm not sure if that is
what I need to use.
2) How can I correctly set-up the group redirects in a way that will
eliminate (if not reduce) duplication due to an error sending to one
address in the group?
3) What would be a good way of redirecting local names to the appropriate
email address for the local messages from our Sun servers (ie: bobs ->
[EMAIL PROTECTED]): individual /var/qmail/alias files, or some other
method?
I would prefer to avoid using fastforward if possible, but am willing to
change my mind if it would make the administration easier. The user list is
relatively small (about 30) and doesn't change all that often. The current
sendmail alias list is about 30 lines long, but could probably be pared
down as I don't believe it has been updated in a while.
A quick diagram of the flow would be something like this:
external mail to [EMAIL PROTECTED] --> qmail server --> support-group
[[EMAIL PROTECTED], [EMAIL PROTECTED], ...]
external mail to [EMAIL PROTECTED] --> qmail server -->
[EMAIL PROTECTED]
local internal mail to brubble --> qmail server -->
[EMAIL PROTECTED]
A user may or may not appear in a group in addition to having their own
mail redirected. That is:
external mail to [EMAIL PROTECTED] --> qmail server --> [EMAIL PROTECTED]
external mail to [EMAIL PROTECTED] --> qmail server --> info-group
[[EMAIL PROTECTED], [EMAIL PROTECTED] ...]
Suggestions would be greatly appreciated. TIA
Dion Vansevenant
Internetwork Administrator
MRO.com