{"id":668,"date":"2019-03-12T16:07:38","date_gmt":"2019-03-12T16:07:38","guid":{"rendered":"https:\/\/www.kolkataonweb.com\/code-bank\/?p=668"},"modified":"2019-03-19T13:36:17","modified_gmt":"2019-03-19T13:36:17","slug":"ispconfig-3-1-automated-installation","status":"publish","type":"post","link":"https:\/\/www.kolkataonweb.com\/code-bank\/miscellaneous\/ispconfig-3-1-automated-installation\/","title":{"rendered":"ISPConfig 3.1 Automated Installation"},"content":{"rendered":"<p>This article is about Automated Installation of ISPConfig3.1 on Ubuntu 18.04 and the issue with Roundcube.<\/p>\n<p>The installation steps can be found here and very well laid down &#8211; <a href=\"https:\/\/www.howtoforge.com\/tutorial\/ubuntu-ispconfig-automated-install-script\/\">https:\/\/www.howtoforge.com\/tutorial\/ubuntu-ispconfig-automated-install-script\/<\/a><\/p>\n<p>I installed it on a <a href=\"https:\/\/www.linode.com\/\">Linode<\/a> instance (the $10 instance).<\/p>\n<p>The first thing I found is the softwares is better updated manually prior to the automated installation of the ISPConfig. In my case the installer script couldn&#8217;t install the updates.<\/p>\n<p>The biggest problem I faced was after the installation Roundcube was neither sending or receiving any mails. Though the mailbox is opening and I can compose mails but on sending the mail it failed with a &#8220;Timed Out&#8221; error. Neither any incoming mails were received.<\/p>\n<p>Upon searching and going through lots of suggestions (even a re-installation of Roundcube) ultimately found the issue was with two lines in the postfix master file (marked with red color and bold below)<\/p>\n<pre class='wp-code-highlight prettyprint'>#\r\n# Postfix master process configuration file.  For details on the format\r\n# of the file, see the master(5) manual page (command: \"man 5 master\").\r\n#\r\n# Do not forget to execute \"postfix reload\" after editing this file.\r\n#\r\n# ==========================================================================\r\n# service type  private unpriv  chroot  wakeup  maxproc command + args\r\n#               (yes)   (yes)   (yes)   (never) (100)\r\n# ==========================================================================\r\nsmtp      inet  n       -       -       -       -       smtpd\r\n#smtp      inet  n       -       -       -       1       postscreen\r\n#smtpd     pass  -       -       -       -       -       smtpd\r\n#dnsblog   unix  -       -       -       -       0       dnsblog\r\n#tlsproxy  unix  -       -       -       -       0       tlsproxy\r\n<strong><span style=\"color: #ff0000;\">#submission inet n       -       -       -       -       smtpd<\/span><\/strong>\r\n  -o syslog_name=postfix\/submission\r\n  -o smtpd_tls_security_level=encrypt\r\n  -o smtpd_sasl_auth_enable=yes\r\n  -o smtpd_reject_unlisted_recipient=no\r\n#  -o smtpd_client_restrictions=$mua_client_restrictions\r\n#  -o smtpd_helo_restrictions=$mua_helo_restrictions\r\n#  -o smtpd_sender_restrictions=$mua_sender_restrictions\r\n#  -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject\r\n#  -o milter_macro_daemon_name=ORIGINATING\r\n<strong><span style=\"color: #ff0000;\">#smtps     inet  n       -       -       -       -       smtpd<\/span><\/strong>\r\n  -o syslog_name=postfix\/smtps\r\n  -o smtpd_tls_wrappermode=yes\r\n  -o smtpd_sasl_auth_enable=yes\r\n  -o smtpd_reject_unlisted_recipient=no\r\n#  -o smtpd_client_restrictions=$mua_client_restrictions\r\n#  -o smtpd_helo_restrictions=$mua_helo_restrictions\r\n#  -o smtpd_sender_restrictions=$mua_sender_restrictions\r\n#  -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject\r\n#  -o milter_macro_daemon_name=ORIGINATING<\/pre>\n<p>The # infront of the <em>submission <\/em>and <em>smtps <\/em>needs to be removed.<\/p>\n<p>Thanks to <a href=\"https:\/\/www.howtoforge.com\/community\/members\/till.3\/\">Till<\/a> and this <a href=\"https:\/\/www.howtoforge.com\/community\/threads\/cant-send-recieve-mail-postfix-smtps-smtpd-ssl_accept-error-from-localhost.61657\/\">post<\/a> on <a href=\"https:\/\/www.howtoforge.com\/\">HowtoForge<\/a><\/p>\n<hr \/>\n<p>One more important issue was this line in the main.cf file<\/p>\n<p><strong>mydestination<\/strong> = <strong><span style=\"color: #ff0000;\">domain-name.com,<\/span><\/strong> localhost, localhost.localdomain<\/p>\n<p>Though by default the domain name was added to the config but it prevented mails from being received. After removing the domain name and leaving only the localhost entries everything worked fine<\/p>\n<hr \/>\n<p>While trying to fix the problem I found in the process &#8211; for ISPConfig based setup it is better to leave the SSL Certificate settings that the script has set. I tried changing to a purchased SSL and incoming mails stopped. It was about 4:30 AM in the morning and was too tired to do anything more. So reverted back to the original files and everything was fine.<\/p>\n<hr \/>\n<p>While trying different possible solutions I had enabled the necessary ports in UFW. So is\u00a0 not sure if that is really needed or not. But worth giving a try if mails are not delivered or received even after correcting the settings in the <em>\/etc\/postfix\/master.cf<\/em> file<\/p>\n<hr \/>\n<p>Roundcube errors can be found here &#8211;<em> \/var\/log\/roundcube\/errors<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article is about Automated Installation of ISPConfig3.1 on Ubuntu 18.04 and the issue with Roundcube. The installation steps can be found here and very well laid down &#8211; https:\/\/www.howtoforge.com\/tutorial\/ubuntu-ispconfig-automated-install-script\/ I installed it on a Linode instance (the $10 instance). The first thing I found is the softwares is better updated manually prior to the&hellip; <a class=\"more-link\" href=\"https:\/\/www.kolkataonweb.com\/code-bank\/miscellaneous\/ispconfig-3-1-automated-installation\/\">Continue reading <span class=\"screen-reader-text\">ISPConfig 3.1 Automated Installation<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[166,127,142,128,165,164],"class_list":["post-668","post","type-post","status-publish","format-standard","hentry","category-miscellaneous","tag-howtoforge","tag-ispconfig","tag-ispconfig-3","tag-ispconfig3","tag-roundcube","tag-smtp","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/comments?post=668"}],"version-history":[{"count":8,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/668\/revisions"}],"predecessor-version":[{"id":701,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/668\/revisions\/701"}],"wp:attachment":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/media?parent=668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/categories?post=668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/tags?post=668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}