postal icon indicating copy to clipboard operation
postal copied to clipboard

Ability to remove recipients from the suppression list

Open adamcooke opened this issue 9 years ago • 19 comments

adamcooke avatar Apr 29 '17 10:04 adamcooke

Having looked into this. It is possible to remove recipients from the recipient list by successfully sending them a message. If a message is sent to someone on a suppression list it will be held. From there, you can "release" it. If it is successfully delivered, it will automatically be removed from the suppression list otherwise they will remain on the list.

I forgot this when I added this ticket.

adamcooke avatar Apr 29 '17 11:04 adamcooke

@adamcooke It would be useful to have a way to do this via the API. i.e., deleting an email address from the suppression list, as well as a way to query to see if an email is in the list.

mackinra avatar Aug 18 '17 05:08 mackinra

There needs an ability to release "Held" messages in bulk. The use case is for Gmail. If you're trying to warm up a new IP, they will permanently fail messages with this error:

"550-5.7.1 [IP redacted] Our system has detected that this message is 550-5.7.1 likely suspicious due to the very low reputation of the sending IP 550-5.7.1 address. To best protect our users from spam, the message has been 550-5.7.1 blocked."

These are not true bounces. But, Postal will put such recipients on the suppression list or in "Held" status if attempting to mail again. However, the only way to solve this issue is to send more mail so that the reputation can be established and build up.

Maybe just a "Release All" button for now?

longhorninmd avatar Aug 26 '17 16:08 longhorninmd

Postal is such a great relief, at last I can get a tool in-between my mails and my Psychotic ISP (Bigpond), to try to figure why the hell they drop my important emails, However the ability to delete messages and remove suppressions and clear logs and delete things from the queue would be really helpful, thanks for such a promising tool

blakilox avatar Dec 29 '17 20:12 blakilox

Is it possible to search an email address manually from suppression list and release it ? Also can the 30 day period of retry be customised ?

sandeep28saxena avatar Feb 13 '18 06:02 sandeep28saxena

If you know the recipient can now receive messages, Postal should let you resend their individual messages manually which will remove them from the suppression list presuming the message is delivered.

willpower232 avatar Feb 13 '18 09:02 willpower232

Looking at low level, the suppresions are here:

MariaDB [postal-server-1]> use postal-server-1;       
Database changed
MariaDB [postal-server-1]> select * from  suppressions;
(...)
MariaDB [postal-server-1]> DELETE FROM suppressions WHERE address = 'some@email';
(...)

So yes, we'd need something like:

  • /api/v1/suppressions/add (user email; adds the user to suppressions list)
  • /api/v1/suppressions/remove (user email; removes email from suppressions list)
  • /api/v1/suppressions/check (user email; check if email exists on the list)

And maybe:

  • /api/v1/suppressions/list (no arguments, list all emails on the suppression list)

tchwpkgorg avatar Apr 04 '19 09:04 tchwpkgorg

+1 on @tchwpkgorg comment

criskolkman avatar Oct 31 '19 09:10 criskolkman

+1 on @tchwpkgorg :)

nenominal avatar Nov 05 '19 12:11 nenominal

Hello i tried sending email to the recipient which was listed on suppression list. But i am not able to send emails as it shows following errors : Hard Fail

Maximum number of delivery attempts (21) has been reached. Added [email protected] to suppression list because delivery has failed 21 times.

I have not attempted to send emails to [email protected] 21 times. Still the recepients address is on the suppression list.

gitaayush avatar Apr 06 '21 07:04 gitaayush

@gitaayush please don't comment on issues closed a long time ago, you may not have sent 21 different emails but Postal will have retried the message repeatedly which is why it reached the limit.

willpower232 avatar Apr 06 '21 08:04 willpower232

Sorry for commenting on the closed issues. umm is there any way to remove the recepients email from suppression list ??

gitaayush avatar Apr 06 '21 08:04 gitaayush

As above

It is possible to remove recipients from the recipient list by successfully sending them a message. If a message is sent to someone on a suppression list it will be held. From there, you can "release" it. If it is successfully delivered, it will automatically be removed from the suppression list otherwise they will remain on the list.

willpower232 avatar Apr 06 '21 11:04 willpower232

@willpower232 somehow the email is in suppression but I can't release as it immediately gives me an error message. So even in suppression it is sending it and not putting on "hold" so no way to release it. Any other way without needing to learn databases?

August 28, 2023 11:47 ERROR An internal error occurred while sending this message. This message will be retried automatically. If this persists, contact support for assistance.

FrozenError: can't modify frozen String: ""

Support Ref: J-HNAOQQZHVW

August 28, 2023 11:47 HELD Recipient ([email protected]) is on the suppression list (reason: too many soft fails)

btalin avatar Aug 28 '23 09:08 btalin

We've exactly the same issue with retrying:

FrozenError: can't modify frozen String: "" Support Ref: J-EVU135MXKZ

giezi avatar Oct 20 '23 07:10 giezi

@willpower232 somehow the email is in suppression but I can't release as it immediately gives me an error message. So even in suppression it is sending it and not putting on "hold" so no way to release it. Any other way without needing to learn databases?

August 28, 2023 11:47 ERROR An internal error occurred while sending this message. This message will be retried automatically. If this persists, contact support for assistance.

FrozenError: can't modify frozen String: ""

Support Ref: J-HNAOQQZHVW

August 28, 2023 11:47 HELD Recipient ([email protected]) is on the suppression list (reason: too many soft fails)

this one has a quick fix here: https://github.com/nicksellen/postal-fix

but sadly it won't solve the suppression release problem

calvez avatar Oct 29 '23 21:10 calvez

There needs an ability to release "Held" messages in bulk. The use case is for Gmail. If you're trying to warm up a new IP, they will permanently fail messages with this error:

"550-5.7.1 [IP redacted] Our system has detected that this message is 550-5.7.1 likely suspicious due to the very low reputation of the sending IP 550-5.7.1 address. To best protect our users from spam, the message has been 550-5.7.1 blocked."

These are not true bounces. But, Postal will put such recipients on the suppression list or in "Held" status if attempting to mail again. However, the only way to solve this issue is to send more mail so that the reputation can be established and build up.

Maybe just a "Release All" button for now?

To release/retry all held messages, the following SQL will do the trick:

INSERT INTO `postal`.queued_messages (server_id, message_id, batch_key, domain, manual) SELECT XXX, id, CONCAT('outgoing-', SUBSTR(rcpt_to, INSTR(rcpt_to, '@')+1)), SUBSTR(rcpt_to, INSTR(rcpt_to, '@')+1), 1 FROM `postal-server-XXX`.messages WHERE held = 1;

Where both instances of XXX is the ID of your server - which you can get from: SELECT id, name FROM `postal`.servers;

washcroft avatar Nov 04 '23 18:11 washcroft

We use the postal console to bulk release held messages after an incident :

postal console
server=Organization.find_by_permalink('INSERT_YOUR_ORG').servers.find_by_permalink('INSERT_YOUR_SERVER_NAME')
server.message_db.messages(:where => {:held => 1,:scope => 'outgoing'}).each { |m| m.add_to_message_queue(:manual => true) }

arthurzenika avatar Nov 27 '23 14:11 arthurzenika

We use the postal console to bulk release held messages after an incident :

postal console
server=Organization.find_by_permalink('INSERT_YOUR_ORG').servers.find_by_permalink('INSERT_YOUR_SERVER_NAME')
server.message_db.messages(:where => {:held => 1,:scope => 'outgoing'}).each { |m| m.add_to_message_queue(:manual => true) }

Thank you so much, very helpfull

ugurtam avatar Jul 29 '24 16:07 ugurtam