Hi Dieter,

I think I might have badly expressed myself :) The files on the disk
still need to be sent to the addresses in the "To" field. They have
simply been generated using an external program that can't talk smtp
directly with my postfix server and needs it to pick up and deliever
the messages.

2010/9/8 Dieter Kluenter <die...@dkluenter.de>:
> Diego Lima <li...@diegolima.org> writes:
>
>> Hello all,
>>
>> I'm setting up a mail server that needs to read messages that are
>> created on the disk as individual files. This is an example file:
>>
>> From: Test 123 <t...@localhost>
>> To: Diego Lima <t...@domain.com>
>> Content-Type: text/plain; charset=iso-8859-1
>> MIME-Type: text/plain
>> MIME-Version: 1.0
>> Content-Transfer-Encoding: 8bit
>
>> What is the best way to read those messages? I considered creating a
>> shellscript that checks the directory for new files and then sends
>> them using sendmail -t, but that isn't really good performance-wise.
>> Is there any way I can inject the messages into postfix queue?
>
> man mailx(1)
>
> -Dieter
>
> --
> Dieter Klünter | Systemberatung
> sip: 7770...@sipgate.de
> http://www.dpunkt.de/buecher/2104.html
> GPG Key ID:8EF7B6C6
>



-- 
Diego Lima

Reply via email to