Topic: Strange behavior when relaying mails
======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7 MARIADB edition.
- Linux/BSD distribution name and version: Linux mail 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux (Debian 9)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello,
This is my first installation of iRedMail. I have two domain configured:
- qe.gs -- main domain
- example.com -- one of my client's domain
I created a mailbox monitoring@qe.gs via web iRedAdmin. The purpose of this mailbox is to send monitoring messages from external servers connecting via SMTP. At this point I have three problems:
- Right now the From header looks like this: "From: Cron Daemon <root@qe.gs>" I need to override it so it looks like "From: Anything <monitoring@qe.gs>".
- First "Received: " field looks like this: "Received: from localhost (unknown [80.30.29.216]) by mail.qe.gs (Postfix) with ESMTPSA id AC73340F78 for <xand@xand.es>; Mon, 27 Nov 2017 13:57:03 +0000 (UTC)". I would like to remove this header completely since I don't want to reveal the original IP address, besides I guess it's not necessary at all.
- When a message is sent this way (via SMTP) DKIM signature fails.
On the other hand web interface is working like a charm. Is it possible to correct this points (and how)? Also I attach full message (with headers).
Thanks in advance.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.