How set Power MTA for bounce process?

Discussion in 'Common issues' started by fgaep, Sep 16, 2016.

Tags:
  1. fgaep

    fgaep New Member

    Joined:
    Sep 5, 2016
    Messages:
    14
    Likes Received:
    1
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    1
    I use PMTA in mailwizz as a delivery server. Everything works fine regarding delivery of campaigns/emails. But bounce and fbl process does not work. Could somebody pls advice me how should I set PMTA config so that bounces work properly? Thanks
     
  2. Vpul Shah

    Vpul Shah Active Member Support Staff

    Joined:
    Feb 23, 2015
    Messages:
    685
    Likes Received:
    111
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    1
    fgaep likes this.
  3. fgaep

    fgaep New Member

    Joined:
    Sep 5, 2016
    Messages:
    14
    Likes Received:
    1
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    1
    Thanks Vpul, I know it. But if you would have for example 1000 customers of your mailwizz you would need to set min. 1000 APIs and min. 1000 email list ids?
     
  4. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    9,463
    Likes Received:
    2,223
    @fgaep - that's why you need to start using catchall generic emails like unsubscribe-[subscriber-uid]@domain.com and you'd then extract the subscriber uid from the above email and take action against it.
     
  5. fgaep

    fgaep New Member

    Joined:
    Sep 5, 2016
    Messages:
    14
    Likes Received:
    1
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    1
    It means there is a way without API keys? Can I do it so that bounces and FBLs are processed by using of port25-bounce handler and without mailwizz api setting?
     
  6. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    9,463
    Likes Received:
    2,223
    @fgaep - Is pmta on the same server as mailwizz ?
     
  7. fgaep

    fgaep New Member

    Joined:
    Sep 5, 2016
    Messages:
    14
    Likes Received:
    1
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    1
  8. fgaep

    fgaep New Member

    Joined:
    Sep 5, 2016
    Messages:
    14
    Likes Received:
    1
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    1
    I think mailwizz bounce process can work without API. If I would add manually via phpmyadmin a record (for example with hard bounce) into campaign_bounce_log table, then I can see this record in refreshed campaign stats. If I would change delivery_confirmed field in campaign_delivery_log from yes to no, then I can see it also in refreshed campaign stats. But I can run a php script from pmta config, see for example this:
    <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>, read more here: https://github.com/magicdude4eva/port25-bouncehandler
    Of course, it will be needed to delete hard bounces from all email lists in mailwizz system. PMTA needs to know campaign id and subcriber id.
     
    Last edited: Sep 23, 2016
  9. frm.mwz

    frm.mwz Well-Known Member

    Joined:
    Mar 8, 2016
    Messages:
    3,443
    Likes Received:
    644
    S.E:
    2018-11-06 14:46:35
    L.T:
    Regular
    L.C:
    6
    check each part separately
    e.g. each assumed 'non-working' mbx with thunderbird
    e.g. each protocol available

    also consider firewall issues {pop: SSL/995, (Start)TLS/110; imap: SSL/993, (Start)TLS/143}
     
    Just Me likes this.
  10. rritz

    rritz Member

    Joined:
    Jun 30, 2016
    Messages:
    162
    Likes Received:
    22
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    2
    Sorry stupid question @twisted1919 but where do I find / generate the api keys for pmta bounce handling?
     
  11. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    9,463
    Likes Received:
    2,223
    @rritz - as a customer, go to API Keys area and generate them from there.
     
    rritz likes this.
  12. rritz

    rritz Member

    Joined:
    Jun 30, 2016
    Messages:
    162
    Likes Received:
    22
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    2
    Oh customer .. I was looking in backend, thxs @twisted1919 !! :) stupid
    If I have several remote smtp servers, will I have to generate a seperate key for each one? I assume so.
     
  13. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    9,463
    Likes Received:
    2,223
    Yes, most likely you have to do that.
     
    rritz likes this.
  14. Ashish Shukla

    Ashish Shukla New Member

    Joined:
    Dec 21, 2017
    Messages:
    2
    Likes Received:
    0
    S.E:
    2018-12-17 02:07:10
    L.T:
    Regular
    L.C:
    2
    Hey I am using above codes which provided in github, I can't see any error but it's not processing. When I am doing it manually it shows like.
    cat /var/log/pmta/bounce-2018-05-12-0000.csv | /usr/bin/php /opt/pmta/bouncehandler/bouncehandler.php
    Content-type: text/html; charset=UTF-8

    [12/May/2018 11:36:39] ------------------------------------------------------------------
    [12/May/2018 11:36:39] Port25 PowerMTA bounce-handler
    [12/May/2018 11:36:39] (C) 2016-2017 Gerd Naschenweng https://github.com/magicdude4eva
    [12/May/2018 11:36:39] ------------------------------------------------------------------
    [12/May/2018 11:36:39] Handling bounce categories=bad-mailbox,bad-domain,routing-errors,inactive-mailbox,spam-related,policy-related
    [12/May/2018 11:36:39] Soft-bounce categories=bad-configuration,bad-connection,content-related,invalid-sender,other,policy-related,quota-issues,spam-related,virus-related
    [12/May/2018 11:36:39] Bounce-provider: MailWizz, initialising
    [12/May/2018 11:36:39] Endpoint-URL=http://domainaname/api/index.php/
    [12/May/2018 11:36:39] MailWizz enabled!
    [12/May/2018 11:36:39] Bounce-provider: MailWizz, complete
    [12/May/2018 11:36:39] Feedback-provider: initialising

    After above line noting happen
     
  15. rritz

    rritz Member

    Joined:
    Jun 30, 2016
    Messages:
    162
    Likes Received:
    22
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    2
    you'll have to head over to github with this issue. It's not related to mailwizz and no one here will be able to help you
     
  16. Ashish Shukla

    Ashish Shukla New Member

    Joined:
    Dec 21, 2017
    Messages:
    2
    Likes Received:
    0
    S.E:
    2018-12-17 02:07:10
    L.T:
    Regular
    L.C:
    2
    Yeah I gone through github code and updated everything as mentioned in docs, but it's not working. Also it is not showing error as well when I am running command, cat /var/log/pmta/bounce-2018-05-12-0000.csv | /usr/bin/php /opt/pmta/bouncehandler/bouncehandler.php
     
  17. rritz

    rritz Member

    Joined:
    Jun 30, 2016
    Messages:
    162
    Likes Received:
    22
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    2
    Yes, still this is something related to the bouncehandler code. Register with github and open an issue there. No one in here can help you.
     

Share This Page