Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Currenty emails are sent/received as :

Received: from localhost.localdomain (sender.host [xx.xx.xx.xx])
    by smtp.host (Postfix) with ESMTP id 7F6CC67897
    for <mail@example.com>; Thu, 19 Jan 2012 23:31:12 +0100 (CET)

I would like to send emails without sender location (first line) :

Received: by smtp.host (Postfix) with ESMTP id 7F6CC67897
    for <mail@example.com>; Thu, 19 Jan 2012 23:31:12 +0100 (CET)

I know I can do that with header_check, but this is regular expression, and performance will suffer...

Is there and postix setup variable for this? Just to ignore sender location.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

That is not a valid Received: line - the source must be present.

You could use header_checks to replace the internal information with a static text, but the Received: line should remain standards-compliant.

Why do you want to do this ?

share|improve this answer
    
I want to change that, because i don't want to tell who the sender is, and it is ugly (Received: from localhost.localdomain)... I don't want to use header_checks because it is performance impact. –  glavić Jan 20 '12 at 13:18
    
You can't "not tell who the sender is" - email is validated on both ends. Why do you think header-checks will impact performance ? What kind of volume do you have ? –  adaptr Jan 20 '12 at 13:19
    
Why is sender not SMTP server who sends emails (2 part), and not my local computer (1 part). Header_checks impacts performance because it uses regular expression on every mail. Volume is 120k+ daily –  glavić Jan 20 '12 at 14:58
    
If this isn't possible like i wanted or. even recomended, they can you tell me to set host "localhost.localdomain" ? Tnx –  glavić Jan 20 '12 at 17:26
    
You won't see any impact from using regexes in header_checks with such a volume - that's less than 100 messages per minute. –  adaptr Jan 20 '12 at 17:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.