Hello, I have 3 servers, one server is for DNS server, one server is for web and database and another one is for mail server. I configured a Linux CentOS 6.4 64bit from scratch for just a mail server. I route IPs with NAT in firewall to servers, I installed Postfix+RoundCube on mail server (installed with iRedMail). I can send email to users on this email from everywhere but when I trying to send email from this server to Gmail my email will be returned and my emails to Yahoo will going to spam folder (with delay). In returned email from gmail I have this header: Code: Return-Path: <[email protected]> Received: from localhost (mail.mysite.com [127.0.0.1]) by mail.mysite.com (Postfix) with ESMTP id C37A12C0A63 for <[email protected]>; Wed, 11 Sep 2013 08:57:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mysite.com; h= user-agent:message-id:subject:subject:to:from:from:date:date :content-transfer-encoding:content-type:content-type :mime-version; s=dkim; t=1378960029; x=1379824030; bh=155hO2gu2Z MwsavrhDs6DbSnLxpFq5Nz8sMSmWlB2Ac=; b=Ze6mYzUcBGMaET6z/btosDHdpI bXc2TP3J0A3mxekRf1H1yCq+xYV2Tl/RiqzOjElG72DmzX6VwR3/ZkrD1mwRuuQG MIR2o8noU+wyV340vWR+XbLEzg57hNtEnmvYASkFaVeub6BR7JObnbYmkC9btVG1 hzCUjZXDW5rjbJEdY= X-Virus-Scanned: amavisd-new at mail.mysite.com Received: from mail.mysite.com ([127.0.0.1]) by localhost (mail.mysite.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q61GPJvu0H_h for <[email protected]>; Wed, 11 Sep 2013 08:57:09 -0700 (PDT) Received: from mail.mysite.com (mail.mysite.com [127.0.0.1]) by mail.mysite.com (Postfix) with ESMTPA id 104712C09BF for <[email protected]>; Wed, 11 Sep 2013 08:57:08 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 11 Sep 2013 08:57:08 -0700 From: [email protected] To: [email protected] Subject: Test email Message-ID: <[email protected]> X-Sender: [email protected] User-Agent: mysite.com WebMail I don't know why in Received said "from localhost" ! I think the problem is this. How can I solve this problem ? DNS Records: mysite.com. MX mail.mysite.com mail.mysite.com A xxx.xxx.xxx.xxx mysite.com SPF v=spf1 mx mx:mysite.com -all dkim._domainkey.mysite.com. TXT v=DKIM1p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCvXjukAXAYfmb3isOnp35UbpxXB8cqqAfRAMTrVJuKsBZukpfqZgXxiidu5Bdsib26tjaL7qy8DhkyXmA6XIQelOANXTz2GRQyUV028Q+1jYUN8HdwLFKm29v8O3z3dBaxqdpyArKG6+44Wyva1NXA2G2prT4NfYYJ8pDLZNn4RQIDAQAB xxx.xxx.xxx.xxx IS public IP of my mail server. Regards