Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I have the following requirements on Postfix email server on FC3, could you advise whether they are feasible and can you pass me the information(configuration) url ? thx
(1) Automatically forward the email to another user for both outgoing/incoming email(eg: email from/to a sales member must have a copy forwarded to sales manager)
(2) Automatically forward a copy of every email to system administrator (eg: system administrator will have a copy for every email)
(3) Automatically forward a copy of email by field in the header (eg: select by keyword in subject, or by sender)
(4) Daily report on email usage (eg: top 10 email sender or receiver), any tools ?
(5) Email routing. Email can be routed to another email server for some users. Those users will check email on that email server.
Procmail can easily handle most of what you need and is included with the FC3 distribution. For item #4, no tools immediately come to mind, but an analysis of the procmail log [assuming a global procmailrc file] and maillog via script would do the trick.
Procmail can be a little difficult to begin with, but is well worth your time and is an invaluable tool.
A Google search will provide thousands of example procmail recipies, and don't forget 'man procmail' as a starting point.
Postfix V2.1 supports a "sender_bcc_maps" function which is a lookup table of sender addresses. If the sender address matches, the right hand side of the lookup table will be added as a BCC to the e-mail. So effectively, you could add each user you wanted to log mail for, in the left hand side of the table. In the right hand side of the table you would list the admin e-mail address you want to send the BCC'ed mail to, so for example:
In /etc/postfix/main.cf add:
sender_bcc_maps = hash:/etc/postfix/sender_bcc
Then edit or create /etc/postfix/sender_bcc in the following format:
Just FYI, you can do this based on recipient addresses to, with a similar format table using the "recipient_bcc_maps = hash:/etc/postfix/recipient_bcc" in /etc/postfix/main.cf
Postfix V2.1 supports a "sender_bcc_maps" function which is a lookup table of sender addresses. If the sender address matches, the right hand side of the lookup table will be added as a BCC to the e-mail. So effectively, you could add each user you wanted to log mail for, in the left hand side of the table. In the right hand side of the table you would list the admin e-mail address you want to send the BCC'ed mail to, so for example:
In /etc/postfix/main.cf add:
sender_bcc_maps = hash:/etc/postfix/sender_bcc
Then edit or create /etc/postfix/sender_bcc in the following format:
Just FYI, you can do this based on recipient addresses to, with a similar format table using the "recipient_bcc_maps = hash:/etc/postfix/recipient_bcc" in /etc/postfix/main.cf
One thing that I think you should add is that for this to work (at least for me), I had to also run the commands: "postmap /etc/postfix/recipient_bcc" and "postfix reload".
Once I did those, everything worked perfectly. Thanks for the info!
One thing that I think you should add is that for this to work (at least for me), I had to also run the commands: "postmap /etc/postfix/recipient_bcc" and "postfix reload".
Once I did those, everything worked perfectly. Thanks for the info!
.....
Dear All,
is any possibility to add 2 bcc mail address in sender_bcc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.