Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 34005  / 1 Year ago, tue, january 10, 2023, 1:49:20

I run postfix my servers to allow websites to send email. I'm using it as a drop-in for sendmail proper.


When an email is sent the HELO string seems to contain localhost. This wouldn't be a problem except that one of my clients has just said that an email was returned to them from a spam blocker saying that localhost cannot feature inside the HELO string. Awesome.


So I edited /etc/mailname to be my main domain name. And I edited /etc/postfix/main.cf so that:


smtpd_banner = ESMTP $mail_name

Yet this is what I see in the header of a sent email (after restarting postfix):


Delivered-To: [email protected]
Received: by 22.194.173.22 with SMTP id bi10csp117521wjc;
Tue, 2 Apr 2013 07:24:18 -0700 (PDT)
X-Received: by 10.68.22.168 with SMTP id pt8mr24540246pbb.10.1364912657736;
Tue, 02 Apr 2013 07:24:17 -0700 (PDT)
Return-Path: <[email protected]>
Received: from localhost (example.com. [22.22.22.22])
by mx.google.com with ESMTP id l6si2328296pao.283.2013.04.02.07.24.16;
Tue, 02 Apr 2013 07:24:17 -0700 (PDT)

I've subbed my domain with example.com.


What do I need to edit to quash the evil reign of localhost?!


More From » email

 Answers
2

Hurrrrrr.



I've just noticed that in /etc/postfix/main.cf there was a line that read:



myhostname = localhost


I've changed that to :



myhostname = example.com


And restarted. All is fixed.


[#31919] Tuesday, January 10, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
allowiel

Total Points: 189
Total Questions: 103
Total Answers: 105

Location: Slovenia
Member since Thu, Mar 18, 2021
3 Years ago
;