Topic: iredapd support for user alias on domain alias (alias@alias.com)
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 2012091301 Easy
- Deployed with iRedMail Easy or the downloadable installer? Easy
- Linux/BSD distribution name and version: Ubuntu 20.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Nope
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I have several domains, all alias to my core domain. I want all domains to alias the same local user names.
eddie@domain1.com --> eddie@coredomain.com
user@domain1.com --> user@coredomain.com
Adding an `alias_domain` record in SQL seems to let delivery work, but not sending.
Recipient address rejected: Sender is not same as SMTP authenticate username
I added a new table/query to `smtpd_sender_login_maps` to also check the `alias_domain` table instead of just `forwardings`, and that works for postmap queries.
Goal
Given:
a mailbox account: postmaster@example.com
Given an alias user: eddie@example.com -> postmaster@example.com
Given an alias_domain: example2.com
Then:
Alias domain for be implicit for all users: eddie@example2.com --> postmaster@adirondack.com
According to postmap I have this working, but sogo is angry still.
# explicit forwardings table entry, works with postmap and sogo
root@mail:/etc/postfix/mysql# postmap -q "eddie@example2.com" mysql:./virtual_alias_maps.cf
postmaster@example.com
# implicit alias (defined as alias for core domain, but using alias_domain)
# this fails on existing alias maps
root@mail:/etc/postfix/mysql# postmap -q "tls-reports@example2.com" mysql:./virtual_alias_maps.cf
root@mail:/etc/postfix/mysql#
# new map, added main.cf's smtpd_sender_login_maps table list uses alias_domain
root@mail:/etc/postfix/mysql# postmap -q "tls-reports@example2.com" mysql:./virtual_alias_maps_cross_domain.cf
postmaster@example.com
# ^ SUCCESS! postmap finds the right mailbox.
So, since postmap is happy, I am curious
What besides smtpd_sender_login_maps influences Sogo sending?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.