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:
Go to Settings->Additional Settings
Set Send mode to PHP
Enter from address
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:
From 192.168.1.254
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.
Sanook
October 2, 2018, 3:43pm
3
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.
Sanook
October 3, 2018, 2:33pm
5
No, just a mail server which permits relaying on localhost.
Got it to work! I used this tutorial
Postfix is an MTA (Mail Transfer Agent), an application used to send and receive email. In this tutorial, we will install and configure Postfix so that it can be used to send emails by local applications only.
Thanks for the help