OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Wietse Venema (wietseporcupine.org)
Date: Thu Nov 01 2001 - 08:24:49 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Ryan Sweat:
    >
    >
    >
    > >>
    > >> Is there a way to inject email into postfix's queue directly, or another
    > >> method which may be more practical?
    >
    > >Yes, via SMTP. That's faster. Use Perl's Net::SMTP for example.
    >
    > The problem I have found with Net::SMTP is that it wants the headers
    > declared in a separate field than the body. In the past I was able to pipe
    > the entire email to sendmail. Is anyone aware of existing code or a module
    > to 'extract' the headers (To:, From:, Subject:, Cc:, and Bcc: fields) from a
    > file and convert it into something that Net::SMTP can use?

    Alternatively, you could use the socket API and talk SMTP yourself,
    in which case you don't have to split off the mail headers. SMTP,
    despite all the talk on this list, is not a complex protocol.

            Wietse
    -
    To unsubscribe, send mail to majordomopostfix.org with content
    (not subject): unsubscribe postfix-users