[SOLVED] Problem in sending copy of a mail to another email address
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Problem in sending copy of a mail to another email address
Dear All:
In my mail server [Postfix+Dovecot], I wish that admin will have a copy of all incoming emails of all users. I can accomplish my need by the below commands.
Now, the problem is if someone sends mail to both of accounts and admin, the admin user gets two copies of same mail in his inbox. It even be 4/more copies of a same email in his inbox if the mail's recipients are 4/more from the list. Now, the admin need to get only one copy of that mail whether the recipients contain admin user or any one/more user from the list. Please suggest me how I can do that...
Dear All:
In my mail server [Postfix+Dovecot], I wish that admin will have a copy of all incoming emails of all users. I can accomplish my need by the below commands.
Now, the problem is if someone sends mail to both of accounts and admin, the admin user gets two copies of same mail in his inbox. It even be 4/more copies of a same email in his inbox if the mail's recipients are 4/more from the list. Now, the admin need to get only one copy of that mail whether the recipients contain admin user or any one/more user from the list. Please suggest me how I can do that...
Things are working exactly as you have them set up. So, you have three choices:
Don't read other peoples emails without their knowledge, and remove the admin forwarding
Learn to live with multiple copies and hit the 'delete' key
Things are working exactly as you have them set up. So, you have three choices:
Don't read other peoples emails without their knowledge, and remove the admin forwarding
Learn to live with multiple copies and hit the 'delete' key
Write a script to periodically remove duplicates
Dear TB0ne:
I work in a Service Provider company. It's one of our clients' requirement that the owner would have receive all emails sent to their merchandisers' email addresses so that no employee can follow any illegal way. I think it's OK in such a situation. The mentioned addressees (admin, joe, jack etc.) are as demo only. Previously they were using Microsoft's Exchange where the owner got all the mails without duplication. That is why, I am trying this in postfix. Can you please let me know any other SMTP application which can fulfill my need easily without scripting? (i.e. exim, qmail, mailx etc.). Or, please guide me providing a demo script for postfix...
I work in a Service Provider company. It's one of our clients' requirement that the owner would have receive all emails sent to their merchandisers' email addresses so that no employee can follow any illegal way. I think it's OK in such a situation. The mentioned addressees (admin, joe, jack etc.) are as demo only. Previously they were using Microsoft's Exchange where the owner got all the mails without duplication. That is why, I am trying this in postfix.
However you want to put it, surreptitiously intercepting/forwarding emails behind peoples backs is wrong, unless the owner has come out and explicitly TOLD everyone that it's happening.
Quote:
Can you please let me know any other SMTP application which can fulfill my need easily without scripting? (i.e. exim, qmail, mailx etc.).
There aren't any, since email programs exist to send emails...not perform the function you're looking for. descent_command has a good idea, but that may not even work the exact way you want, since if someone emails the admin, they'll then get two copies (the admin email, and the bcc). Not sure, but it's worth looking in to.
Quote:
Or, please guide me providing a demo script for postfix...
No...you write your own scripts to do what you want. We will HELP you, but we aren't going to write scripts FOR YOU.
However you want to put it, surreptitiously intercepting/forwarding emails behind peoples backs is wrong, unless the owner has come out and explicitly TOLD everyone that it's happening.
Employees in that office are informed from the beginning that their emails are visible to the owner so that they leave thinking of doing anything wrong.
I'm extremely sorry if I've hurt you. Thanks a lot for your valuable information.
Employees in that office are informed from the beginning that their emails are visible to the owner so that they leave thinking of doing anything wrong.
I'm extremely sorry if I've hurt you. Thanks a lot for your valuable information.
Haven't hurt anyone at all, but you didn't offer that information up front. It's always best to give as much detail as possible, especially where privacy is concerned.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.