Hi, thank you for your reply. The point here is that I don't want to store messages that I receive as final destination, but those that, in a "normal" situation, I would act as a relay for. My scenario is the following:
internet -> mta for user submission (smtp) -> sql backend The mta isn't configured to be the final destination for the messages: it's intended to accept mail (of course with authentication) and to store it in a sql backend instead of contacting remote MXs. Ideally, I would need an "SMTP to DB" converter, something more similar to a spool storage on database. Thanks again, Fabio Il giorno 08/feb/2012, alle ore 12:52, Simone Caruso ha scritto: > On 08/02/2012 10:19, Fabio Sangiovanni wrote: >> it receives mail (from user SMTP submission, not as final destination) and, >> instead of relay, "does something" that ends up in having the mail (body + >> headers + attachments) in a mysql table > > You can write a custom 'deliver' that copies your emails into a different > storage (es. mysql), or use dbmail. > > -- > Simone Caruso > IT Consultant > +39 349 65 90 805 >