Topic: Send as alias or forwarder not working in 0.9.7
======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Debian Jessie
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
In previous iRedMail (using alias table), mail users could send out as any address in the 'goto' field:
SQL
address goto
account1@iredmail.server account1@iredmail.server,account2@iredmail.server,remote1@other.server
/opt/iredapd/settings.py
ALLOWED_LOGIN_MISMATCH_LIST_MEMBER = True
User could use account1@iredmail.server, account2@iredmail.server or remote1@other.server as the 'From' field and Postfix will accept it and send the mail.
Now with the new upgrade and after the mysql migrate script added those existing alias records into the forwardings table, I am getting the error that mail cannot be sent with mismatched login and from email addresses.
I could add all my accounts into:
/opt/iredapd/settings.py
ALLOWED_LOGIN_MISMATCH_SENDERS = ['account1@iredmail.server', 'account2@iredmail.server' .... etc]
but that seams sloppy.
What is the iRedMail way to get this working as was before the upgrade?
P.S.
yes, I did the scripts as instructed
cd /etc/postfix/mysql/
perl -pi -e 's#alias\.address#forwardings.address#g' *.cf
perl -pi -e 's#alias\.goto#forwardings.forwarding#g' *.cf
perl -pi -e 's#alias\.active#forwardings.active#g' *.cf
perl -pi -e 's#alias\.domain#forwardings.domain#g' *.cf
perl -pi -e 's#alias,#forwardings,#g' *.cf
and restarted postfix service, still same error.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.