Get answers quicker by searching

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

SMTP bounce mod available
  • Vote Up0Vote Down IRCFIRCF
    Posts: 4Sendy user

    Hello,

    We have been testing for a few weeks a patch to implement SMTP bounce.
    The code available here : https://github.com/ircf/sendy_smtp_bounce
    Feel free to use and/or redistribute.

    This code consists in two parts: - A patch to apply to your sendy install, so the Return-Path can be customized with your bounce mailbox (bounce config must be set in sendy config file) - A bounce.php program and helper classes to copy to your sendy install. The bounce.php must be added to your crontab so it can check periodically the bounce mailbox

    Do not hesitate to report bugs :)
    Mathieu at IRCF.

  • 11 Comments
  • Vote Up0Vote Down jackbauerjackbauer
    Posts: 4Sendy user

    Please, can you clarify why this is needed?

  • Vote Up0Vote Down IRCFIRCF
    Posts: 4Sendy user

    Hello,

    You only need this patch if you configured Sendy to use SMTP instead of Amazon SES.

    Sendy currently only implements bounce with Amazon SES : Sendy periodically connects to the Amazon API and collects rejected emails due to permanently invalid addresses (hard bounces) or temporary errors like full mail boxes (soft bounces) and also spam complaints, so that Sendy can update each address status in its database to prevent sending further emails to theses addresses, so you can keep a good reputation and your emails won't be considered as spam.

    But if you configure Sendy to use your own SMTP servers (like we do), then you don't use Amazon SES, and you don't have this feature. This patch covers this feature. The mechanism is the same as Amazon API, except that it uses a bounce mailbox : When you send an email with Sendy, you juste have to configure a "Return-Path" header set with your bounce email address, so each error message will be sent to the bounce mailbox. Sendy periodically connects to this mailbox and collect/parse the error messages and updates each address status.

    Do not hesitate if my explanation is unclear, sorry if my english is bad, I'm french.

  • Vote Up0Vote Down jackbauerjackbauer
    Posts: 4Sendy user

    Great explanation, thanks!

  • Vote Up0Vote Down corogerscorogers
    Posts: 5Sendy user

    This is great. Any issues with Sendy upgrades?

  • Vote Up0Vote Down corogerscorogers
    Posts: 5Sendy user

    I am getting an error when running the patch:

    root@sendy:/var/www/html# patch -p0 < sendy_4_0.patch patching file autoresponders.php patching file includes/config.php

    patch: **** malformed patch at line 43: diff --git includes/create/send-now.php includes/create/send-now.php

  • Vote Up0Vote Down SuryaMahadevaSuryaMahadeva
    Posts: 14Sendy user

    Hi, i am facing same issue also not able to figure out where i use retupath id ..

  • Vote Up0Vote Down SuryaMahadevaSuryaMahadeva
    Posts: 14Sendy user

    please help me to configure it..

  • Vote Up0Vote Down IRCFIRCF
    Posts: 4Sendy user

    Hello, Sorry for this, I've just fixed the patch. Please download the last version here : https://github.com/ircf/sendy_smtp_bounce/blob/master/sendy_4_0.patch And then apply the patch with : cd /path/to/sendy/ && patch -p1 < sendy_4_0.patch Note : Iv'e replaced -p0 by -p1 in the apply patch command line because it's a git patch. Let me know if it works for you. Mathieu.

  • Vote Up0Vote Down corogerscorogers
    Posts: 5Sendy user

    Appears to work once I ran my patch with this syntax:

    patch -Np1 --ignore-whitespace < sendy_4_0.patch

    Thank you!

  • Vote Up0Vote Down corogerscorogers
    Posts: 5Sendy user

    One other quick note...

    This uses imap to connect to your bounce mailbox so you will need to make sure that is installed.

    -Colin

  • Vote Up0Vote Down underthegununderthegun
    Posts: 4Sendy user

    Just curious... how does it handle spam complaints, if at all?