What type of hardware are you using: Other(?) What YunoHost version are you running: 12.0.11 How are you able to access your server: SSH Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No
Describe your issue
I can no longer send emails, either from the Snappy Mail app nor from my KMail client.
This may have been the case since my migration to Yunohost 12, I can’t remember if I tested it on that very instance at the time.
From KMail:
Erreur du serveur «5.7.1 username@domain.tld: Sender address rejected: not owned by username»
From Snappy Mail:
Failed to add recipient ‘recipient@target.tld’ 553 5.7.1 username@domain.tld: Sender address rejected: not logged in
I created a new user in case this was a migration thing. Same error.
I tried the trick mentioned here in main.cf, but it didn’t help in my case (so I changed it back after confirming it didn’t help).
I still get emails from the automatic diagnosis, though diagnosis@domain.tld
I do the same thing on the other instance, causing no issue.
Any help would be appreciated!
Share relevant logs or error messages
Erreur du serveur «5.7.1 username@domain.tld: Sender address rejected: not owned by username»
Failed to add recipient ‘recipient@target.tld’ 553 5.7.1 username@domain.tld: Sender address rejected: not logged in
Bonjour,
Après avoir modifié main.cf, vous devez utiliser la commande: postfix reload
afin de prendre en compte les modifications.
Ca pourrait expliquer que rien n’avait changé.
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
There I could solve the issue by adding groups to the allowed senders in main.cf (at smtpd_sender_login_maps=)
Seeing you got this error for new users as well, it may be something is off in LDAP. I struggle with LDAP myself, but there should be a file /etc/postfix/ldap-accounts.cf(or other location, as referred in the smtpd_sender_login_maps), that has an LDAP query returning allowed senders for Postfix.
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 }
So, it looks like I have the opposite problem to some other folks.
I tried something apparently stupid, but why not:
I copy-pasted the main email in an alias email, directly in the Yuno admin web interface, for my freshly created test user.
And it works!! ERRATUM: after saving in the web interface, the alias is not there. So I have no idea what it did…
AND: the same trick did not work for my “real” legacy user. Copy-pasted the mail in alias. Save. Alias not listed (of course…) and still can’t send emails.
Would that not point to a LDAP issue?
Additional note: I ran yunohost user info on both users, and I didn’t spot any difference. None of them has a mail-alias now…
It is active on my setup, without causing trouble.
Speculating: it may be related to the missing aliases. On Yunohost, our logins are of the form “user”, while our email address is “user@domain.tld”. That smells like using an alias for the primary address. Without such an alias, there is a mismatch between login and from: address.
I think you arrived at a solution that does not catch the root cause (but at least there is no stress of being unable to send email)
I don’t have an answer to this one, I hope someone else reads the thread. In case you find the cause later on, please let us know!
Change admin password at the first connection, it’s very important.
You see the instruction on the app page in the Webadmin. : User admin and password in /var/www/snappymail/app/data/_data_/_default_/admin_password.txt
Ah, I did find back the password (that I changed…).
And Security: none. Port: 25.
I guess Postfix default settings are more lenient with localhost’s clients?