LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Configure postfix to deliver mail to particular directory locally (https://www.linuxquestions.org/questions/linux-newbie-8/configure-postfix-to-deliver-mail-to-particular-directory-locally-4175593278/)

kumarjohn 11-10-2016 11:15 AM

Configure postfix to deliver mail to particular directory locally
 
I want to setup postfix so that any outbound mails to admin@mydomain.com are stored locally in to /apps/mails_admin directory and each mail should have file name in YYYY-mm-dd hh.mm.ss.eml Format.

Please suggest me the configuration in postfix to achieve the same.

Best Regards,
KJ.

TB0ne 11-10-2016 11:27 AM

Quote:

Originally Posted by kumarjohn (Post 5629077)
I want to setup postfix so that any outbound mails to admin@mydomain.com are stored locally in to /apps/mails_admin directory and each mail should have file name in YYYY-mm-dd hh.mm.ss.eml Format.

Please suggest me the configuration in postfix to achieve the same.

We will suggest you read the "Question Guidelines" link in my posting signature...have you tried to read the Postfix documentation???

There is the smtp-sink piece: http://www.postfix.org/smtp-sink.1.html, set up always_bcc to go to a local address, which can then be renamed/copied with a script you write. There are MANY options. What have you done/tried so far?


All times are GMT -5. The time now is 02:54 AM.