• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx

  • We are developing a new feature in Plesk that will help you promote your websites or business on social media. We want to conduct a one-hour online UX test to present the prototype and collect feedback. If you are interested in the feature, please book a meeting via this link.
    Thank you in advance!
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Change header in sent email from server.com [127.0.0.1] to server.com [myserverip]

Bossman

Basic Pleskian
Plesk 12, Amavisd, Postfix, Spamassassin, Clamd, OS: Centos 6.x

I have tested many options in amavis and postfix but i can't get to change [127.0.0.1] in mail header. This header look's like this when i send from [email protected] account on my server to [email protected] server. Is there a chance i could change that 127.0.0.1 to server ip?. I am struggling with this for year now !

At this moment file hosts in etc/hosts has

Code:
127.0.0.1       server.my.com server localhost localhost.localdomain
127.0.0.1       localhost localhost.localdomain localhost4 localhost4.localdomain4
127.0.0.1       localhost.localdomain localhost
xx.xx.xxx.xxx   server.my.com     server   isp.name.com

Headers in email looks like this

Code:
Return-Path: <[email protected]>
Received: by remote.com (remote.com mailsystem) with LMTP;
    Tue, 04 Aug 2015 03:15:54 +0200
Received: from server.mail.com [xx.xx.xxx.xxx]
    by mx8.remote.com with ESMTP id nvMXjI;
    Tue, 04 Aug 2015 03:15:49 +0200
Received-SPF: pass (mx8.remote.com: domain of [email protected]
    designates xx.xx.xxx.xxx as permitted sender)
Received: from server.mail.com (server.mail.com [127.0.0.1])
by server.mail.com (Postfix) with ESMTP id D99E06C402AE
or <[email protected]>; Tue,  4 Aug 2015 03:15:46 +0200 (CEST)
X-Virus-Scanned: amavisd-new at server.mail.com
X-Spam-Flag: NO
X-Spam-Score: 0.224
X-Spam-Level:
X-Spam-Status: No, score=0.224 tagged_above=-9999 required=6.2
    tests=[ALL_TRUSTED=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
    DKIM_VALID_AU=-0.1, HTML_IMAGE_ONLY_16=1.048, HTML_MESSAGE=0.001,
    HTML_SHORT_LINK_IMG_3=0.328, RP_MATCHES_RCVD=-0.064,
    T_REMOTE_IMAGE=0.01, URIBL_BLOCKED=0.001] autolearn=ham
Authentication-Results: server.mail.com (amavisd-new);
    domainkeys=pass (1024-bit key) [email protected]
    header.d=server.mail.com; dkim=pass (1024-bit key) header.d=server.mail.com
Received: from server.mail.com ([127.0.0.1]) by server.mail.com (server.mail.com [127.0.0.1]) (amavisd-new, port 10024)
with LMTP id x3228ksghOgo for <[email protected]>;
    Tue,  4 Aug 2015 03:15:46 +0200 (CEST)
Received: from www.mail.mail.com (server.mail.com [127.0.0.1])

Amavis config has 127.0.0.1 only on mynetworks and inet_acl directive
Postfix has it on, smtpd_milters...., content_filter=amavisfeed.....

Postfix smtp_bind_address, smtpd_banner and smtp_helo_name does not change anything if set.
Either can get to work smtp_header_checks in postfix
frown.gif


Does anyone have any advice or what i should change ?
Hosts file would be my guess but i have tryed and still no go.
Thanks in advance.
 
First of all, check in Tools and Settings > Server-Wide Mail Settings is set to Send from domain IP addresses and use domain names in SMTP greeting
Also, you can change IP address of mail service with the command:

# plesk bin domain -u example.com -mail-service-ip <needed_IP>
 
I have changed. It was set to Send from domain IP addresses only
Headers sent from my server still got [127.0.0.1] inside.
But destination mail server where emails goes put proper external IP in first line.
:(
 
I don't know why but my account was deleted, no more email stored, have you had some problems with forum?
Thanks for your command it did help.
You got beer @!
 
Well the day before yesterday i was writting and posting forums and yesterday i had no more account on plesk forum. I had to create it again, it did create properly.
 
Back
Top