Unable to receive tickets via email

after using this command rt-shredder --plugin “Tickets=query,Status = ‘delete’ AND LastUpdated < ‘30 days ago’;limit,100” --sqldump /shredder-restore-tickets.sql

I am unable to receive tickets via email

What errors are you seeing in your mail/web server logs?

[11675] [Mon Sep 20 12:45:20 2021] [debug]: Found 0 scrips for TransactionBatch stage with applicable type(s) Comment for txn #1346 on ticket #53 (/opt/rt4/sbin/…/lib/RT/Scrips.pm:482)

[11675] [Mon Sep 20 12:45:20 2021] [warning]: Use of uninitialized value $ARGS{“TxnRecipients”} in split at /opt/rt4/share/html/Helpers/ShowSimplifiedRecipients line 99. (/opt/rt4/share/html/Helpers/ShowSimplifiedRecipients:99)

[11675] [Mon Sep 20 12:45:23 2021] [debug]: RT::Ticket=HASH(0x557e6ddacc88) tried to load a bogus ticket: 49 (/opt/rt4/sbin/…/lib/RT/Ticket.pm:149)

[11675] [Mon Sep 20 12:45:23 2021] [debug]: RT::Ticket=HASH(0x557e6dd3f6b8) tried to load a bogus ticket: 35 (/opt/rt4/sbin/…/lib/RT/Ticket.pm:149)

[11675] [Mon Sep 20 12:45:23 2021] [debug]: RT::Ticket=HASH(0x557e6dd91328) tried to load a bogus ticket: 36 (/opt/rt4/sbin/…/lib/RT/Ticket.pm:149)

[11675] [Mon Sep 20 12:45:23 2021] [debug]: RT::Ticket=HASH(0x557e6dd2e588) tried to load a bogus ticket: 48 (/opt/rt4/sbin/…/lib/RT/Ticket.pm:149)

[11675] [Mon Sep 20 12:45:23 2021] [debug]: RT::Ticket=HASH(0x557e6de13858) tried to load a bogus ticket: 47 (/opt/rt4/sbin/…/lib/RT/Ticket.pm:149)

[11675] [Mon Sep 20 12:45:23 2021] [debug]: RT::Ticket=HASH(0x557e6ddf52e0) tried to load a bogus ticket: 37 (/opt/rt4/sbin/…/lib/RT/Ticket.pm:149)

None of that looks like it has to do with a ticket not being created though, are you sure emails are hitting the RT server? Do you see anything in the mail logs?