• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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