This is a discussion on Copying all outbound messages of certain user within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; I have a certain user that I need to monitor his outbound email messages. I would like to have them ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
A couple of ways to do it using the "aliases" file:
1. Send a copy to user2 user1 user1, user2 But be careful for bounces and return receipts to the originator if you are trying to do this covertly. 2. Append a copy to a local file touch /tmp/savefile chmod 622 /tmp/savefile chown root.mail savefile user1 user1, /tmp/savefile -- Greg Fugtruck wrote: > I have a certain user that I need to monitor his outbound email > messages. I would like to have them forwarded to another account. Is > there any way to do this within postfix? |
|
|||
|
So with option 1, if user1 sends a message, a copy of it will be sent to
user2, correct? Then so long as user2 does not bounce the message back or acknowledge to any return receipts, then user1 will never be aware? Greg Hackney wrote: > A couple of ways to do it using the "aliases" file: > > 1. Send a copy to user2 > > user1 user1, user2 > > But be careful for bounces and return receipts to the originator > if you are trying to do this covertly. > > 2. Append a copy to a local file > > touch /tmp/savefile > chmod 622 /tmp/savefile > chown root.mail savefile > > user1 user1, /tmp/savefile > > -- > Greg > > > Fugtruck wrote: > >> I have a certain user that I need to monitor his outbound email >> messages. I would like to have them forwarded to another account. Is >> there any way to do this within postfix? |
|
|||
|
Fugtruck wrote:
> So with option 1, if user1 sends a message, a copy of it will be sent to > user2, correct? Then so long as user2 does not bounce the message back > or acknowledge to any return receipts, then user1 will never be aware? Yes. Only the sender (not user1) would be aware of any returned messages (unless of couse, user1 was the sender... sending messages to himself). Another way to do it, is to pipe it through a script that is always successful, and who resends it as being from user "nobody". For example: user1 user1, |/tmp/script ===< /tmp/script >=== #!/bin/sh /usr/sbin/sendmail -f nobody user2 exit 0 -- Greg |
|
|||
|
Fugtruck <fugtruck@yahoo.com> wrote in news:4Nuwf.18846$UF3.13031
@newssvr25.news.prodigy.net: > I have a certain user that I need to monitor his outbound email > messages. I would like to have them forwarded to another account. Is > there any way to do this within postfix? Check out sender_bcc_maps, it does what you want. |
|
|||
|
Isn't aliases for inbound mail?
el on 1/9/06 7:12 PM Greg Hackney said the following: > Fugtruck wrote: > >> So with option 1, if user1 sends a message, a copy of it will be sent >> to user2, correct? Then so long as user2 does not bounce the message >> back or acknowledge to any return receipts, then user1 will never be >> aware? > > > Yes. > > Only the sender (not user1) would be aware of any returned messages > (unless of couse, user1 was the sender... sending messages to himself). > > Another way to do it, is to pipe it through a script that is always > successful, and who resends it as being from user "nobody". For example: > > user1 user1, |/tmp/script > > > ===< /tmp/script >=== > #!/bin/sh > /usr/sbin/sendmail -f nobody user2 > exit 0 > > > > -- > Greg -- If you want to email me, replace nospam with el |