Problem with sending mails from usermin


I just moved users to new server and I decided to switch form roundcube to usermin. Now I have a problem configuring usermin to send mail.

I always set up:

smtpd_sender_restrictions = reject_sender_login_mismatch smtpd_sender_login_maps = hash:/etc/postfix/virtual

So users can only send mails from their address.

I had a problem that user from address was like username@hostname so I read on forums how to setup that and I did this:

Allow editing of From: address option to No. From: address mapping file to /etc/postfix/virtual and I selected this option: Address to username (virtusertable)

Now I have good from address in usermin but when I try to send mail it says:

Failed to send mail : SMTP command rcpt to: failed : 553 5.7.1 <>: Sender address rejected: not logged in

What should I do?



Howdy -- the error you're getting means that Postfix is configured to require email authentication, and that the email program that's sending an email isn't authenticating.

Reviewing the various settings available to Usermin, it doesn't appear that Usermin is designed to be able to do what you want.

That is, Usermin sends email using the command line, "/usr/sbin/sendmail" by default... which isn't authenticated.

It's assuming that, since the user authenticated in order to access Usermin, that it wouldn't also need to authenticate in order to send an email.

There are some additional configuration items in Usermin's Read Mail option that may be worth exploring, but so far as I can tell, it doesn't appear to be possible to do what you're trying to do using Usermin.

Is it possible to require authentification as I must for users using outlook, thunderbird and such, and setup usermin / postfix so it doesn't require authentification -> to work?