RE: Notification when user sends email
You are an enormous help! I will do it with procmail, since it doesn't seem like there is another way to do. Just need to get down and dirty with qmail... Thanks for all your help on this! Ate -Original Message- From: Dale Morin [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 25, 2006 2:31 PM To: Nathaniel Dell Cc: users@spamassassin.apache.org Subject: Re: Notification when user sends email Hello, > It looks like the server that is hosting our email doesn't have procmail > configured with qmail. Further the provider won't support it Procmail is > installed, but this seems a lot less intuitive than I thought at first. > Would there be a less intruisive way to do this? All I really need to know > is if a user sent a mail to anyone in the company, not the content of the > email. > Thanks for all of the help thus far, you guys are great! There may be another way of doing it, but this is the simplest way I know. You need to examine every incoming message to the box and isolate those that are to be delivered to an address in a specific domain. Once you've isolated the incoming messages you care about, you further need to isolate those messages from a specific sender. You can then throw away the message body and forward just the headers on to another address. I don't know of a better way than procmail. Sorry I can't be of more help. Dale
Re: Notification when user sends email
Hello, > It looks like the server that is hosting our email doesn't have procmail > configured with qmail. Further the provider won't support it Procmail is > installed, but this seems a lot less intuitive than I thought at first. > Would there be a less intruisive way to do this? All I really need to know > is if a user sent a mail to anyone in the company, not the content of the > email. > Thanks for all of the help thus far, you guys are great! There may be another way of doing it, but this is the simplest way I know. You need to examine every incoming message to the box and isolate those that are to be delivered to an address in a specific domain. Once you've isolated the incoming messages you care about, you further need to isolate those messages from a specific sender. You can then throw away the message body and forward just the headers on to another address. I don't know of a better way than procmail. Sorry I can't be of more help. Dale
RE: Notification when user sends email
It looks like the server that is hosting our email doesn't have procmail configured with qmail. Further the provider won't support it Procmail is installed, but this seems a lot less intuitive than I thought at first. Would there be a less intruisive way to do this? All I really need to know is if a user sent a mail to anyone in the company, not the content of the email. Thanks for all of the help thus far, you guys are great! -Original Message- From: Nathaniel Dell [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 25, 2006 12:34 PM To: 'Nathaniel Dell'; [EMAIL PROTECTED]; users@spamassassin.apache.org Subject: RE: Notification when user sends email Sorry forgot to put in the code * ^From.*dell4242 { :0c: ${DEFAULT} :0 c ! [EMAIL PROTECTED] } -Original Message- From: Nathaniel Dell [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 25, 2006 12:34 PM To: '[EMAIL PROTECTED]'; 'users@spamassassin.apache.org' Subject: RE: Notification when user sends email Will this do the same thing? -Original Message- From: Dale Morin [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 25, 2006 12:01 PM To: users@spamassassin.apache.org Cc: Nathaniel Dell Subject: Re: Notification when user sends email Hello, You will need to modify it where I am extracting the username part of the email address from the To: address. That is where you will want to examine the From: address instead. Note that I am altering the subject to insert the original username in front of the subject so that messages in the bigbrother account can be sorted by their original recipients. Note that this recipe will need to be in /etc/procmailrc so that it is processed for all incoming messages. Hope this helps. SHELL=/bin/sh LOGFILE=/var/log/procmail.log TODAY=`date +%Y-%m-%d` #VERBOSE=yes # forward a copy of all incoming messages :0 * [EMAIL PROTECTED] * ! ^X-Loop: mynosydomain\.com { # extract subject SUBJECT=`formail -cxSubject:` # get the To: address without comments :0h: CLEANTO=|formail -cxTo: # username portion :0: * CLEANTO ?? ^\/[EMAIL PROTECTED] { TO_USER=$MATCH } # insert X-Loop header :0fwh: | formail -A "X-Loop: mynosydomain.com" # deliver the original :0c: ${DEFAULT} # alter the subject :0fw: | formail -i "Subject: [$TO_USER] $SUBJECT" # deliver the copy with the altered subject :0: ! [EMAIL PROTECTED] } Dale
RE: Notification when user sends email
Sorry forgot to put in the code * ^From.*dell4242 { :0c: ${DEFAULT} :0 c ! [EMAIL PROTECTED] } -Original Message- From: Nathaniel Dell [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 25, 2006 12:34 PM To: '[EMAIL PROTECTED]'; 'users@spamassassin.apache.org' Subject: RE: Notification when user sends email Will this do the same thing? -Original Message- From: Dale Morin [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 25, 2006 12:01 PM To: users@spamassassin.apache.org Cc: Nathaniel Dell Subject: Re: Notification when user sends email Hello, You will need to modify it where I am extracting the username part of the email address from the To: address. That is where you will want to examine the From: address instead. Note that I am altering the subject to insert the original username in front of the subject so that messages in the bigbrother account can be sorted by their original recipients. Note that this recipe will need to be in /etc/procmailrc so that it is processed for all incoming messages. Hope this helps. SHELL=/bin/sh LOGFILE=/var/log/procmail.log TODAY=`date +%Y-%m-%d` #VERBOSE=yes # forward a copy of all incoming messages :0 * [EMAIL PROTECTED] * ! ^X-Loop: mynosydomain\.com { # extract subject SUBJECT=`formail -cxSubject:` # get the To: address without comments :0h: CLEANTO=|formail -cxTo: # username portion :0: * CLEANTO ?? ^\/[EMAIL PROTECTED] { TO_USER=$MATCH } # insert X-Loop header :0fwh: | formail -A "X-Loop: mynosydomain.com" # deliver the original :0c: ${DEFAULT} # alter the subject :0fw: | formail -i "Subject: [$TO_USER] $SUBJECT" # deliver the copy with the altered subject :0: ! [EMAIL PROTECTED] } Dale
RE: Notification when user sends email
Will this do the same thing? -Original Message- From: Dale Morin [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 25, 2006 12:01 PM To: users@spamassassin.apache.org Cc: Nathaniel Dell Subject: Re: Notification when user sends email Hello, You will need to modify it where I am extracting the username part of the email address from the To: address. That is where you will want to examine the From: address instead. Note that I am altering the subject to insert the original username in front of the subject so that messages in the bigbrother account can be sorted by their original recipients. Note that this recipe will need to be in /etc/procmailrc so that it is processed for all incoming messages. Hope this helps. SHELL=/bin/sh LOGFILE=/var/log/procmail.log TODAY=`date +%Y-%m-%d` #VERBOSE=yes # forward a copy of all incoming messages :0 * [EMAIL PROTECTED] * ! ^X-Loop: mynosydomain\.com { # extract subject SUBJECT=`formail -cxSubject:` # get the To: address without comments :0h: CLEANTO=|formail -cxTo: # username portion :0: * CLEANTO ?? ^\/[EMAIL PROTECTED] { TO_USER=$MATCH } # insert X-Loop header :0fwh: | formail -A "X-Loop: mynosydomain.com" # deliver the original :0c: ${DEFAULT} # alter the subject :0fw: | formail -i "Subject: [$TO_USER] $SUBJECT" # deliver the copy with the altered subject :0: ! [EMAIL PROTECTED] } Dale
Re: Notification when user sends email
Hello, You will need to modify it where I am extracting the username part of the email address from the To: address. That is where you will want to examine the From: address instead. Note that I am altering the subject to insert the original username in front of the subject so that messages in the bigbrother account can be sorted by their original recipients. Note that this recipe will need to be in /etc/procmailrc so that it is processed for all incoming messages. Hope this helps. SHELL=/bin/sh LOGFILE=/var/log/procmail.log TODAY=`date +%Y-%m-%d` #VERBOSE=yes # forward a copy of all incoming messages :0 * [EMAIL PROTECTED] * ! ^X-Loop: mynosydomain\.com { # extract subject SUBJECT=`formail -cxSubject:` # get the To: address without comments :0h: CLEANTO=|formail -cxTo: # username portion :0: * CLEANTO ?? ^\/[EMAIL PROTECTED] { TO_USER=$MATCH } # insert X-Loop header :0fwh: | formail -A "X-Loop: mynosydomain.com" # deliver the original :0c: ${DEFAULT} # alter the subject :0fw: | formail -i "Subject: [$TO_USER] $SUBJECT" # deliver the copy with the altered subject :0: ! [EMAIL PROTECTED] } Dale
RE: Notification when user sends email
This sounds like exactly what I need. Any pointers to where I can find documentation on how to do this? Thanks for all your help on this! Nate -Original Message- From: Dale Morin [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 25, 2006 10:40 AM To: users@spamassassin.apache.org Subject: Re: Notification when user sends email Hello, Yes, it can be done fairly easily using procmail. We have a client that has a copy of every incoming email forwarded to another account. My personal objections to Big Brother aside, it works nicely. Modifying that recipe so that it fires only when the From: address is [EMAIL PROTECTED] is trivial. Dale
Re: Notification when user sends email
Hello, Yes, it can be done fairly easily using procmail. We have a client that has a copy of every incoming email forwarded to another account. My personal objections to Big Brother aside, it works nicely. Modifying that recipe so that it fires only when the From: address is [EMAIL PROTECTED] is trivial. Dale
Re: Notification when user sends email
Nathaniel Dell wrote: > > Is it possible to receive a notification when a user sends a emai to > anyone in the company? I need to implement something like this. > > Help would be greatly appreciated!! > Sounds like a job for swatch or logsurfer. These tools are designed to watch your logs for events matching a regex and trigger a script (such as sending an email) when a matching line appears.
Notification when user sends email
Is it possible to receive a notification when a user sends a emai to anyone in the company? I need to implement something like this. Help would be greatly appreciated!!