wp-cli core install unknown: fatal: file /etc/postfix/main.cf: parameter mail_owner: user postfix has same user ID as _postfix

I'm trying to setup two wordpress virtual hosts on my macbook using a shell script composer and wp-cli. The first virtual host has been working perfectly. When I run the script for the 2nd virtual host I get these messages:

*unknown: "fatal: file /etc/postfix/main.cf: parameter mail_owner: user postfix has same user ID as _postfix

Created single site database tables.

Set up multisite database tables.

Success: Network installed. Don't forget to set up rewrite rules.

WP Core Installed"*

after this command is executed:

wp core multisite-install --url="dev.XXXXX.wp" --title="XXXXX" --admin_user="XXXXXadmin" --admin_password="XXXXX123" --admin_email=" [email protected] "

It appears to still work ok (I have some redirection issues) but I haven't fully tested yet not knowing if I have to fix that error above first. Thanks

Solutions

Postfix is a free and open-source mail transfer agent that routes and delivers electronic mail, when you get an error like this:

unknown: "fatal: file /etc/postfix/main.cf: parameter mail_owner: user postfix has same user ID as _postfix

it typically means you need to fix some configuration inside of /etc/postfix/main.cf . If you do not plan on ever using postfix, then you do not need to worry about it, perhaps maybe even remove postfix altogether from your server, otherwise you will not be able to start your SMTP if you do plan to use it.

Similar questions

WP-CLI plugin install causes PHP fatal error - Using $this when not in object context
When running sudo wp install plugin pluginname --allowroot It causes an error: PHP Fatal error: Uncaught Error: Using $this when not in object context in /var/www/html/wp-content/plugins/pluginname/blocks.php:89 We have a custom plugin that has this line: When installing via WP admin - it works fine. But when using WP-CLI it fails. Any help will be...
Access Wordpress Core from plugin file (globals like: $menu, $submenu, etc.)
I am currently developing a plugin for Wordpress. The plugin is located at: /wp-content/plugins/my-plugin/. Inside my plugin folder, I have created a file named results.php, which is used by some jQuery-code to gather specific information. The top of results.php looks like this: But sadly this doesn't work. In above example I need to fetch data fro...
WP CLI theme install. Install a private repo?
I have a bash script that installs and activates a theme like this: wp theme install https://bitbucket.org/organization/theme/get/master.zip --activate The problem is that it only works with public repositories, rather than private ones. If I make the repository private I get this error: Is there a way I can install private repositories that I have...
How to specify to wp-cli for the `wp config create` (`wp core config`) command that the DB user is an 'all hosts' user?
My wp config create command: Running it: Some evidence about why I think the problem is that wp-cli is trying to use the '\@localhost version' of the user I'm specifying; from the MariaDB 'monitor': This didn't work either: How can I tell wp-cli to use the '% version' of the wordpress user? A seemingly relevant GitHub issue for the wp-cli project:
ERROR: Named Volume "cerbot-etc:/etc/letsencrypt:rw' is used in service "webserver" but no declaration was found in the volumes section
I was following the digital ocean tutorial on how to install wordpress with docker-compose. https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-docker-compose I copied the docker-compose file the way it was written in the tutorial, double checked the indentation, checked to make sure the lines in question were written the...
WP CLI unknown parameters
I've copied the following command from the docs: wp post delete $(wp post list --post_type='page' --format=ids) but am getting this error: Can someone please explain why? Also, what is the format=ids part supposed to do anyway? I just want to delete all pages.

Also ask