Copying all outbound messages of certain user

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 ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-09-2006
Fugtruck
 
Posts: n/a
Default Copying all outbound messages of certain user

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?
Reply With Quote
  #2 (permalink)  
Old 01-09-2006
Greg Hackney
 
Posts: n/a
Default Re: Copying all outbound messages of certain user

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?

Reply With Quote
  #3 (permalink)  
Old 01-09-2006
Fugtruck
 
Posts: n/a
Default Re: Copying all outbound messages of certain user

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?

Reply With Quote
  #4 (permalink)  
Old 01-09-2006
Greg Hackney
 
Posts: n/a
Default Re: Copying all outbound messages of certain user

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
Reply With Quote
  #5 (permalink)  
Old 01-15-2006
Jim Berwick
 
Posts: n/a
Default Re: Copying all outbound messages of certain user

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.
Reply With Quote
  #6 (permalink)  
Old 01-15-2006
Eberhard Lisse
 
Posts: n/a
Default Re: Copying all outbound messages of certain user

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
Reply With Quote
  #7 (permalink)  
Old 01-15-2006
Greg Hackney
 
Posts: n/a
Default Re: Copying all outbound messages of certain user

Eberhard Lisse wrote:
> Isn't aliases for inbound mail?


Yes. As per Jim's advice, use "sender_bcc_maps" for outbound.
--
Greg

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:44 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0