Après avoir modifié main.cf, vous devez utiliser la commande:
postfix reload
I used systemctl reload postfix
and even systemctl restart postfix
.
I just tried postfix reload
for comprehensiveness, but nope, same issue.
I can’t help you out directly, but I had similar errors in this case:
- My user is member of a group
- The group has mail aliases
- Emails sent to the group mail alias are forwarded (also) to my mailbox
- Replying to those emails gave the error
Sender address rejected: not owned by user
No user is part of any group in my case (well, except “all_users”).
/etc/postfix/ldap-accounts.cf
server_host = localhost
server_port = 389
search_base = dc=yunohost,dc=org
query_filter = (&(objectClass=mailAccount)(mail=%s)(permission=cn=mail.main,ou=permission,dc=yunohost,dc=org))
result_attribute = uid
in /etc/postfix/main.cf
smtpd_sender_login_maps = unionmap:{
# Regular Yunohost accounts
ldap:/etc/postfix/ldap-accounts.cf,
# Extra maps for app system users who need to send emails
hash:/etc/postfix/app_senders_login_maps }