Sha256: d711871e4e5b401fab1156c1fb49239a08fb79f1d2cb3f1be0084a70701ec8d8

Contents?: true

Size: 1.19 KB

Versions: 9

Compression:

Stored size: 1.19 KB

Contents

For more information on bounce_email, see http://bounce-email.rubyforge.org

You can easily use this plugin with e.g. Rails application.
Configure rails, so it send email using postfix and it adds VERP.
#- in environment.rb file add lines -#
config.action_mailer.delivery_method = :sendmail
config.action_mailer.sendmail_settings = {
  :location       => '/usr/sbin/sendmail',
  :arguments      => '-XV -f bounces-main@amerimail.lv -i -t'
}
#- end -#
Change amerimail.lv to email server that will handle bounce emails.

Follow this tutorial to handle bounce-emails: http://keakaj.com/wisdom/2007/08/08/verp-on-rails/

You can make Ruby file like this:
require "rubygems"
require "mail"
require "bounce_email"

mail = Mail.new(STDIN.read)
bounce = BounceEmail::Mail.new(mail)

# Do something with bounce info
# bounce.isbounce -> true/false
# bounce.code -> e.g. "5.1.1"
# bounce.reason -> e.g. "Something about the address specified in the message caused this DSN."
# bounce.type -> e.g. "Permanent Failure"

# Permanent Failure means that it is hard bounce
# Persistent Transient Failure means that it is soft bounce

# If reason is "Vacation auto-reply" then email could be vacation email (but it is rearly cought).

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
bounce_email-0.2.8 PostInstall.txt
bounce_email-0.2.7 PostInstall.txt
bounce_email-0.2.6 PostInstall.txt
bounce_email-0.2.5 PostInstall.txt
bounce_email-0.2.4 PostInstall.txt
bounce_email-0.2.3 PostInstall.txt
bounce_email-0.2.2 PostInstall.txt
bounce_email-0.2.1 PostInstall.txt
bounce_email-0.2.0 PostInstall.txt