[ILUG] Programmatic mail sending with Postfix
Niall O Broin
niall at linux.ie
Wed Apr 7 11:03:11 IST 2004
On Wednesday 7 April 2004, thomas at staffeurs.org (Thomas Pedoussaut) wrote:
>Niall O Broin wrote:
>> To send messages you write files in RFC822 format and drop them into a
>> specific directory. The PIPE module scans this directory periodically, and
>> processes any files it finds with a .sub extension.
>>
>> This is much more efficient than setting up an SMTP connection - we
regularly
>> use it to send 10s of thousands of messages to a mailing list.
>>
>> So the question is - is there any way of doing something similar with
Postfix?
>
>postdrop is your friend
OK - that looks like it will do the trick. However, it still won't give me
the same efficiency as the Communigate method. If I need to send, say, 10000
mails, my Perl program must incur the overhead of 10000 executions of
postdrop, as against creating 10000 files. Postdrop is going to do the 10000
file creations anyway, so from my POV the 10000 calls of postdrop are pure
overhead.
Niall
More information about the ILUG
mailing list