E-Mail Alerts: No such file or directory: '/etc/postfix/sasl_passwd.db'

Fresh install of Rockstor 4.0.9-0 from iso.

indeed the file does not exist.

Error Traceback provided on the Web-UI

Traceback (most recent call last): File "/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py", line 41, in _handle_exception yield File "/opt/rockstor/src/rockstor/storageadmin/views/email_client.py", line 287, in post update_sasl(smtp_server, port, username, password) File "/opt/rockstor/src/rockstor/storageadmin/views/email_client.py", line 181, in update_sasl os.chmod("{}.db".format(sasl_file), stat.S_IRUSR | stat.S_IWUSR) OSError: [Errno 2] No such file or directory: '/etc/postfix/sasl_passwd.db'

@g6094199, I see the same thing when trying to set up the email alert (which I assume you were trying to do), and hitting the save button, which then gets me the same message:


I had it set up under the CentOS version of Rockstor, but did not bother to update it when I moved to 4.x

And also to confirm, the file doesn’t exist. I read somewhere that it might be related to directory permissions (meaning it needs to be owned by the postfix user).


Just a very brief response to this as I unfortunately do not have the time for more details at the moment:
This is a bug recently identified by another forum user and that @phillxnet recently fixed. It has actually been merged just a couple of days ago so it will be included in the next Rockstor release :wink:.

Sorry for the too short answer (for the moment), and thanks a lot for the report!


@Flox Thanks, my apologies I’d not seen this forum thread just yet.

The issue was:

and the pull request to fix it was:

The forum report linked in the issue above is:

Hope that helps. It was actually @Flox who found the root cause of this, indicated in the issue text. I just did a little leg work and testing.