Install the plugin through the interface, by going to Plugins -> Add New. Search for WP Mail SMTP and click Install Now.
Or on the command line:
alexander:~/$ cd ~/public_html alexander:~/public_html$ wp plugin install wp-mail-smtp Installing WP Mail SMTP by WPForms (1.3.3) Downloading installation package from https://downloads.wordpress.org/plugin/wp-mail-smtp.zip... Unpacking the package... Installing the plugin... Plugin installed successfully. Success: Installed 1 of 1 plugins. alexander:~/public_html$ wp plugin activate wp-mail-smtp Plugin 'wp-mail-smtp' activated. Success: Activated 1 of 1 plugins.
Once the plugin is activated, go open up postfixadmin, and log in, then go to VirtualList -> Add Mailbox and create a mailbox with a unique username (wp is good) and password
Then go to Virtual List. Next to the email account you just created, there is an option Alias, click on it. As we only want to use this account for sending, forward all the email to another account, and untick the Deliver to the local mailbox checkbox. Click save changes
Now we are ready to go back to the back end for your WordPress site. Login in as an administrator and go to Settings -> WP Mail SMTP. Scroll down to click on Other SMTP under Mailer.
Fill in the settings as follows:
- SMTP Host: mail.madforit.com.au
- Encryption: TLS
- SMTP Port: 587
- Authentication: On
- SMTP Username: the email address created above (e.g. email@example.com)
- SMTP Password: the password used above
Hit the Save Changes button and then head up to the Test Email button at the top of the page. From there you can enter an email address and send a test email. If you receive it, everything should work from here on in. If not, please copy the detailed error information and provide it to Mad for IT Support.