Hi,

For a Drupal project I've been asked to introduce bounce handling.
Not being able to find a suitable solution (in the form of a Drupal module), I noticed the mimemail_incoming hook.
My interpretation of the code tells me I need to forward mails to http://mywebsite/mimemail so they'll be parsed, but I could not find any documentation on this.

Has anybody used this functionality and what is the appropriate way of getting the mails to be forwarded? (eg. an aliasses file entry or .forward line)

Thanks a bunch!

Comments

folkertdv’s picture

I'm still interested in hearing how any of you have made use of the /mimemail menu callback to POST mails.
However, the idea of POSTing emailmessages to a weblocation didn't appeal to me.

I have created a simple and clean (contrib) module for Mime Mail that pulls emails from a specified mailserver (IMAP/POP3) and feeds the emails to mimemail_incoming().

This way I can configure any newsletter module to have noreply@example.org as Sender.
Another bounce handling module can now check incoming mails for bounces (by listening to hook_mimemail_incoming).

Just like Mime Mail, this is a module that doesn't do anything by itself but could be very useful for other module developers.

If there's any interest in this, I will submit the module. Any feedback is appreciated, thanks!

allie micka’s picture

The key advantage of POSTing the messages to the site is the real-timeyness of it all. With pull-based solutions you're limited to cron schedules. That's surely OK for bounce handling.

If you are doing a pull-based method, why not just use http://drupal.org/project/mailhandler ? It's the well-supported go-to module for that task.

jerdavis’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)
Issue tags: -hook_mimemail_incoming, -incoming, -post, -bounce

Automatically closed -- issue fixed for 2 weeks with no activity.