I would like to send mails from my PHP application built with Codeigniter with sendmail and all works out of the box. But there are also few problems with sendmail on my server, because I don't know how to setup it properly. This is the source code from message which is sent with CodeIgniter: Code: Delivered-To: email@example.com Received: by xxx.xxx.xxx.xxx with SMTP id xxxxxxxxxxxxxxx; Wed, 31 Jul 2013 02:54:36 -0700 (PDT) X-Received: by xxx.xxx.xxx.xxx with SMTP id xxxxxxxxxxx.xx.xxxxxxxxxxx; Wed, 31 Jul 2013 02:54:36 -0700 (PDT) Return-Path: <firstname.lastname@example.org> Received: from host.name ([xxx.xxx.xxx.xxx]) by mx.google.com with ESMTPS id xxxxxxxxx.xxx.2013.07.31.02.54.35 for <email@example.com> (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 31 Jul 2013 02:54:36 -0700 (PDT) Received-SPF: neutral (google.com: xxx.xxx.xxx.xxx is neither permitted nor denied by best guess record for domain of firstname.lastname@example.org) client-ip=xxx.xxx.xxx.xxx; Authentication-Results: mx.google.com; spf=neutral (google.com: xxx.xxx.xxx.xxx is neither permitted nor denied by best guess record for domain of email@example.com) firstname.lastname@example.org Received: from host.name (localhost [127.0.0.1]) by host.name (8.14.3/8.14.3/Debian-9.1ubuntu1) with ESMTP id xxxxxxxxxxxx for <email@example.com>; Wed, 31 Jul 2013 12:03:00 +0200 Received: (from www-data@localhost) by host.name (8.14.3/8.14.3/Submit) id xxxxxxxxxxxx; Wed, 31 Jul 2013 12:03:00 +0200 X-Authentication-Warning: host.name: www-data set sender to firstname.lastname@example.org using -f User-Agent: CodeIgniter Date: Wed, 31 Jul 2013 12:03:00 +0200 From: "Test mail" <email@example.com> To: firstname.lastname@example.org Subject: =?utf-8?Q?Email_Test?= Reply-To: "email@example.com" <firstname.lastname@example.org> X-Sender: email@example.com X-Mailer: CodeIgniter X-Priority: 3 (Normal) Message-ID: <firstname.lastname@example.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit ----Here is the mail content---- I want to hide my hostname, www-data@localhost, sendmail version & OS, x-authentication-warning, recieved-spf and authentication results. What do I have to do to properly setup sendmail, to hide those things? Thank you for help!