You could use inotify to monitor a directory and trigger a script to send the mail.

Here is a very simple example content of such an email file, but they get much more complex.

To: f...@bar.com
From: b...@foo.com
Subject: example email

Hello World!

If the files are valid email files with headers you could just pipe them to sendmail.

If the files are not valid emails with headers then you could send them as attachments. Something like the python module envelope would be a simple way to do this: https://pypi.org/project/envelope/

On 3/22/22 9:28 AM, Linda Pagillo wrote:
Hi everyone! I hope all of you are doing well.


Does postfix allow for sending email by copying a file or files to anappropriate queue directory?If so, what is the format of thefile(s)?A reference would be very helpful if someone can point me in the right direction.


Thanks!

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to