1 (edited by sits 2011-08-30 03:29:50)

Topic: how to change a Received-header

Hi,

I've now set up my a second mailserver at our office.
Both Mailservers run within a VM and both on Debian Squeeze.

I tought I've configured them both the same but actually the
new Mailserver behaves a little bit different.

When I send a mail from the old mailserver, everything looks
like it should and the following line is found within the mailheader:


Received: from mail.mailserver2.de (mail.mailserver2.de [10.11.12.13])
    by mail.mailserver1.de (Postfix) with ESMTP id BBD4CA850D
    for <info@domain2.com>; Mon,  29 Aug 2011 12:14:25 +0200 (CEST)


But when I send a mail from the new mailserver, this line is added
to the mailheader:


Received: from mail.mailserver1.de (static.44.33.22.11.clients.your-server.de [11.22.33.44])
    by mail.mailserver2.de (Postfix) with ESMTP id 7E907175830
    for <info@domain1.com>; Mon,  29 Aug 2011 12:13:06 +0200 (CEST)


where 11.22.33.44 is the IP of the Server on which the Mailserver-VM
is running.
Could you please tell me what I need to change to get

Received: from mail.mailserver1.de (mail.mailserver1.de [11.12.13.14])

instead of

Received: from mail.mailserver1.de (static.44.33.22.11.clients.your-server.de [11.22.33.44])


If you need config-file to dive into this, I will provide them of cause.
I just do not know where to start...

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: how to change a Received-header

This is happening because the reverse DNS for 11.22.33.44 isnt mail.mailserver1.de it's currently static.blahblahlblah.

A DNS fix is the right way to go here. Sure perhaps you can tweak a config file to get it to display in the headers, but I know mail servers cry a lot more about forward DNS not matching reverse DNS these days.