I actually have two domains doing this, so here's how I set it up.

First off, I set up a POP mailbox on a (real) generic domain that I use for administrative purposes:

[EMAIL PROTECTED]

Next, under SMTP Security, under "Copy all mail" I clicked the "Enable" checkbox and entered my "[EMAIL PROTECTED]" address as the recipient address.

Next, I created a rules.ima file (filter) in the directory of the [EMAIL PROTECTED] user:

[EMAIL PROTECTED]:domain1-out
[EMAIL PROTECTED]:domain1-in
[EMAIL PROTECTED]:domain2-out
[EMAIL PROTECTED]:domain2-in
F!=Foqy4te0f0xo:NUL
T!=Foqy4te0f0xo:NUL

The first line catches all outbound email that contains "domain1.com" in the FROM header and sends it to the domain1-out mailbox. The second line catches any mail that contains "domain1.com" in the TO header and sends it to the domain1-in mailbox. The next two lines do the same for domain2.

The last two lines check for the existence of a nonsense string, in the from/to headers, and if it does not exist (which it won't), it bins the message. This makes sure that any mail NOT for domain1 or domain2 does not get stuffed into the [EMAIL PROTECTED] mailbox. Technically, no email should ever get into the [EMAIL PROTECTED] mailbox, but for some reason, the odd one does, from random domains - an IMail bug, I'm sure. I clear out that mailbox every couple months or so (it grows to around a megabyte in size).

Lastly, I set up domain1-out.fwd domain1-in.fwd domain2-out.fwd and domain2-in.fwd files in the same directory. These files simply contain the email address of whoever it is that is going to receive the forwarded copies of the email.

Works great.

At 04:07 PM 12/19/2003, William Raby wrote:

I have a client that would like to receive all email sent and received by their employees on their domain.  Can anyone tell me how this could be accomplished for only one domain on the server.  I appreciate the help.

 

Thanks in advance.

Bill

Reply via email to