# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at NethServer official site: https://www.nethserver.org
#
#
#
# 10root_map
#
root info@domain.it
user@domain.it.ext
user ispdomain.ext
You have to modify the file /etc/postfix/canonical by adding at the end of the file this line:
user@domain.local user@yourdomain.ext
Replace user and yourdomain/ispdomain with real values.
Then launch command postmap /etc/postfix/canonical and check that it doesn’t return errors.
If yes restart postfix with systemctl restart postfix
Use real name instead of domain.local and yourdomain.ext
# ================= DO NOT MODIFY THIS FILE =================
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at NethServer official site: https://www.nethserver.org
# 10root_map
#
root info@linux.it
gottfried@linux.it gottfried@ispdomain.ext
Best ist if you make a file in custom template, 70_canonical
mkdir -p /etc/e-smith/templates-custom/etc/postfix/generic
nano /etc/e-smith/templates-custom/etc/postfix/generic/70_canonical
in that file put only @domain.local@domain.com
It works
than
expand-template /etc/postfix/canonical
than
signal-event nethserver-mail-server-update
And it works
But if i want to send a mail to an external E-Mail address with the same domain , that is not configuried in Nethserver7, than i have a problem, and not working, maybe somebody have a tip?