Mail queue identification

Discussion in 'Installation/Configuration' started by vaio, Feb 9, 2012.

  1. vaio

    vaio New Member

    is there any way to find out more details about mail queue.

    I have there few emails which are apparently sent from my email to some spam address: [email protected]

    How to see what is reason it got to that?
    Thank you,
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can get a list of all mails in the mailqueue with the command:

    postqueue -p


    D7369215C4A2     4214 Tue Feb  7 12:24:06  [email protected]
           (connect to[]:25: Connection refused)
                                             [email protected]
    In the command output you see a unique identifier for the email "D7369215C4A2". Postfix has several queues which are in /var/spool/postfix/ directory on Linux. The queue for emails where delivery failed is the deferred queue, to access a email from a queue, you can use the postcat command. Example for the email above:

    postcat /var/spool/postfix/deferred/D/D7369215C4A2
  3. vaio

    vaio New Member

    Thank you Till!!!

    I am sure you haven't helped only me but also others with similar problems!

  4. vaio

    vaio New Member

    Till may i ask you about some details...

    When i use your advice, i get:
    *** ENVELOPE RECORDS /var/spool/postfix/deferred/B/B6DF442A65B ***
    message_size:             600             170               1               0             600
    message_arrival_time: Thu Feb 16 13:54:47 2012
    create_time: Thu Feb 16 13:54:47 2012
    named_attribute: rewrite_context=local
    sender: [email protected]****.tld
    *** MESSAGE CONTENTS /var/spool/postfix/deferred/B/B6DF442A65B ***
    Received: by s1.****.com (Postfix, from userid 5064)
            id B6DF442A65B; Thu, 16 Feb 2012 13:54:47 +0100 (CET)
    To: [email protected]
    Subject: f
    X-PHP-Script: www.****.si/wp-admin/admin-ajax.php for 90.1**.1**.2**
    Date: Thu, 16 Feb 2012 12:54:47 +0000
    From: Slim Line <[email protected]****.tld>
    Message-ID: <[email protected]***.tld>
    X-Priority: 3
    X-Mailer: PHPMailer 5.1 (
    MIME-Version: 1.0
    Content-Transfer-Encoding: 8bit
    Content-Type: text/plain; charset="UTF-8"
        [email] => t*****[email protected]
        [name] => T****ja
    *** HEADER EXTRACTED /var/spool/postfix/deferred/B/B6DF442A65B ***
    named_attribute: encoding=8bit
    original_recipient: [email protected]
    recipient: [email protected]
    *** MESSAGE FILE END /var/spool/postfix/deferred/B/B6DF442A65B ***
    Can i with this identify source of 'problem'?
    Maybe you know what parameter is important for ID?

    Edit: I see it has something with wordpress, i guess contact 7 form... Will try to find out there since i don't know if you are expert on this also :)

    Thank you,
    Last edited: Feb 17, 2012
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Last edited: Feb 17, 2012
  6. vaio

    vaio New Member

    Thanks Till! Can you please remove part of www.*****...

Share This Page