I think Mimedefang would be the Milter approach. It's probably the easiest thing to do. You'll need to look into Perl's Mysql libraries to dump into the database. I think there's a way to configure Sendmail or Postfix so it doesn't deliver mail, so you're not duplicating messages.

On 4/23/2014 5:41 PM, Jeffrey Starin wrote:
These all sound like great ideas. I've also been looking into mimedefang.



On 04/23/2014 06:49 PM, Mark Winslow wrote:
I was thinking that maybe you have an app that decides how to send messages to your server. If you're exposing an email address, then clearly you need to have an smtp server, which is probably going to be Postfix.

There was a suggestion to just have the server dump into user Maildirs. It's probably the easiest thing. Bear in mind, though, that user management for Maildir setups can be quite complex if you have a lot of users.

If you want to use a database, there are least 3 methods.

1. Use DBMail through IMAP/API. I'm still not sure if there's an api/protocol that will allow you to query/manipulate at a global/root level.

2. Use DBMail directly through SQL. It's been discouraged here, so at the very least you're not going to get any help doing it.

3. Implement LMTP yourself or else use a Milter to store you messages. I've seen simple examples of LMTP code around. Milters are easier to implement, but not as clean doing it through LMTP.




_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to