PHP Email Server won't send

Nextcloud version : 13.0.5
Operating system and version : Ubuntu 16.04
Apache or nginx version : 2.4.18
PHP version : 7.0

The issue you are facing: Unable to send email from Email Server

Is this the first time you’ve seen this error? : No

Steps to replicate it:

  1. Go to Settings->Additional Settings
  2. Set Send mode to PHP
  3. Enter from address
  4. Click Send email to Test email settings

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

I’m sorry this is formatted so bad but I can’t ssh into the server currently due to other issues. This is the mail.log:

Honestly, not sure it matters much. PHP mail is deprecated and unsupported in NC 14. You might as well figure out another solution, as it won’t work anyway once you upgrade.

I use localhost as SMTP server:

config.php:

  'mail_from_address' => 'nextcloud',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_domain' => 'cloud.domain.xx',
  'mail_smtphost' => 'localhost',

Is there anything special I need to do on the server itself to set it up with SMTP? Again I’m on ubuntu 16.04
Thank you.

No, just a mail server which permits relaying on localhost.

Got it to work! I used this tutorial

Thanks for the help