Topic: Multiple domain and hostname
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.5.1
- Deployed with the downloadable installer.
- Linux/BSD distribution name and version: Debian 11
- Store mail accounts in which backend MySQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? No.
====
I use multi-domain setup for separate owners of domain., everything works fine. How can i set up separate domain, hostname on the header? For example,
Main domain/hostname is mail.domain1.com but if i send email from domain2.com so i have mail.domain1.com on the header but not mail.domain2.com.
My changed:
on 50-user to @local_domains_maps = ['.$mydomain', 'mail.domain2.com'];
on 20-debian_defaults to $X_HEADER_LINE = "";
on sdd_transport.pcre :
/@domain1\.com$/ domain1.com-smtp:
/@domain2\.com$/ domain2.com-smtp:
on master.cf :
domain1.com-smtp unix - - n - - smtp
-o smtp_bind_address=ipv4
-o smtp_bind_address6=ipv6
-o syslog_name=postfix-mail.domain1.com
-o smtp_helo_name=mail.mdomain1.com
domain2.com-smtp unix - - n - - smtp
-o smtp_bind_address=ipv4
-o smtp_bind_address6=ipv6
-o syslog_name=postfix-mail.domain2.com
-o smtp_helo_name=mail.domain2.com
But i still have 5 lines with Recieved from mail.domain1.com on the header.
My English is also not so good, I hope you understand my reasons. Thanks for your help.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.