2017 © Pedro Peláez
 

symfony-bundle bouncer-bundle

Symfony2 bundle for AWS SES/SNS Bounce topic listener and swiftmailer filter

image

shivas/bouncer-bundle

Symfony2 bundle for AWS SES/SNS Bounce topic listener and swiftmailer filter

  • Thursday, September 3, 2015
  • by shivas
  • Repository
  • 2 Watchers
  • 6 Stars
  • 1,131 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Bouncer bundle

SensioLabsInsight Build Status Scrutinizer Code Quality Total Downloads, (*1)

Symfony2 bundle to automate AWS SES users using swiftmailer to filter out bouncing email recipients inside project., (*2)

AWS SES users know, if you get big amount of Bouncing emails, AWS will send you into probation period. In some cases, there is no easy way to solve issue. This bundle solves problem transparently filtering recipients lists trough own database built by listening on AWS SNS Bounce topic that it creates and hooks to your identity., (*3)

Requirements:

  1. You use AWS SES to send your emails
  2. You have AWS API key
  3. You have confirmed email identity (email or whole domain)

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:, (*4)

$ composer require shivas/bouncer-bundle "~0.1"

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation., (*5)

Step 2: Enable the Bundle

Then, enable the bundle by adding the following line in the app/AppKernel.php file of your project:, (*6)

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

             new Shivas\BouncerBundle\ShivasBouncerBundle(),
        );

        // ...
    }

    // ...
}

Step 3: Add configuration

# Default configuration for "ShivasBouncerBundle"
shivas_bouncer:
    db_driver:            orm # currently only ORM supported
    model_manager_name:   null # if using custom ORM model manager, provide name, otherwise leave as null 
    aws_api_key:
        key:                  ~ # Required, your AWS API KEY
        secret:               ~ # Required, your AWS API SECRET
        region:               us-east-1 # Required, region of AWS to use
    bounce_endpoint:
        route_name:           _shivasbouncerbundle_bounce_endpoint
        protocol:             HTTP # HTTP or HTTPS
        host:                 localhost.local # hostname of your project when in production
    filter:
        enabled:              true # if false, no filtering of bounced recipients will happen
        filter_not_permanent: false # if false, all temporary bounces will not make that address to be filtered forever
        mailer_name:          # array of mailer names where to register filtering plugin
            - default
 ```

 Add routing file for bounce endpoint (feel free to edit prefix)

```yaml
# app/config/routing.yml
bouncer:
    resource: @ShivasBouncerBundle/Resources/config/routing.yml
    prefix: /aws/endpoints

Step 4: Update your database schema

$ php app/console doctrine:schema:update --force

Step 5: Setup subscription to Bounce topic

Run in console:, (*7)

./app/console swiftmailer:sns:setup-bounce-topic Bounce

This will use your AWS keys to fetch available identities, and provide you option to choose what identities to subscribe to. "Bounce" in console is name of topic to setup (Naming rules should follow AWS naming rules for topics), (*8)

What will happen:, (*9)

  1. Bounce topic will be created
  2. All chosen identities will be configured to send Bounce notifications to that topic
  3. Your project url will be provided as HTTP or HTTPS (configuration) endpoint for AWS
  4. Automatic subscription confirmation will occur on AWS request to confirm (if your endpoint is reachable)

Contribute

Contribute trough issues or pull request., (*10)

Todo

Mapping for MongoDB and other supported databases by Doctrine, (*11)

The Versions

03/09 2015

dev-master

9999999-dev https://github.com/shivas/bouncer-bundle

Symfony2 bundle for AWS SES/SNS Bounce topic listener and swiftmailer filter

  Sources   Download

MIT

The Requires

 

The Development Requires

by Audrius Karabanovas

swiftmailer aws sns blacklist ses bounce

03/09 2015

dev-symfony-lts

dev-symfony-lts https://github.com/shivas/bouncer-bundle

Symfony2 bundle for AWS SES/SNS Bounce topic listener and swiftmailer filter

  Sources   Download

MIT

The Requires

 

The Development Requires

by Audrius Karabanovas

swiftmailer aws sns blacklist ses bounce

03/09 2015

0.2.0

0.2.0.0 https://github.com/shivas/bouncer-bundle

Symfony2 bundle for AWS SES/SNS Bounce topic listener and swiftmailer filter

  Sources   Download

MIT

The Requires

 

The Development Requires

by Audrius Karabanovas

swiftmailer aws sns blacklist ses bounce

20/05 2015

0.1.3

0.1.3.0 https://github.com/shivas/bouncer-bundle

Symfony2 bundle for AWS SES/SNS Bounce topic listener and swiftmailer filter

  Sources   Download

MIT

The Requires

 

The Development Requires

by Audrius Karabanovas

swiftmailer aws sns blacklist ses bounce

11/02 2015

0.1.2

0.1.2.0 https://github.com/shivas/bouncer-bundle

Symfony2 bundle for AWS SES/SNS Bounce topic listener and swiftmailer filter

  Sources   Download

MIT

The Requires

 

The Development Requires

by Audrius Karabanovas

swiftmailer aws sns blacklist ses bounce

09/02 2015

0.1.1

0.1.1.0 https://github.com/shivas/bouncer-bundle

Symfony2 bundle for AWS SES/SNS Bounce topic listener and swiftmailer filter

  Sources   Download

MIT

The Requires

 

The Development Requires

by Audrius Karabanovas

swiftmailer aws sns blacklist ses bounce

08/02 2015

0.1.0

0.1.0.0 https://github.com/shivas/bouncer-bundle

Symfony2 bundle for AWS SES/SNS Bounce topic listener and swiftmailer filter

  Sources   Download

MIT

The Requires

 

The Development Requires

by Audrius Karabanovas

swiftmailer aws sns blacklist ses bounce