pages:howtos:postfix:working-with-the-mailqueue
Working With The Mailqueue
Sources
display the mailqueue
mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient------- 92CF062722 3140 Wed Jan 26 05:47:27 MAILER-DAEMON (connect to mail.pluspora.com[82.223.1.82]:25: Connection timed out) no-reply@pluspora.com -- 3 Kbytes in 1 Request.
display a specific message in the queue
postcat -vq 92CF062722
postcat: name_mask: all postcat: inet_addr_local: configured 3 IPv4 addresses postcat: inet_addr_local: configured 4 IPv6 addresses *** ENVELOPE RECORDS deferred/9/92CF062722 *** message_size: 3140 275 1 0 3140 0 message_arrival_time: Wed Jan 26 05:47:27 2022 create_time: Wed Jan 26 05:47:27 2022 named_attribute: log_message_origin=local named_attribute: trace_flags=0 sender: named_attribute: dsn_orig_rcpt=rfc822;no-reply@pluspora.com original_recipient: no-reply@pluspora.com recipient: no-reply@pluspora.com *** MESSAGE CONTENTS deferred/9/92CF062722 *** regular_text: Received: by mx.wiretrip.de (Postfix) regular_text: id 92CF062722; Wed, 26 Jan 2022 05:47:27 +0100 (CET) regular_text: Date: Wed, 26 Jan 2022 05:47:27 +0100 (CET) regular_text: From: MAILER-DAEMON@mx.wiretrip.de (Mail Delivery System) regular_text: Subject: Delayed Mail (still being retried) regular_text: To: no-reply@pluspora.com regular_text: Auto-Submitted: auto-replied regular_text: MIME-Version: 1.0 regular_text: Content-Type: multipart/report; report-type=delivery-status; regular_text: boundary="7243D6271E.1643172447/mx.wiretrip.de" regular_text: Content-Transfer-Encoding: 8bit regular_text: Message-Id: <20220126044727.92CF062722@mx.wiretrip.de> regular_text: regular_text: This is a MIME-encapsulated message. regular_text: regular_text: --7243D6271E.1643172447/mx.wiretrip.de regular_text: Content-Description: Notification regular_text: Content-Type: text/plain; charset=utf-8 regular_text: Content-Transfer-Encoding: 8bit regular_text: regular_text: This is the mail system at host mx.wiretrip.de. regular_text: regular_text: #################################################################### regular_text: # THIS IS A WARNING ONLY. YOU DO NOT NEED TO RESEND YOUR MESSAGE. # regular_text: #################################################################### regular_text: regular_text: Your message could not be delivered for more than 4 hour(s). regular_text: It will be retried until it is 5 day(s) old. regular_text: regular_text: For further assistance, please send mail to postmaster. regular_text: regular_text: If you do so, please include this problem report. You can regular_text: delete your own text from the attached returned message. regular_text: regular_text: The mail system regular_text: regular_text: <XXX@XXX.de>: host 127.0.0.1[127.0.0.1] said: 421 4.3.2 Service regular_text: shutting down, closing channel (in reply to end of DATA command) regular_text: regular_text: --7243D6271E.1643172447/mx.wiretrip.de regular_text: Content-Description: Delivery report regular_text: Content-Type: message/delivery-status regular_text: regular_text: Reporting-MTA: dns; mx.wiretrip.de regular_text: X-Postfix-Queue-ID: 7243D6271E regular_text: X-Postfix-Sender: rfc822; no-reply@pluspora.com regular_text: Arrival-Date: Wed, 26 Jan 2022 01:00:30 +0100 (CET) regular_text: regular_text: Final-Recipient: rfc822; XXX@XXX.de regular_text: Original-Recipient: rfc822;XXX@XXX.de regular_text: Action: delayed regular_text: Status: 4.3.2 regular_text: Remote-MTA: dns; 127.0.0.1 regular_text: Diagnostic-Code: smtp; 421 4.3.2 Service shutting down, closing channel regular_text: Will-Retry-Until: Mon, 31 Jan 2022 01:00:30 +0100 (CET) regular_text: regular_text: --7243D6271E.1643172447/mx.wiretrip.de regular_text: Content-Description: Undelivered Message Headers regular_text: Content-Type: text/rfc822-headers regular_text: Content-Transfer-Encoding: 8bit regular_text: regular_text: Return-Path: <no-reply@pluspora.com> regular_text: Received: from mail.pluspora.com (pluspora.com [82.223.1.82]) regular_text: by mx.wiretrip.de (Postfix) with ESMTP id 7243D6271E regular_text: for <XXX@XXX.de>; Wed, 26 Jan 2022 01:00:30 +0100 (CET) regular_text: Received: from mail.pluspora.com (pluspora.com [82.223.1.82]) regular_text: by mail.pluspora.com (Postfix) with ESMTP id 9DA35440B1E regular_text: for <XXX@XXX.de>; Wed, 26 Jan 2022 00:00:24 +0000 (UTC) regular_text: Date: Wed, 26 Jan 2022 00:00:24 +0000 regular_text: From: "pluspora (bleeping_computer [unofficial])" <no-reply@pluspora.com> regular_text: To: HXXX MXXX <XXX@XXX.de> regular_text: Message-ID: <61f08f189a05b_3b93fc20e6ff9a428981742@localhost.mail> regular_text: Subject: bleeping_computer [unofficial] has their birthday today regular_text: Mime-Version: 1.0 regular_text: Content-Type: multipart/alternative; regular_text: boundary="--==_mimepart_61f08f18995a6_3b93fc20e6ff9a4289816c4"; regular_text: charset=UTF-8 regular_text: Content-Transfer-Encoding: 7bit regular_text: host: pluspora.com regular_text: regular_text: --7243D6271E.1643172447/mx.wiretrip.de-- *** HEADER EXTRACTED deferred/9/92CF062722 *** named_attribute: encoding=8bit *** MESSAGE FILE END deferred/9/92CF062722 ***
flush the mailqueue and display it again
postqueue -f mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient------- 92CF062722 3140 Wed Jan 26 05:47:27 MAILER-DAEMON (connect to mail.pluspora.com[82.223.1.82]:25: Connection timed out) no-reply@pluspora.com -- 3 Kbytes in 1 Request.
delete a specific message from the mailqueue
postsuper -d 92CF062722
postsuper: 92CF062722: removed postsuper: Deleted: 1 message
display the mailqueue
mailq
Mail queue is empty
~~DISCUSSION~~
pages/howtos/postfix/working-with-the-mailqueue.txt · Last modified: 2022/01/26 19:14 by Heiko Mischer