Postfix sending spam

Discussion in 'ISPConfig 3 Priority Support' started by mbardelmeijer, Jul 25, 2013.

  1. mbardelmeijer

    mbardelmeijer New Member


    We have an problem with our ISPConfig configuration. We have installed it yesterday, and used it for 30 of our clients. Now if someone sends to gmail or outlook (hotmail), it will land in gmail's or outlook's spam folder.

    We use rDNS and SPF records. We tested it from multiple ISPConfig servers, with the same configuration, so we know it is not the IP (

    Here's an sample email, what lands in the spam folder (we've deleted the domain and replaced it with ANYDOMAIN, to respect our client's privacy). Please note that this happends with each domain.

    Delivered-To: [email protected]
    Received: by with SMTP id q2csp163603obz;
            Thu, 25 Jul 2013 11:55:03 -0700 (PDT)
    X-Received: by with SMTP id b9mr3082227wiy.40.1374778502527;
            Thu, 25 Jul 2013 11:55:02 -0700 (PDT)
    Return-Path: <michel@ANYDOMAIN>
    Received: from ( [])
            by with ESMTP id k5si19296829wje.85.2013.
            for <[email protected]>;
            Thu, 25 Jul 2013 11:55:02 -0700 (PDT)
    Received-SPF: pass ( domain of michel@ANYDOMAIN designates as permitted sender) client-ip=;
           spf=pass ( domain of michel@ANYDOMAIN designates as permitted sender) smtp.mail=michel@ANYDOMAIN
    Received: by (Postfix, from userid 48)
    	id ECDBA281B2E; Thu, 25 Jul 2013 20:53:15 +0200 (CEST)
    To: [email protected]
    Subject: Other email to check the spam.
    X-PHP-Originating-Script: 0:rcmail.php
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8;
    Content-Transfer-Encoding: 7bit
    Date: Thu, 25 Jul 2013 20:53:15 +0200
    From: michel@ANYDOMAIN
    Message-ID: <d92ee64f51d191478b05bc6b13e9dac2@ANYDOMAIN>
    X-Sender: michel@ANYDOMAIN
    User-Agent: Roundcube Webmail/0.9.2
    Other email to check the spam.
    Please help if you can.


    Michel Bardelmeijer
  2. mbardelmeijer

    mbardelmeijer New Member

    Magic fairies came and fixed the problem.

    Looks like gmail flusht there spam check or something like that.
    With outlook it still isn't fixed, but i trust it will work soon.

    One question, in the headers with amavis enabled, this wil show up:
    Received: from localhost (unknown [])
    	by (Postfix) with ESMTP id 61A27281B35
    Is this ok, can this be ignored?

  3. till

    till Super Moderator Staff Member ISPConfig Developer

    The most common source of spam are vulnerable website scripts or contact forms. You can see in the mail headers if a script is send by php and which script has send it to check and fix the script. In the case above, the email was send by the script rcmail.php on your server:

    X-PHP-Originating-Script: 0:rcmail.php

    You can check here if your server / IP is blacklisted:

    Thats a normal delivery header of a email scanned by amavis.
  4. mbardelmeijer

    mbardelmeijer New Member

  5. till

    till Super Moderator Staff Member ISPConfig Developer

    There are several reasons why a email gets sorted out as spam by provieders, its not a issue with the setup in general, these are all individual server / ip / dns based problems:

    1) Using a dynamic IP address to send the emails.
    2) Your IP or subnet has a bed reputation,e.g. other servers in the same subnet has been send spam in the past.
    3) The server hostname does not exist in DNS or is not a fqdn (fully qualified domain name)
    4) The reverse dns record of the IP address is not the same then the server hostname.
    5) Server hostname and postfix mailname are not the same.
    6) You have a spf recrd for the domain but the mailserver that is used to send the email is not in the allowed IP list of the spf record.

Share This Page