message edited
Hello everybody,
I recently decided to swap to Virtualmin for easier administration of my VPS server. My website is currently installed, just need to build some nice pages for it.
But; I am having trouble getting my email to work...
I have setup a Virtual server, with a domain name. The website is reachable through my own domain name. I added a user for emailing, this finishes without any errors. The newly made email account is able to receive emails, which I send from my work email for testing.
I just can not send an outgoing email. My email client (Apple Mail) gives an error and wants me to select a different server for sending emails.... Sending an email on the usermin page doesn't work as well
I am hoping somebody is able to help me, if you need any logs or other information just let me know what you need and I will post it here.
thanks in advance!
Do you have a firewall active on your server?
I provide FREE Server Management Services in exchange of money
Yes, there is a firewall active. I turned it off for a moment to see if that is any help, but unfortunately not. It seems that the port I am using for outbound mail (587) was also configured properly...
When I try to send a mail from the usermin page the orange status bar in the top of the browser keeps moving around and after a minute it just stops, and the button for sending mail greys out.
I found this in the maill.err log: Sep 2 20:22:49 vpskay postfix/postmap[19771]: fatal: open database /etc/postfix/sasl_passwd.db: Permission denied
Also I installed Roundcube to have a proper webmail available, when trying to send an email I get: SMTP Error (250): Authentication failed.
I am no expert with email however,
every google search i do for this error says almost the same thing...your postfix user doesn't have sufficient privileges to write to the postfix directory /etc/postfix/sasl_passwd.db
now whether that is simply the user is incorrect or wrong password i dont know but its worth checking both of them to start with.
Also, has the saslpassword been postmapped? (apparently this is important and is mentioned a few times in my searching for solutions)
i found this on stack exchange...(although your error is an "authentication error" rather than permission denied...but im sure its worth reading this post anyway)
https://serverfault.com/questions/240767/postmap-fatal-open-database-etc-postfix-sasl-passwd-db-permission-denied
https://ajecreative.com.au
So I looked into that, and I tried to change the owner of the /etc/postfix folder. This has not resolved the issue. When I perform
sudo ls -l /etc/postfix/sasl_passwd.db
This is the output:-rwxrwxrwx 1 kay81290 root 12288 SepĀ 3 21:00 /etc/postfix/sasl_passwd.db
Also I did postmap the sasl_passwd, but when I try to redo that I get this error:
postmap: warning: /etc/postfix/dynamicmaps.cf: file is owned or writable by non-root users -- skipping this file
i actually had written into my last post (but then deleted it) a query about which user was used when setting this up.
Are you running ubuntu? If you are doing stuff as root user, does your ubuntu root user actually have a password assigned? (Ubuntu root by default has no password) this may have something to do with it?
Im not saying you should be root user btw.
https://ajecreative.com.au
Yes I am running Ubuntu 18.04 LTS. When using root I indeed have to supply a password.