Magento 2 add a user via command line cli

Magento does not allow resetting password of an existing user using the command prompt CLI.

But it allows creating new admin users via CLI.

Login to the command line and change directory to your magento 2 root directory.

e.g. cd  /var/www/magento2

Enter the below command and press enter.

php bin/magento admin:user:create

The CLI will prompt for username, password, email address, first name and last name for the user being created.

What is the SPF record and how it can help your email delivery

In Email sending protocol ( SMTP) , by the nature of it, there is no way of validating the sending address aka the FROM address. This can lead to many fraudulent activities. E.g Someone pretending to be you may email your bank spoofing your email address and steal confidential information or perform transactions.

SPF (Sender Policy Framework) is a solution introduced in 2006 in an effort to solve this problem of email senders authenticity. SPF describes a DNS record in a special format to list all the domains allowed to send mail from the domain. This allows spam filters to easily check if the origin of an email is from an authorized domain.

In most practical scenarios, email server IP address is different to the main domains IP address.