Comments on: How to Install a Mail Server with PostfixAdmin on Ubuntu 20.04 https://www.rosehosting.com/blog/how-to-install-a-mail-server-with-postfixadmin-on-ubuntu-20-04/ Premium Linux Tutorials Since 2001 Fri, 03 Jun 2022 08:32:47 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: admin https://www.rosehosting.com/blog/how-to-install-a-mail-server-with-postfixadmin-on-ubuntu-20-04/#comment-48915 Fri, 27 May 2022 06:22:22 +0000 https://www.rosehosting.com/blog/?p=33806#comment-48915 In reply to Ehud Gavron.

We are not sure what you want to accomplish but if you follow the guide thoroughly you should be able to set up a working mail server with Postfixadmin.

]]>
By: Ehud Gavron https://www.rosehosting.com/blog/how-to-install-a-mail-server-with-postfixadmin-on-ubuntu-20-04/#comment-48914 Thu, 26 May 2022 22:25:43 +0000 https://www.rosehosting.com/blog/?p=33806#comment-48914 I believe I’ve followed every step correctly. I’m using 3.11 dev. I ran install.sh, then did the setup as per the READMEs and the instructions in setup.php as displayed.

When I add a user (either as a virtual user or as a regular one) it creates an Mbox in /var/mail named /var/mail/username – example /var/mail/johnson. What I want it to do is create /var/mail/virtualdomain and /var/mail/virtualdomain/username.

In all the instructions I’m not seeing something that would accomplish that for postfix or postfixadmin, only for dovecot. How do I debug / fix this?

Second, when I delete a user, /var/mail/username is not removed. How do I debug/fix this?

I have verified Maildir is set in MariaDB:
MariaDB [postfixadmin]> select username,maildir from mailbox;
+——————–+———————+
| username | maildir |
+——————–+———————+
| gavron@mydomain.com | mydomain.com/gavron/ |
+——————–+———————+
1 row in set (0.001 sec)

There are no errors in the access or error log, just seems normal: (ips redacted)
– – [26/May/2022:22:13:10 +0000] “GET /postfixadmin/public/list-virtual.php HTTP/1.1” 200 2802 “http://server-ip-here/postfixadmin/public/list-virtual.php?domain=arivaca.com” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36”
– – [26/May/2022:22:13:13 +0000] “GET /postfixadmin/public/edit.php?table=mailbox HTTP/1.1” 200 3039 “http://209.104.7.35/postfixadmin/public/list-virtual.php” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36”
– – [26/May/2022:22:14:03 +0000] “POST /postfixadmin/public/edit.php?table=mailbox HTTP/1.1” 302 368 “http://209.104.7.35/postfixadmin/public/edit.php?table=mailbox” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36”
– – [26/May/2022:22:14:04 +0000] “GET /postfixadmin/public/list-virtual.php HTTP/1.1” 200 3254 “http://209.104.7.35/postfixadmin/public/edit.php?table=mailbox” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36”

Any help would be greatly appreciated!

Thanks,

Ehud Gavron
Tucson Arizona

]]>
By: Enric https://www.rosehosting.com/blog/how-to-install-a-mail-server-with-postfixadmin-on-ubuntu-20-04/#comment-48906 Fri, 20 May 2022 21:07:42 +0000 https://www.rosehosting.com/blog/?p=33806#comment-48906 In reply to admin.

Hello Goodnight
I just followed the steps you told me, apparently a php plugin was missing.
php extension ext-sqlite3.
I installed it and everything works fine.
problem solved following your steps
Thank you very much for your great help.

]]>
By: admin https://www.rosehosting.com/blog/how-to-install-a-mail-server-with-postfixadmin-on-ubuntu-20-04/#comment-48903 Fri, 20 May 2022 06:17:26 +0000 https://www.rosehosting.com/blog/?p=33806#comment-48903 In reply to Enric.

Try these steps:
Go to the Postfixadmin Directory:
cd /var/www/html/postfixadmin/
Execute this command:
bash install.sh

After the installation try to access your Postfixadmin setup page again.

]]>
By: Enric https://www.rosehosting.com/blog/how-to-install-a-mail-server-with-postfixadmin-on-ubuntu-20-04/#comment-48902 Thu, 19 May 2022 20:41:34 +0000 https://www.rosehosting.com/blog/?p=33806#comment-48902 Okay thank you very much.

I just looked at the log file, and this is what I get.
I’m pretty new and I don’t understand anything from that log.

Attach the file:

[Thu May 19 00:00:42.303185 2022] [mpm_prefork:notice] [pid 767] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured — resuming normal operations

[Thu May 19 00:00:42.303263 2022] [core:notice] [pid 767] AH00094: Command line: ‘/usr/sbin/apache2’

[Thu May 19 00:30:09.362837 2022] [php7:error] [pid 2715] [client 193.106.191.48:38570] script ‘/var/www/html/index.php’ not found or unable to stat

[Thu May 19 01:46:58.549009 2022] [php7:error] [pid 2708] [client 46.161.27.204:37430] script ‘/var/www/html/wp-login.php’ not found or unable to stat

[Thu May 19 03:42:16.084648 2022] [php7:error] [pid 2714] [client 194.126.177.54:50360] script ‘/var/www/html/wp-login.php’ not found or unable to stat

[Thu May 19 03:42:16.713031 2022] [php7:error] [pid 2689] [client 194.126.177.54:51074] script ‘/var/www/html/wp-login.php’ not found or unable to stat

[Thu May 19 03:42:17.328379 2022] [php7:error] [pid 2693] [client 194.126.177.54:52074] script ‘/var/www/html/wp-login.php’ not found or unable to stat

[Thu May 19 04:08:51.873476 2022] [php7:error] [pid 2691] [client 52.176.136.47:56170] script ‘/var/www/html/xmlrpc.php’ not found or unable to stat

[Thu May 19 04:11:28.510507 2022] [php7:error] [pid 3956] [client 52.176.136.47:54474] script ‘/var/www/html/xmlrpc.php’ not found or unable to stat

[Thu May 19 04:51:10.658503 2022] [core:error] [pid 2714] [client 193.106.191.48:52700] AH00126: Invalid URI in request POST /cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh HTTP/1.1

[Thu May 19 06:43:34.636146 2022] [php7:error] [pid 2714] [client 198.211.116.247:10112] script ‘/var/www/html/wp-login.php’ not found or unable to stat

[Thu May 19 08:42:12.001958 2022] [php7:error] [pid 2692] [client 188.166.241.4:55978] script ‘/var/www/html/system_api.php’ not found or unable to stat

[Thu May 19 08:42:13.323803 2022] [php7:error] [pid 2714] [client 188.166.241.4:48942] script ‘/var/www/html/system_api.php’ not found or unable to stat

[Thu May 19 09:30:21.724385 2022] [php7:error] [pid 2690] [client 193.106.191.48:55784] script ‘/var/www/html/index.php’ not found or unable to stat

[Thu May 19 12:16:40.839195 2022] [php7:error] [pid 2693] [client 172.68.146.36:14896] script ‘/var/www/html/xmlrpc.php’ not found or unable to stat

[Thu May 19 12:35:31.753302 2022] [php7:error] [pid 2691] [client 103.20.221.175:59808] script ‘/var/www/html/index.php’ not found or unable to stat

[Thu May 19 15:03:35.790083 2022] [php7:error] [pid 2715] [client 199.195.248.41:55712] script ‘/var/www/html/wp-comments-post.php’ not found or unable to stat

[Thu May 19 16:41:32.544560 2022] [php7:error] [pid 2714] [client 20.29.48.70:55723] script ‘/var/www/html/wp-plain.php’ not found or unable to stat, referer: www.google.com

[Thu May 19 16:41:36.267837 2022] [php7:error] [pid 2689] [client 20.29.48.70:53423] script ‘/var/www/html/ntypdvuj.php’ not found or unable to stat, referer: www.google.com

[Thu May 19 16:41:40.247524 2022] [php7:error] [pid 3956] [client 20.29.48.70:60800] script ‘/var/www/html/wp-plain.php’ not found or unable to stat, referer: www.google.com

[Thu May 19 16:41:43.566257 2022] [php7:error] [pid 2708] [client 20.29.48.70:58934] script ‘/var/www/html/ntypdvuj.php’ not found or unable to stat, referer: www.google.com

[Thu May 19 16:48:23.275687 2022] [php7:error] [pid 3956] [client 81.130.154.13:55594]
script ‘/var/www/html/xmlrpc.php’ not found or unable to stat

[Thu May 19 18:27:22.863696 2022] [php7:error] [pid 2715] [client 151.106.35.235:60270] script ‘/var/www/html/wp-login.php’ not found or unable to stat

[Thu May 19 18:41:26.250408 2022] [php7:error] [pid 2714] [client 185.104.44.58:21596] script ‘/var/www/html/wp-login.php’ not found or unable to stat

[Thu May 19 18:43:54.830532 2022] [php7:error] [pid 2690] [client 88.214.43.118:47160] script ‘/var/www/html/phpinfos.php’ not found or unable to stat

[Thu May 19 18:43:54.997445 2022] [php7:error] [pid 2693] [client 88.214.43.118:37858] script ‘/var/www/html/phpinfos.php’ not found or unable to stat

[Thu May 19 20:32:01.081383 2022] [php7:warn] [pid 2715] [client 83.42.83.73:59411] PHP Warning: require_once(/var/www/html/postfixadmin/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/postfixadmin/common.php on line 3

[Thu May 19 20:32:01.081557 2022] [php7:error] [pid 2715] [client 83.42.83.73:59411] PHP Fatal error: require_once(): Failed opening required ‘/var/www/html/postfixadmin/vendor/autoload.php’ (include_path=’.:/usr/share/php’) in /var/www/html/postfixadmin/common.php on l>

The truth is that none of the hours that the log puts matches the hours of my connections.

]]>
By: admin https://www.rosehosting.com/blog/how-to-install-a-mail-server-with-postfixadmin-on-ubuntu-20-04/#comment-48898 Thu, 19 May 2022 06:19:42 +0000 https://www.rosehosting.com/blog/?p=33806#comment-48898 In reply to Enric.

You can check the /var/log/apache2/error.log.

]]>
By: Enric https://www.rosehosting.com/blog/how-to-install-a-mail-server-with-postfixadmin-on-ubuntu-20-04/#comment-48896 Wed, 18 May 2022 20:59:52 +0000 https://www.rosehosting.com/blog/?p=33806#comment-48896 In reply to admin.

Forgive my ignorance.

Where can I find the log about this type of failure?
I go to /var/log but I get several logs, which one should I look at?

Thank you

]]>
By: admin https://www.rosehosting.com/blog/how-to-install-a-mail-server-with-postfixadmin-on-ubuntu-20-04/#comment-48895 Wed, 18 May 2022 06:59:55 +0000 https://www.rosehosting.com/blog/?p=33806#comment-48895 In reply to Wirki.

Please check the logs and provide us with more information on the issue appearing on the logs.

]]>