Topic: Setup iRedMail as Mail gateway for a subdomain
======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6
- Linux/BSD distribution name and version: 16.04.2 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====
I´m trying to setup iRedMail as a mail gateway for a subdomain.
We host a groupware solution based on Kopano onsite and want to use iRedMail as a relayhost.
The mails are coming in from host.ad.example.com
I setup my domain example.com in iRedAdmin and I rewrite the originating address with smtp_generic_maps:
@ad.example.com @example.com
and added my IP to mynetworks in main.cf as well as iredapd setting´s file.
Everything works fine, except DKIM signing of mails. The key ad.example.com has been set up and the public key
has been published in DNS:
TESTING#2 example.com: dkim._domainkey.example.com => pass
TESTING#3 ad.example.com: dkim._domainkey.ad.example.com => pass
What exactly am I missing here? Also, SA is marking the messages coming from my internal host with a score of >5 for some reason. Any input is appreciated.
I can find the following line in dbg output:
SA dbg: spf: query for mg@example.com/xx.xx.xx.xx/host.ad.example.com: result: fail
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.