AbuseReport no processing

Superyo

Member
Hi,

When a subscriber makes an AbuseReport we receive this in the server:
51.255.70.33 - - [16/Mar/2016:18:03:49 +0100] "GET /dswh/18?transaction=47e30788-6f6d-48c1-a85f-b88f7b1fe66c&to=XXXXX%40yahoo.es&date=3%2f16%2f2016+5%3a02%3a46+PM&status=AbuseReport&channel=HTTP+API&account=XXXXX&category=Unknown&subject=XXXXXX HTTP/1.1" 200 6169 "-" "-"

But it does not get processed. The subscriber remains "confirmed" in the list and anything is shown in logs (bounces or abuse) or blacklist.
 

twisted1919

Administrator
Staff member
Hmm, looking at the code i see this:
PHP:
if ($category == 'Spam' || ($category == 'Unknown' && $status == 'AbuseReport')) {
    if (Yii::app()->options->get('system.cron.process_feedback_loop_servers.subscriber_action', 'unsubscribe') == 'delete') {
        $subscriber->delete();
        Yii::app()->end();
    }

    $subscriber->status = ListSubscriber::STATUS_UNSUBSCRIBED;
    $subscriber->save(false);

    $trackUnsubscribe = new CampaignTrackUnsubscribe();
    $trackUnsubscribe->campaign_id   = $campaign->campaign_id;
    $trackUnsubscribe->subscriber_id = $subscriber->subscriber_id;
    $trackUnsubscribe->note          = 'Unsubscribed via Web Hook!';
    $trackUnsubscribe->save(false);

    Yii::app()->end();
}
So that should match
Code:
51.255.70.33 - - [16/Mar/2016:18:03:49 +0100] "GET /dswh/18?transaction=47e30788-6f6d-48c1-a85f-b88f7b1fe66c&to=XXXXX%40yahoo.es&date=3%2f16%2f2016+5%3a02%3a46+PM&status=AbuseReport&channel=HTTP+API&account=XXXXX&category=Unknown&subject=XXXXXX HTTP/1.1" 200 6169 "-" "-"
Just fine.

Are you at latest mailwizz version? Otherwise i can't explain why the above will not work.
 

Superyo

Member
I'm at latest version. I've found that code in apps/frontend/controllers/DswhController.php but it doesn't work.

I will check it more carefully and report to you.

Another question. In ElasticEMail you can put a webhook when you use the SMTP and EE reports the problems to that hook. How can I bind them in Mailwizz?
 

twisted1919

Administrator
Staff member
Another question. In ElasticEMail you can put a webhook when you use the SMTP and EE reports the problems to that hook. How can I bind them in Mailwizz?
Not sure, you should only use the web api with automatic processing, not the smtp one.
 

Superyo

Member
So this query:

Code:
51.255.70.34 - - [18/Mar/2016:21:27:55 +0100] "GET /dswh/10?transaction=0f47f53c-55b9-4a2b-97c3-fdc96bb51d67&to=alfonso.galleg
o%40madrid.cepsa.es&date=3%2f18%2f2016+8:26:57+PM&status=Error&channel=SMTP+API&account=sat%40vlc.auren.es&category=DNSProblem
&subject=Auren-+Bolet%C3%ADn+Mensual+Marzo+2016 HTTP/1.1" 200 6169 "-" "-"

Will be ignored as has been sent through SMTP
 
Top