This is a discussion on copy all outoging messages to a an account within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; Hi, I have installed qmail-1.03+domain tools+ucspi-tcp.It works fine. It has 10 users including my ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I have installed qmail-1.03+domain tools+ucspi-tcp.It works fine. It has 10 users including my boss .Now my boss want the copies of all outgoing messages that are sent by the users to his account . He only want the outgoing messages not the incomming messages . Is it possible .How I can do that .Please help me.Thankx. |
|
|||
|
"learnq" <learnq@gmail.com> writes:
> I have installed qmail-1.03+domain tools+ucspi-tcp.It works fine. > It has 10 users including my boss .Now my boss want the copies of all > outgoing messages that are sent by the users to his account . > He only want the outgoing messages not the incomming messages . Use QUEUE_EXTRA[1] to copy all messages to a "log" address, then set up ~alias/.qmail-log to identify the "outgoing"[2] messages and save a copy[3]. Footnotes: [1] http://lifewithqmail.org/lwq.html#queue_extra [2] Define "outgoing". Originated by a local user? Originated from a local system? Does that include mail from a local user to another local user? Or maybe it means "not originated from an external user"? Or "not delivered to a local user"? [3] You can't forward from ~alias/.qmail-log when using QUEUE_EXTRA because a delivery loop will occur--unless you forward through a mechanism that bypasses QUEUE_EXTRA, like a second qmail installation. -- Dave Sill Oak Ridge National Lab, Workstation Support Author, The qmail Handbook <http://web.infoave.net/~dsill> <http://lifewithqmail.org/>: Almost everything you always wanted to know. |
|
|||
|
"learnq" <learnq@gmail.com> writes:
> Thanks a lot for reply . I am new on qmail can you > please discribe some more about [2],[3] .. With QUEUE_EXTRA, *all* messages that pass through that qmail installation will be delivered to ~alias/.qmail-log. If you want to log them all, just put something like: ./Maillog/ in .qmail-log and run "maildirmake ~alias/Maillog". If you want to be more selective, e.g., only logging "outgoing" messages, you first need to define what you mean by an outgoing message, then you can construct a .qmail-log that identifies outgoing messages and logs them. If .qmail-log contains an entry like: &theboss@example.com intended to send the boss a copy of every message, then *that* forwarded message will go through QUEUE_EXTRA, and qmail will attempt to forward it to theboss again, etc. If you really can't settle for logging to a local mailbox, you can set up a second qmail installation, say /var/qmail2, that doesn't use QUEUE_EXTRA. Then in .qmail-log you can do something like: |/var/qmail2/bin/forward theboss@example.com But that's a pain in the ass. -- Dave Sill Oak Ridge National Lab, Workstation Support Author, The qmail Handbook <http://web.infoave.net/~dsill> <http://lifewithqmail.org/>: Almost everything you always wanted to know. |
|
|||
|
Hi,
What I need to write in in .qmail-log so that "only outgoing "message from aa @ domainname.com , bb @ domainname.com go to boss @ domainname.com I mean by "outgoing" is that message sent from user aa @ domainname.com to anyone (local&outside) go to boss @ domainname.com . Plz help .I do not install another qmail to do that job if it possible with one qmail . Thank a lot again for your replies . |