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

Topic: how to change a Received-header


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 [])
    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. [])
    by mail.mailserver2.de (Postfix) with ESMTP id 7E907175830
    for <info@domain1.com>; Mon,  29 Aug 2011 12:13:06 +0200 (CEST)

where 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 [])

instead of

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

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


Re: how to change a Received-header

This is happening because the reverse DNS for 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.