It looks like you're new here. If you want to get involved, click one of these buttons!
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.
Please, can you clarify why this is needed?
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.
Great explanation, thanks!
This is great. Any issues with Sendy upgrades?
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
Hi, i am facing same issue also not able to figure out where i use retupath id ..
please help me to configure it..
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.
Appears to work once I ran my patch with this syntax:
patch -Np1 --ignore-whitespace < sendy_4_0.patch
One other quick note...
This uses imap to connect to your bounce mailbox so you will need to make sure that is installed.
Just curious... how does it handle spam complaints, if at all?