magicdude4eva / port25-bouncehandler Goto Github PK
View Code? Open in Web Editor NEWPort25 PowerMTA bounce handler for Interspire and MailWizz
License: MIT License
Port25 PowerMTA bounce handler for Interspire and MailWizz
License: MIT License
hello
im getting this error in error_log when i run bouncehandler script
[11-Oct-2017 11:23:56 UTC] PHP Warning: require_once(/opt/cpanel/ea-php56/root/usr/share/pear): failed to open stream: Operation now in progress in /opt/pmta/bouncehandler/providers/feedback-loop-processor.php on line 37
[11-Oct-2017 11:23:56 UTC] PHP Fatal error: require_once(): Failed opening required '/opt/cpanel/ea-php56/root/usr/share/pear' (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear') in /opt/pmta/bouncehandler/providers/feedback-loop-processor.php on line 37
please help
Hello Fellow mailers I was wondering how can I can extract all ONLY bounce emails/ from the application to some kind of Text file
Thanks in Advance
Hi,
Thanks for this wonderful script. I have install all the things and tested manually with both Interspire and Mailwizz. But when I try to setup automatic, than its only process 1st record.
Following is pmta-bounce-handler.log
As you seen, only 1 bounce address is process, but I record 3 bounce address in bounce.csv
type | timeQueued | bounceCat | vmta | orig | rcpt | srcMta | dlvSourceIp | jobId | dsnStatus | dsnMta | dsnDiag |
---|---|---|---|---|---|---|---|---|---|---|---|
b | 2017-08-18 15:45:02+0400 | bad-domain | pmta-vmta1 | [email protected] | [email protected] | it-people.site (104.223.109.140) | 104.223.109.140 | 5.1.2 (bad destination system: no such domain) | |||
b | 2017-08-18 15:45:02+0400 | bad-mailbox | pmta-vmta1 | [email protected] | [email protected] | it-people.site (104.223.109.140) | 104.223.109.140 | 5.1.1 (bad destination mailbox address) | gmail-smtp-in.l.google.com (173.194.223.27) | smtp;550 5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipient's email address for typos or unnecessary spaces. Learn more at https://support.google.com/mail/?p=NoSuchUser b187si4579608oia.339 - gsmtp | |
b | 2017-08-18 15:45:02+0400 | other | pmta-vmta1 | [email protected] | [email protected] | it-people.site (104.223.109.140) | 104.223.109.140 | 5.0.0 (undefined status) | uniqsoft.net (204.93.177.138) | smtp;550 No such person at this address. |
Also the pmta-bounce-stats.log is not created anywhere !
Hi,
I have this error:
cat /var/log/pmta/bounce-2017-03-24-0000.csv | /usr/bin/php bouncehandler.php
PHP Parse error: syntax error, unexpected '[' in /opt/pmta/bouncehandler/providers/bounce-provider-interspire.php on line 37
port25-bouncehandler/bouncehandler.php
Line 185 in a6a0b63
Hey, firstly thanks for sharing this script, it's helped me and I'm sure it has helped others in setting up their mailing system too.
Just thought I'd mention a bug I noticed while testing this on my setup. Maybe I'm missing something, but it seems as though the bounces which fell under the softBounceCategories array were being skipped.
I modified the referenced line to check in both category arrays, and that fixed the issue.
[01-Aug-2016 12:32:53 UTC] PHP Warning: require_once(PHPMailer/PHPMailerAutoload.php): failed to open stream: No such file or directory in /opt/pmta/bouncehandler/providers/feedback-loop-processor.php on line 37
[01-Aug-2016 12:32:53 UTC] PHP Fatal error: require_once(): Failed opening required 'PHPMailer/PHPMailerAutoload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /opt/pmta/bouncehandler/providers/feedback-loop-processor.php on line 37
[01-Aug-2016 12:32:53 UTC] PHP Warning: require_once(PHPMailer/PHPMailerAutoload.php): failed to open stream: No such file or directory in /opt/pmta/bouncehandler/providers/feedback-loop-processor.php on line 37
[01-Aug-2016 12:32:53 UTC] PHP Fatal error: require_once(): Failed opening required 'PHPMailer/PHPMailerAutoload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /opt/pmta/bouncehandler/providers/feedback-loop-processor.php on line 37
Is there a way to configure this so that the users aren't unsubscribed in general, but still marked as soft bounces in the statistics?
I already tried troubleshooting the max-soft-bounce settings in the admin but doesn't look like it works for the API.
I've read the description and open issues to no avail. Hope it's a quick fix or you can point me in the right direction to make the code changes myself if it's not just a setting. :)
And thank you for making this plugin, saved me a lot of time. :)
I had the bouncehandler working till Jan 20
I changed nothing but it stopped working
when I do the manual processing, I get this:
cat /var/log/pmta/acct-2018-02-18-0000.csv | /usr/bin/php /opt/pmta/bouncehandler/bouncehandler.php --debug
[18/Feb/2018:15:42:47] ------------------------------------------------------------------
[18/Feb/2018:15:42:47] Port25 PowerMTA bounce-handler
[18/Feb/2018:15:42:47] (C) 2016 Gerd Naschenweng http://github.com/magicdude4eva
[18/Feb/2018:15:42:47] ------------------------------------------------------------------
[18/Feb/2018:15:42:47] Handling bounce categories=bad-mailbox,bad-domain,routing-errors,inactive-mailbox,spam-related
[18/Feb/2018:15:42:47] Bounce-provider: Interspire, initialising
[18/Feb/2018:15:42:47] Skipped - not configured!
[18/Feb/2018:15:42:47] Bounce-provider: Interspire, complete
[18/Feb/2018:15:42:47] Bounce-provider: MailWizz, initialising
[18/Feb/2018:15:42:47] Endpoint-URL=mydomain
[18/Feb/2018:15:42:47] MailWizz enabled!
[18/Feb/2018:15:42:47] Bounce-provider: MailWizz, complete
[18/Feb/2018:15:42:47] Feedback-provider: initialising
[18/Feb/2018:15:42:47] Feedback-provider: complete
[18/Feb/2018:15:42:47] Starting bounce processing
[18/Feb/2018:15:42:47] Completed bounce processing! Total records=19, processed=0, skipped=19
In /var/log/pmta/pmta-bounce-handler.log there's this: (I replaced my email address with xxxxx and other addresses too)
Starting bounce processing
[22/Jan/2018:23:36:10] Bounce: inactive-mailbox from=xxxxxx via pmta-vmta0/[email protected]
[22/Jan/2018:23:38:12] Bounce: inactive-mailbox from=xxxxxx via pmta-vmta0/[email protected]
[26/Jan/2018:19:02:00] Bounce: inactive-mailbox from=xxxxxx via pmta-vmta0/[email protected]
[26/Jan/2018:19:03:01] Bounce: inactive-mailbox from=xxxxxx via pmta-vmta0/[email protected]
[27/Jan/2018:13:45:39] Bounce: routing-errors from=xxxxxx via pmta-vmta0/[email protected]
[03/Feb/2018:17:53:23] Bounce: inactive-mailbox from=xxxx via pmta-vmta0/[email protected]
[03/Feb/2018:17:59:25] Bounce: inactive-mailbox from=xxxxx via pmta-vmta0/[email protected]
....
[18/Feb/2018:10:15:47] Bounce: bad-domain from=xxxxxx via pmta-vmta0/[email protected]
[18/Feb/2018:14:58:47] Bounce: spam-related from=xxxxxx via pmta-vmta0/aaaa
None of these bounces ever showed up in mailwizz
Can you please help me understand what's happening and why do these records get skipped in manual processing, and why did bouncehandler stop working?
Where to start debugging this?
Running php 5.6.32 on CentOS6_x64
pmta 4.5v8
Dear @magicdude4eva & other users,
I'm getting the following error in logs:
PHP Warning: fgetcsv() expects parameter 1 to be resource, string given in /opt/pmta/bouncehandler2/bouncehandler.php on line 124
Looking for help!
Thanks
How to Blacklist Bounce Email other Than Unsubscribe ?
we are using php version 5.3.3 and we use this cmd.
cat /var/log/pmta/bounce-2018-03-13-0000.csv | php /opt/pmta/bouncehandler/bouncehandler.php --var/log/pmta/bounce-handler.log --debug
[14/Mar/2018 05:42:04] ------------------------------------------------------------------
[14/Mar/2018 05:42:04] Port25 PowerMTA bounce-handler
[14/Mar/2018 05:42:04] (C) 2016-2017 Gerd Naschenweng https://github.com/magicdude4eva
[14/Mar/2018 05:42:04] ------------------------------------------------------------------
[14/Mar/2018 05:42:04] Handling bounce categories=bad-mailbox,bad-domain,routing-errors,inactive-mailbox,spam-related,policy-related
[14/Mar/2018 05:42:04] Soft-bounce categories=bad-configuration,bad-connection,content-related,invalid-sender,other,policy-related,quota-issues,spam-related,virus-related
[14/Mar/2018 05:42:04] Bounce-provider: Interspire, initialising
[14/Mar/2018 05:42:04] Endpoint-URL=http://example.com/xml.php
[14/Mar/2018 05:42:04] Interspire enabled with lists=5012,5013,5014,5065,4871,5015,5016,5006,5007,5011
[14/Mar/2018 05:42:04] Bounce-provider: Interspire, complete
[14/Mar/2018 05:42:04] Bounce-provider: MailWizz, initialising
[14/Mar/2018 05:42:04] Skipped - not configured!
[14/Mar/2018 05:42:04] Bounce-provider: MailWizz, complete
[14/Mar/2018 05:42:04] Feedback-provider: initialising
[14/Mar/2018 05:42:04] Feedback-provider: complete
[14/Mar/2018 05:42:04] Initialising RRD reporting via /var/log/pmta/pmta.rrd
[14/Mar/2018 05:42:04] Starting bounce processing
[14/Mar/2018 05:42:06] Bounce: bad-mailbox from=[email protected] via node5555-rmta/[email protected] jobId=, dsnStatus=5.0.0 (undefined status)
[14/Mar/2018 05:42:06] Bounce: bad-mailbox from=[email protected] via node60000-rmta/[email protected] jobId=, dsnStatus=5.0.0 (undefined status)
[14/Mar/2018 05:42:06] Bounce: policy-related from=[email protected] via node55-rmta/[email protected] jobId=, dsnStatus=5.0.0 (undefined status)
[14/Mar/2018 05:42:06] Bounce: bad-mailbox from=[email protected] via node255-rmta/henryaol.com jobId=, dsnStatus=5.0.0 (undefined status)
[14/Mar/2018 05:42:06] Bounce: policy-related from=[email protected] via node64-rmta/[email protected] jobId=, dsnStatus=5.0.0 (undefined status)
[14/Mar/2018 05:42:06] Bounce: bad-mailbox from=[email protected] via node15553-rmta/[email protected] jobId=, dsnStatus=5.0.0 (undefined status)
[14/Mar/2018 05:42:06] Bounce: bad-mailbox from=[email protected] via node3899-rmta/[email protected] jobId=, dsnStatus=5.0.0 (undefined status)
[14/Mar/2018 05:42:06] Bounce: policy-related from=[email protected] via node1457-rmta/[email protected] jobId=, dsnStatus=5.0.0 (undefined status)
[14/Mar/2018 05:42:06] Bounce: bad-mailbox from=[email protected] via node6222-rmta/[email protected] jobId=, dsnStatus=5.0.0 (undefined status)
[14/Mar/2018 05:42:06] Bounce: bad-mailbox from=[email protected] via node4445-rmta/[email protected] jobId=, dsnStatus=5.0.0 (undefined status)
[14/Mar/2018 05:42:06] Bounce: bad-mailbox from=[email protected] via node26666-rmta/[email protected] jobId=, dsnStatus=5.0.0 (undefined status)
[14/Mar/2018 05:42:06] Bounce: policy-related from=[email protected] via node2222-rmta/[email protected] jobId=, dsnStatus=5.0.0 (undefined status)
[14/Mar/2018 05:42:06] Bounce: policy-related from=[email protected] via node5555-rmta/[email protected] jobId=, dsnStatus=5.0.0 (undefined status)
[14/Mar/2018 05:42:06] Bounce: policy-related from=[email protected] via node4660-rmta/[email protected] jobId=, dsnStatus=5.0.0 (undefined status)
[14/Mar/2018 05:42:06] Bounce: policy-related from=[email protected] via node3333-rmta/[email protected] jobId=, dsnStatus=5.0.0 (undefined status)
[14/Mar/2018 05:42:06] Bounce: bad-mailbox from=[email protected] via node50-rmta/[email protected] jobId=, dsnStatus=5.0.0 (undefined status)
[14/Mar/2018 05:42:06] Bounce: routing-errors from=[email protected] via node2-rmta/hej.exaple.co.uk jobId=, dsnStatus=5.4.4 (unable to route: no mail hosts for domain)
[14/Mar/2018 05:42:06] Completed bounce processing! Total records=460, processed=10, skipped=231
It show the processed=10 but it's not......we check in the application
Thanks in advance
Just curious, does this work with mailwizz2 aswell?
thank you
Please see
[root@mail pmta]# echo "[email protected]" | /usr/bin/php /opt/pmta/bouncehandler/bouncehandler.php --debug
[25/Sep/2020 12:18:26] ------------------------------------------------------------------
[25/Sep/2020 12:18:26] Port25 PowerMTA bounce-handler
[25/Sep/2020 12:18:26] (C) 2016-2017 Gerd Naschenweng https://github.com/magicdude4eva
[25/Sep/2020 12:18:26] ------------------------------------------------------------------
[25/Sep/2020 12:18:26] Handling bounce categories=bad-mailbox,bad-domain,routing-errors,inactive-mailbox,spam-related,policy-related
[25/Sep/2020 12:18:26] Soft-bounce categories=bad-configuration,bad-connection,content-related,invalid-sender,other,policy-related,quota-issues,spam-related,virus-related
[25/Sep/2020 12:18:26] Bounce-provider: Interspire, initialising
[25/Sep/2020 12:18:26] Skipped - not configured!
[25/Sep/2020 12:18:26] Bounce-provider: MailWizz, initialising
[25/Sep/2020 12:18:26] Endpoint-URL=http://mail.welcomefriend.co/wiz/api/index.php
PHP Fatal error: Uncaught Error: Class 'MailWizzApi_Config' not found in /opt/pmta/bouncehandler/providers/bounce-provider-mailwizz.php:53
Stack trace:
#0 /opt/pmta/bouncehandler/bouncehandler.php(109): require_once()
#1 {main}
thrown in /opt/pmta/bouncehandler/providers/bounce-provider-mailwizz.php on line 53
I was also test with an CSV file
[root@mail pmta]# cat /root/eufr-subscribers-rg746b35rkf98.csv | /usr/bin/php ./bouncehandler/bouncehandler.php
[25/Sep/2020 06:19:01] ------------------------------------------------------------------
[25/Sep/2020 06:19:01] Port25 PowerMTA bounce-handler
[25/Sep/2020 06:19:01] (C) 2016-2017 Gerd Naschenweng https://github.com/magicdude4eva
[25/Sep/2020 06:19:01] ------------------------------------------------------------------
[25/Sep/2020 06:19:01] Handling bounce categories=bad-mailbox,bad-domain,routing-errors,inactive-mailbox,spam-related,policy-related
[25/Sep/2020 06:19:01] Soft-bounce categories=bad-configuration,bad-connection,content-related,invalid-sender,other,policy-related,quota-issues,spam-related,virus-related
[25/Sep/2020 06:19:01] Bounce-provider: Interspire, initialising
[25/Sep/2020 06:19:01] Skipped - not configured!
[25/Sep/2020 06:19:01] Bounce-provider: MailWizz, initialising
[25/Sep/2020 06:19:01] Endpoint-URL=http://mail.welcomefriend.co/wiz/api/index.php
PHP Fatal error: Uncaught Error: Class 'MailWizzApi_Config' not found in /opt/pmta/bouncehandler/providers/bounce-provider-mailwizz.php:53
Stack trace:
#0 /opt/pmta/bouncehandler/bouncehandler.php(109): require_once()
#1 {main}
thrown in /opt/pmta/bouncehandler/providers/bounce-provider-mailwizz.php on line 53
I am using Php 7.4
and pmta version 4.5r11
Please help me to solve it,
Hi,
This kind of error are not begin "detected". Some idea?
b,2017-05-04 18:07:21-0300,2017-05-04 18:07:17-0300,[email protected],[email protected],,failed,5.1.1 (bad destination mailbox address),smtp;550 5.1.1 5.1.1 [email protected]: Recipient address rejected,vip-us-br-mx.terra.com (208.84.244.133),policy-related,smtp,galafassi.org (127.0.0.1),smtp,66.45.248.227,208.84.244.133,"ENHANCEDSTATUSCODES,8BITMIME,SIZE,AUTH,STARTTLS,AUTH:PLAIN,AUTH:CRAM-MD5,AUTH:LOGIN",,pmta-vmta6,,,terra.com.br/pmta-vmta6,pmta-pool,[email protected],"""Admin"" [email protected]",[email protected]
Thanks,
Wilson
Hi Gerd (magicdude4eva)!
First.. a big thank you for putting this code online.
But I have an issue and I can't seem to figure out what the problem is.
I read the documentation multiple times but I get stuck.
When I set things up like you discibed in the readme file, and run a campaign with 2 good and 2 fake mailaddresses, I don't see the bounces in my MailWizz campaign report.
The 2 fake mailaddresses get unsubscribed, so that part looks allright, although I wander why you decide to set these bounce addresses to UNSUBSCRIBE in stead of BOUNCED/BLACKLISTED like MailWizz does.
Also there is a contradictionary in your README.md and the bouncehandler.php:
README.md says:
<acct-file |/usr/bin/php /opt/pmta/bouncehandler/bouncehandler.php>
records b
record-fields b timeQueued,bounceCat,vmta,orig,rcpt,srcMta,dlvSourceIp,jobId,dsnStatus,dsnMta,dsnDiag
</acct-file>
bouncehandler.php * Notes says:
<acct-file | /usr/bin/php /opt/pmta/bouncehandler/bouncehandler.php>
records b
type,timeQueued,bounceCat,vmta,orig,rcpt,srcMta,dlvSourceIp,jobId,dsnStatus,dsnMta,dsnDiag
</acct-file>
Restarting the pmta when the version of bouncehandler.php * Note gives me a Parse error in line 44 of /etc/pmta/config: unknown directive. So this is defenitly incorrect (don't schoot the messenger)!
It would also be handy if you can tell me which MailWizz crons can be commented out listed below:
#3 Bounce handler, runs once at 10 minutes.
*/10 * * * * /usr/bin/php -q /var/www/smtp1.mailhouserock.com/public_html/mailer/apps/console/console.php bounce-handler >/dev/null 2>&1
#4 Feedback loop handler, runs once at 20 minutes.
*/20 * * * * /usr/bin/php -q /var/www/smtp1.mailhouserock.com/public_html/mailer/apps/console/console.php feedback-loop-handler >/dev/null 2>&1
#5 Delivery/Bounce processor, runs once at 3 minutes.
*/3 * * * * /usr/bin/php -q /var/www/smtp1.mailhouserock.com/public_html/mailer/apps/console/console.php process-delivery-and-bounce-log >/dev/null 2>&1
Commenting out #3 and #4 is obvious to me but what about #5?
Cheers!
Hi,
Thanks for previous responses and i really appreciate your works and help :)
Hope all are fine at your end.
I am asking you for pmta logs processing from multiple servers by elastic search.
I have read some articles and documentations but it will be great if you guide me.bcz i will be using elastic search for pmta only.
If you have time, please give me some guidelines how i can process pmta logs smoothly.
thanks in advance
-Ibrahim
Hello Buddy,
the emails Unsubscribed in Lists and don't show up in Campaign Stats. also is there any way to get them in campaign Bounce section..
from bouncehandler.php
$Mailwizz_bounceRecord = array(
$MailWizzType_bounceType, // 1-bounce-type (hard, soft, internal)
$bounceRecord[PORT25_OFFSET_BOUNCE_JOBID], // 2- Campaign-UID
$bounceRecord[PORT25_OFFSET_BOUNCE_DSNSTATUS] // 3- bounce-reason
);
this $bounceRecord[PORT25_OFFSET_BOUNCE_JOBID] always has NULL value comes from powermta bounce log and hence the code ahead written for hard and soft bounce sagrigation based on Campaign-UID doesnt work at all
please help to get solution to this issue
thanks
PHP Warning: require_once(PHPMailer/PHPMailerAutoload.php): Failed to open stream: No such file or directory in /opt/pmta/bouncehandler/providers/feedback-loop-processor.php on line 37
PHP Fatal error: Uncaught Error: Failed opening required 'PHPMailer/PHPMailerAutoload.php' (include_path='.:/usr/share/pear:/usr/share/php:/usr/share/pear:/usr/share/php') in /opt/pmta/bouncehandler/providers/feedback-loop-processor.php:37
Stack trace:
#0 /opt/pmta/bouncehandler/bouncehandler.php(110): require_once()
#1 {main}
thrown in /opt/pmta/bouncehandler/providers/feedback-loop-processor.php on line 37
Hello Buddy,
I am great FAN of yours and was using your port 25 bounce handler script..recently what i found was port 25 bounce handler script marking Mailwizz Hard Bounce As Unsubscribed instead of Blacklisted..
how can we mark Hard bounce as blacklisted in mailwizz via port 25 bouncehandler script?
please suggest
thanks
Hello magicdude4eva,
Great work and you made very useful tools.
I have one issue on unsubscribe handler:
When receiving mails from Gmail, Yahoo for unsubscribe handler, the relay-domain fbl-unsub.example.com is not triggered. While send mail through it's own smtp server that is triggered.
Could you please guide me where is the problem?
Your help will be much appreciated.
Thanks
@magicdude4eva Mailwizz - 1.4.8 Hard Bounce Mark As Unsubscribed ,Previous version Mailwizz - 1.4.3 Hard Bounce Mark As Blacklisted ,
Thanks
Hi Gerd (magicdude4eva)!
First.. a big thank you for putting this code online.
But I have an issue and I can't seem to figure out what the problem is.
I read the documentation multiple times but I get stuck.
When I set things up like you discibed in the readme file, and run a campaign with 2 good and 2 fake mailaddresses, I don't see the bounces in my MailWizz campaign report.
The 2 fake mailaddresses get unsubscribed, so that part looks allright, although I wander why you decide to set these bounce addresses to UNSUBSCRIBE in stead of BOUNCED/BLACKLISTED like MailWizz does.
Also there is a contradictionary in your README.md and the bouncehandler.php:
README.md says:
<acct-file |/usr/bin/php /opt/pmta/bouncehandler/bouncehandler.php> records b record-fields b timeQueued,bounceCat,vmta,orig,rcpt,srcMta,dlvSourceIp,jobId,dsnStatus,dsnMta,dsnDiag </acct-file>
bouncehandler.php * Notes says:
<acct-file | /usr/bin/php /opt/pmta/bouncehandler/bouncehandler.php> records b type,timeQueued,bounceCat,vmta,orig,rcpt,srcMta,dlvSourceIp,jobId,dsnStatus,dsnMta,dsnDiag </acct-file>
Restarting the pmta when the version of bouncehandler.php * Note gives me a Parse error in line 44 of /etc/pmta/config: unknown directive. So this is defenitly incorrect (don't schoot the messenger)!
It would also be handy if you can tell me which MailWizz crons can be commented out listed below:
`#1 Campaigns sender, runs each minute.
#2 Transactional email sender, runs once at 2 minutes.
*/2 * * * * /usr/bin/php -q /var/www/smtp1.mailhouserock.com/public_html/mailer/apps/console/console.php send-transactional-emails >/dev/null 2>&1
#3 Bounce handler, runs once at 10 minutes.
*/10 * * * * /usr/bin/php -q /var/www/smtp1.mailhouserock.com/public_html/mailer/apps/console/console.php bounce-handler >/dev/null 2>&1
#4 Feedback loop handler, runs once at 20 minutes.
*/20 * * * * /usr/bin/php -q /var/www/smtp1.mailhouserock.com/public_html/mailer/apps/console/console.php feedback-loop-handler >/dev/null 2>&1
#5 Delivery/Bounce processor, runs once at 3 minutes.
*/3 * * * * /usr/bin/php -q /var/www/smtp1.mailhouserock.com/public_html/mailer/apps/console/console.php process-delivery-and-bounce-log >/dev/null 2>&1
#6 Various tasks, runs each hour.
0 * * * * /usr/bin/php -q /var/www/smtp1.mailhouserock.com/public_html/mailer/apps/console/console.php hourly >/dev/null 2>&1`
I think crons:
#3 Bounce handler, runs once at 10 minutes.
#4 Feedback loop handler, runs once at 20 minutes.
#5 Delivery/Bounce processor, runs once at 3 minutes.
... can be commented out (am I right, please correct me when I'm wrong)?
Cheers!
with referance to your lne in README file
You can manage bulk-unsubscribes via standalone. The only pre-requisite is a CSV file which contains an email-address in the first column of the file.
Email ID's are not marked as unsubcribed
my bounce.csv is very simple it has got 3 email ids in first column..
im getting below outout every time
when i do standalone test
[08/Oct/2017 18:53:38] ------------------------------------------------------------------
[08/Oct/2017 18:53:38] Port25 PowerMTA bounce-handler
[08/Oct/2017 18:53:38] (C) 2016-2017 Gerd Naschenweng https://github.com/magicdude4eva
[08/Oct/2017 18:53:38] ------------------------------------------------------------------
[08/Oct/2017 18:53:38] Handling bounce categories=bad-mailbox,bad-domain,routing-errors,inactive-mailbox,spam-related,policy-related
[08/Oct/2017 18:53:38] Soft-bounce categories=bad-configuration,bad-connection,content-related,invalid-sender,other,policy-related,quota-issues,spam-related,virus-related
[08/Oct/2017 18:53:38] Bounce-provider: Interspire, initialising
[08/Oct/2017 18:53:38] Skipped - not configured!
[08/Oct/2017 18:53:38] Bounce-provider: MailWizz, initialising
[08/Oct/2017 18:53:38] Endpoint-URL=http://domainname.com/mailwizz/api
[08/Oct/2017 18:53:38] MailWizz enabled!
[08/Oct/2017 18:53:38] Bounce-provider: MailWizz, complete
[08/Oct/2017 18:53:38] Starting bounce processing
[08/Oct/2017 18:53:38] MailWizz: Failed looking up record [email protected] with status=error
[08/Oct/2017 18:53:38] MailWizz: Failed looking up record [email protected] with status=error
[08/Oct/2017 18:53:38] MailWizz: Failed looking up record [email protected] with status=error
[08/Oct/2017 18:53:38] Completed bounce processing! Total records=3, processed=3, skipped=0
Please HELP me im almost there..i really liked your script just stuck here..
your help will be appreciated..
thanks in advance
Hello. Manual bounce-processing works perfectly but I have an error
Error activating configuration: Error running " /usr/bin/php /opt/pmta/bouncehandler/bouncehandler.php": not executable
while trying to add this to my pmta-config
<acct-file | /usr/bin/php /opt/pmta/bouncehandler/bouncehandler.php> records b record-fields b timeQueued,bounceCat,vmta,orig,rcpt,srcMta,dlvSourceIp,jobId,dsnStatus,dsnMta,dsnDiag </acct-file>
Can you help with that?
(permissions of bouncehandler-folder 755 root root, also tried 755 pmta pmta)
MailWizz: Failed looking up record [email protected] with status=error
Uncaught Error: Class 'MailWizzApi_Config' not found in /opt/pmta/bouncehandler/providers/bounce-provider-mailwizz.php:53
Now 2019 ! Mailwizz version - 2 Coming Soon ! Mailwizz version Running -1.8.3. Port25 PowerMTA bounce handler . Port25 feedback loop processing Work fine. ALL Bounce Mark As Unsubscribed . Any Possibility to Fixed This issues @magicdude4eva @twisted1919
cat /var/log/pmta/diag-2018-03-14-0004.csv | php /opt/pmta/bouncehandler/bouncehandler.php --var/log/pmta/bounce-handler.log --debug
[14/Mar/2018 10:03:38] ------------------------------------------------------------------
[14/Mar/2018 10:03:38] Port25 PowerMTA bounce-handler
[14/Mar/2018 10:03:38] (C) 2016-2017 Gerd Naschenweng https://github.com/magicdude4eva
[14/Mar/2018 10:03:38] ------------------------------------------------------------------
[14/Mar/2018 10:03:38] Handling bounce categories=bad-mailbox,bad-domain,routing-errors,inactive-mailbox,spam-related,policy-related
[14/Mar/2018 10:03:38] Soft-bounce categories=bad-configuration,bad-connection,content-related,invalid-sender,other,policy-related,quota-issues,spam-related,virus-related
[14/Mar/2018 10:03:38] Bounce-provider: Interspire, initialising
[14/Mar/2018 10:03:38] Endpoint-URL=http://myendpont.url/xml.php
[14/Mar/2018 10:03:38] Interspire enabled with lists=5012,5013,5014,5065,5075,4871,5015,5016,5006,5007
[14/Mar/2018 10:03:38] Bounce-provider: Interspire, complete
[14/Mar/2018 10:03:38] Bounce-provider: MailWizz, initialising
[14/Mar/2018 10:03:38] Skipped - not configured!
[14/Mar/2018 10:03:38] Bounce-provider: MailWizz, complete
[14/Mar/2018 10:03:38] Feedback-provider: initialising
[14/Mar/2018 10:03:38] Feedback-provider: complete
[14/Mar/2018 10:03:38] Initialising RRD reporting via /var/log/pmta/pmta.rrd
[14/Mar/2018 10:03:38] Starting bounce processing
[14/Mar/2018 10:03:38] Bounce: routing-errors from=[email protected] via node12451/[email protected] jobId=, dsnStatus=4.4.4 (unable to route: dns lookup failure)
[14/Mar/2018 10:03:38] Bounce: routing-errors from=[email protected] via node12452/ja@com jobId=, dsnStatus=4.4.4 (unable to route: dns lookup failure)
[14/Mar/2018 10:03:38] Bounce: routing-errors from=[email protected] via node12453-/[email protected] jobId=, dsnStatus=4.4.4 (unable to route: dns lookup failure)
[14/Mar/2018 10:03:38] Completed bounce processing! Total records=575, processed=0, skipped=572
How to solve this error....???
Hi Gerd, thanks for great contritubion to Mailwizz love it, I'm having an issue with Unsubscribe extension. We have several domains and in current configuration it's only possible to specify one FBL domain, is there an easy workaround for this?
Currently the MailWizz API (https://github.com/twisted1919/mailwizz-php-sdk/blob/master/examples/list_subscribers.php) only supports "Unsubscribe/Subscribe" functionality.
It would be ideal to have bounced subscribers to reflect as "Blacklisted". Will need to discuss with MailWizz API SDK author, as this does not seem to be possible.
It would be ideal if the current MailWizz API SDK allows passing in a "bounced/blacklisted" status - i.e.
$MailWizzEndPoint->unsubscribe($listUID, $subscriberUID, "Bounced");
Hello,
We are configure port25-bouncehandler script all okay but not how in mailwizz as bounce and unsubscribe
[31/May/2018 15:33:03] Bounce: bad-mailbox from=newsletters-test987265987t298437t92733ded=[email protected] via 202geek64.business-geek.com/[email protected] jobId=, dsnStatus=5.1.1 (bad destination mailbox address)
[31/May/2018 15:33:03] Bounce: bad-domain from=newsletters-acontssact=[email protected] via 202geek66.business-geek.com/[email protected] jobId=, dsnStatus=5.1.2 (bad destination system: no such domain)
[31/May/2018 15:33:03] Bounce: bad-mailbox from=newsletters-acontact=[email protected] via 202geek65.business-geek.com/[email protected] jobId=, dsnStatus=5.1.1 (bad destination mailbox address)
[31/May/2018 15:33:03] Bounce: bad-mailbox from=newsletters-test987265987t298437t92733ded=[email protected] via 202geek67.business-geek.com/[email protected] jobId=, dsnStatus=5.1.1 (bad destination mailbox address)
[31/May/2018 15:33:03] Bounce: bad-domain from=newsletters-acontssact=[email protected] via 202geek64.business-geek.com/[email protected] jobId=, dsnStatus=5.1.2 (bad destination system: no such domain)
[31/May/2018 15:33:03] Bounce: bad-mailbox from=newsletters-acontact=[email protected] via 202geek68.business-geek.com/[email protected] jobId=, dsnStatus=5.1.1 (bad destination mailbox address)
[31/May/2018 15:33:03] Bounce: bad-mailbox from=newsletters-test987265987t298437t92733ded=[email protected] via 202geek64.business-geek.com/[email protected] jobId=, dsnStatus=5.1.1 (bad destination mailbox address)
[31/May/2018 15:33:03] Bounce: bad-domain from=newsletters-acontssact=[email protected] via 202geek66.business-geek.com/[email protected] jobId=, dsnStatus=5.1.2 (bad destination system: no such domain)
[31/May/2018 15:33:03] Bounce: bad-mailbox from=newsletters-acontact=[email protected] via 202geek65.business-geek.com/[email protected] jobId=, dsnStatus=5.1.1 (bad destination mailbox address)
[31/May/2018 15:33:03] Completed bounce processing! Total records=29, processed=0, skipped=1
@magicdude4eva I tried running the script but it says:
PHP Warning: require_once(/opt/pmta/bouncehandler/providers/MailWizzApi/Autoloader.php): failed to open stream: No such file or directory in /opt/pmta/bouncehandler/providers/bounce-provider-mailwizz.php on line 48
PHP Fatal error: require_once(): Failed opening required '/opt/pmta/bouncehandler/providers/MailWizzApi/Autoloader.php' (include_path='.:/usr/local/lib/php') in /opt/pmta/bouncehandler/providers/bounce-provider-mailwizz.php on line 48
What to do? Thanks
@magicdude4eva any solution ?
PowerMTA bounce handler MailWizz not working . there is error powemta log
When i am run this command
cat /var/log/pmta/bounce-2017-09-04-0000.csv | /usr/bin/php /opt/pmta/bouncehandler/bouncehandler.php --debug
/var/log/pmta/log
2017-09-04 16:17:04 Unable to parse serial number: number missing
2017-09-04 16:17:08 Unable to parse serial number: number missing
2017-09-04 16:17:14 Unable to parse serial number: number missing
2017-09-04 16:17:18 Unable to parse serial number: number missing
2017-09-04 16:17:23 Unable to parse serial number: number missing
2017-09-04 16:17:26 Unable to parse serial number: number missing
Hello,
I tried to copy the instructions written in read me and place all the folders/files as mentioned but when I try to manually process the unsubscribe its ending up doing nothing.
Getting below:
[root@server ~]# cat /var/log/pmta/bounce-2017-12-31-0000.csv | php /opt/pmta/bouncehandler/bouncehandler.php --var/log/pmta/bounce-handler.log
[31/Dec/2017 06:22:25] ------------------------------------------------------------------
[31/Dec/2017 06:22:25] Port25 PowerMTA bounce-handler
[31/Dec/2017 06:22:25] (C) 2016-2017 Gerd Naschenweng https://github.com/magicdude4eva
[31/Dec/2017 06:22:25] ------------------------------------------------------------------
[31/Dec/2017 06:22:25] Handling bounce categories=bad-mailbox,bad-domain,routing-errors,inactive-mailbox,spam-related,policy-related
[31/Dec/2017 06:22:25] Soft-bounce categories=bad-configuration,bad-connection,content-related,invalid-sender,other,policy-related,quota-issues,spam-related,virus-related
[31/Dec/2017 06:22:25] Bounce-provider: Interspire, initialising
[31/Dec/2017 06:22:25] Skipped - not configured!
[31/Dec/2017 06:22:25] Bounce-provider: MailWizz, initialising
[31/Dec/2017 06:22:25] Endpoint-URL=http://charchatur.com/api
[31/Dec/2017 06:22:25] MailWizz enabled!
[31/Dec/2017 06:22:25] Bounce-provider: MailWizz, complete
[31/Dec/2017 06:22:25] Feedback-provider: initialising
[root@server ~]#
Followed below:
Above all giving me no luck, Am'I missing anything, please guide.
Appreciate your help
Thanks,
Kamlesh
[10/Jul/2017 16:57:25] Bounce: bad-mailbox from=[email protected] via smtp4/[email protected]
MailWizzApi_Params Object
(
[_data:MailWizzApi_Params:private] => Array
(
[status] => error
[error] => Invalid API request signature. Please refer to the documentation.
)
[_readOnly:MailWizzApi_Params:private] =>
)
Hi, I just installed your script, thxs for supplying this.
I went through the documentation several times over, downloaded everything fresh. Went for manual bounce processing first. Created the bounce.csv. It looks exactly like yours.
I am running into an error, not sure where to start debugging:
Bounce: bad-mailbox from=[email protected] via pmta-vmta0/[email protected]
[19/Jan/2018:12:06:17] MailWizz: Failed looking up record [email protected] with status=error
[19/Jan/2018:12:06:17] Completed bounce processing! Total records=14, processed=11, skipped=3
I get this on all 11 records (Why are 3 skipped? I don't understand)
I am using MW 1.5.1, php 5.6.32, pmta 4.5r8
Where can I start debugging this? It seems like there is an error in connecting to MW?
There is only one customer and only one API key. There is only one list, and the subscribers are in there.
I added the x-job header
I downloaded the latest MW SDK
There is no entry in my MW app log
I don't know if this matters, but the smtp server is remote from the server that hosts MW
I would very much appreciate your help!
EDIT:
I looked into the closed issues now too ... set API to Disable signature check
added print_r ($response); in bounce-provider-mailwizz.php
I get:
[19/Jan/2018:12:55:52] Bounce: bad-domain from=[email protected] via pmta-vmta0/[email protected]
MailWizzApi_Http_Response Object
(
[url] => http://mymailwizzdomain.com/api/lists/subscribers/search-by-email-in-all-lists?EMAIL=xxxx%40gmail.coom
[headers] =>
[contentType] => text/html; charset=iso-8859-1
[httpMessage] => Not Found
[curlCode] => 0
[curlMessage] =>
[storeCurlInfo] =>
[curlInfo] =>
[body] => MailWizzApi_Params Object
(
[_data:MailWizzApi_Params:private] => Array
(
[status] => error
[error] => Not Found
)
[_readOnly:MailWizzApi_Params:private] =>
)
[request] =>
[_httpCode:MailWizzApi_Http_Response:private] => 404
)
[19/Jan/2018:12:55:52] MailWizz: Failed looking up record [email protected] with status=error
Hi Dear,
I like your code, it is cool, Is it possible for you to add me in skype. My skype is "telesyssoftsolution"
Waiting to hear from you very soon on skype.
Thanks
Regards
Gopal Tripathi
interspireaddon.com
Hello ,
First of all thanks for this awesome code. I have read files multiple times and using pmta 5 & mailwizz 1.8.3 latest one.
In my pmta 5 i am getting everything in acct file in pmta:httpport & in /var/log/pmta folder.
But i am not able to see those emails in respective camps in mailwizz. So i have to manual merge everything.
So basically PMTA processing bounce files correctly but mailwizz is not feacthing dont know how i can fix it. can someone help me to do this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.