Configuring PostFix to send duplicate messages to the administrator
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.
Configuring PostFix to send duplicate messages to the administrator
Hi there --
I downloaded and installed the Postfix MTA on the server. Once that was done, I modified the main.cf.default file to include the administrator's e-mail address after the always_bcc option. The MTA was subsequently restarted, and came up without any issue.
I then ran a test to see if the new setting would work. The result was while the intended recipient received an e-mail, the administrator did not get a carbon copy of the message. What other step(s) do I need to take to correct this?
How did you test that? By sending a mail from the console on the server where Postfix is installed? From the Postfix website:
Quote:
Note: automatic BCC recipients are produced only for new mail. To avoid mailer loops, automatic BCC recipients are not generated after Postfix forwards mail internally, or after Postfix generates mail itself.
1. Uploading a file to the website on the server which causes the Postfix MTA to notify the recipient of the 'package'.
2. Running the mailx command-line from the server console to send a text file to a remote address.
If I am reading the quote that you supplied in your posting correctly, then neither of the above tests would generate
a bcc message to the administrator. Correct?
If your webserver is on the same server that has Postfix installed (1) then there will be no BCC send out if mail is sent internally. If the mail from the command-line is sent to an internal mail address, generated on the same host that has Postfix installed, then there would not be a BCC sent out if I understand it correctly.
I suggest you try from another host to send mail through the Postfix server, if you've set it up to accept mail from your network and see if a BCC gets sent out automatically. You can also check the log files to see if anything points to why this might be happening.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.