How to get the email body when forwarding?

Good time of day. Need to place the redirect sent from the server to a group chat in telegram. By telegramma everything is clear, and sending messages working properly. Emailing is done via /etc/aliases:

telegram: "|/usr/scripts/forwarding"

The problem is in the bash script to the letter itself?
System: Debian 8, Postfix
July 8th 19 at 12:05
1 answer
July 8th 19 at 12:07
been doing this a long time ago...
first the forwarded email, it is automatically placed in HOLD status
smtpd_helo_restrictions = check_recipient_access hash:/etc/postfix/hold

cat /etc/postfix/hold HOLD

then look at message ID:
postqueue -p
and see the message:
postcat -qb ID
delete the email from the queue:
postsuper -d ID

Find more questions by tags DebianE-mailMessengersPostfix