postie: SMTP server library to receive emails from within Haskell programs.

[ bsd3, library, network ] [ Propose Tags ]

postie is a little smtp server library for receiving emails. It is currently in a very early stage and not yet fully standard compatible although the standard protocol is already supported.

  • At the time of writing parameters on smtp commands can not be parsed.

  • Handler functions need to return more detailed information to cancel a transaction.

postie supportes hooks on key commands in an smtp session like

  • on connection open and close

  • on MAIL FROM command e.g. to intercept transaction if sender is blacklisted

  • on RCPT TO command e.g. to check if recipient is existent on your server

  • and many more

To run postie you only need to supply a function which takes a Mail and return Accepted or Rejected. mailBody is a pipes Producer which streams the encoded body directly to your application code. The body is not parsed by postie since it depends on what the application wants to do with the mail data. Eventually I will create a seperate package for parsing mime messages with `pipes-parse` when postie becomes more stable and standard compliant.


Manual Flags


Build examples


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees


Versions [RSS],,,,,,,,,
Dependencies attoparsec (>=, base (>=4 && <=5), bytestring (>=, cprng-aes (>=0.5.2), data-default-class (>=0.0.1), mtl (>=2.1.2), network (>=, pipes (>=4.1.0), pipes-bytestring, pipes-parse (>=3.0.1), postie, tls (>=1.2.6), transformers (>=, uuid (>=1.3.3) [details]
License BSD-3-Clause
Author Alex Biehl
Category Network
Source repo head: git clone
Uploaded by alexbiehl at 2014-03-28T20:50:40Z
Distributions NixOS:
Executables postie-example-simple
Downloads 6104 total (43 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Successful builds reported [all 1 reports]