1

modify headers with sendmail on centos

view story
linux-howto

http://stackoverflow.com – I'm using sendmail to send outbound email on my centos server. The problem is that, sendmail will always add a "Received:" and Message-Id:" header in the emails sent. like this: Received: (from www@localhost) by jude.me (8.13.8/8.13.8/Submit) id r128Pfu0021960; Sat, 2 Feb 2013 16:25:41 +0800 Date: Sat, 2 Feb 2013 16:25:41 +0800 Message-Id: <201302020825.r128Pfu0021960@jude.me> To: test@test.com Subject: Test From: obama@whitehouse.gov Reply-To: obama@whitehouse.gov I have commented the configuration section for headers in sendmail.cf, but there's still a "Received:" and "Message-Id:" (HowTos)