if i use webmail.domain.com via roundcube, letter goes to spam folder in global mail providers, and i see in body
Received: from localhost ([127.0.0.1] helo=…)
I use mail client and everything is ok, in body i see
Received: from [NORMAL IP] (helo=[10.8.1.3])
How to configure roundcube web interface for using smtp or not local sending as script
Both header lines that you are referecing do not matter. Those are the connection between the MUA, or email client and the MTA, or mail server. In one example the MUA is Roundcube and the other is Thunderbird or another program running on your local device. Neither of those received headers’ contents should be evaluated by the receiving MTA for a variety of reasons.
I don’t use HestiaCP for email, and don’t use exim, either, but in my Postfix configuration I strip the MUA received headers for privacy reasons before relaying outbound SMTP. You may be able to do the same in exim if you don’t want those headers included in your sent messages. Unfortunately I can’t walk you through the process since I don’t know exim well enough.
Good point mate. I actually was trying to figure it myself how to stop relaying my IP & have more privacy. Since I use HCP for emails as well. @sahsanu any help on how not to leak IP & any personal identifying details over EXIM. I found we need to add this REMOTE_SMTP_TRANSPORTS_HEADERS_REMOVE = Received to /etc/exim4/exim4.conf.localmacros, but there is no localmacros or any such file. Also, in the file, where would one add the same?
Yes, that Received header is correct and must be in the headers (those are added by the mail server receiving the mail, not by Exim). The header you removed is the Received header of your user connecting to your mail server (using their own mail client or using the webmail).
If you want to hide/remove User-Agent, just add it to headers_remove directive:
headers_remove = Received : X-Originating-IP : User-Agent
Those are system messages sent to the root user. What I recommend and what I personally do, is create a mail domain, panel.domain, and add a user postmaster with the aliases hostmaster, admin, abuse, and root, so all those emails will reach the inbox [email protected]. You can also forward these emails to another email address you use frequently.
Thanks. I tried. But it keeps saying mail domain does not exist when I try to create via webui.
Will see if I can get my laptop to work today and try via terminal.
Thanks again.
But panel.domain must exist, also the dns records for mail.panel.domain and webmail.panel.domain, the mx record for panel.domain pointing to mail.panel.domain… just like any other mail domain.