servisys / ispconfig_setup

ISPConfig autoinstaller and setup
GNU General Public License v3.0
506 stars 257 forks source link

Mailserver not working on clean Ubuntu 18.04.5 LTS #347

Open krekr opened 3 years ago

krekr commented 3 years ago

This is a short writeup (sorry!) of the issues encountered after using this (otherwise awesome!) script: the mailserver didn't work. Postfix didn't want to start w/ this error:

Nov 16 13:52:07 postfix/proxymap[1631]: fatal: bad string length 0 < 1: \/etc\/postfix/mysql-verify_recipients.cf_dbname = which seemed to be a ownership problem related to https://git.ispconfig.org/ispconfig/ispconfig3/-/issues/5681 After chmodding 777 (I know...) and changing main.cf line smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_recipient_domain, reject_unlisted_recipient, check_recipient_access proxy:mysql:/etc/postfix/mysql-verify_recipients to take out the weird /\ brackets, postfix started but still had SSL errors.

Finally, this thread pointed me in the right direction with user "till" saying Remove the # in front of the submission and smtps line and restart postfix.

Now, the mail is flowing like you'd expect :)

This post is both to aid future installers and an actual issue; I think the script somehow borks permissions and ownership of the mysql-verify_recipients.cf file?

finnie2006 commented 3 years ago

Kinda works but i can send but not recive