SOLVED mailer configuration - unable to send email from public IP

ghostwolf59

Contributor
Joined
Mar 2, 2013
Messages
165
I just rebuilt my entire freenas installation using 11.2
As part of this I installed nextcloud in its own jail - more or less following Samuel Dowling's instruction (https://www.samueldowling.com/2018/...n-freenas-iocage-jail-with-hardened-security/)
Skipped parts of the "hardening" where I opted for a self signed cert since I dont have a domain

nc Server runs, can connect using local ip as well as my exposed ip.
As admin I can send out a test email using both ip's
BUT! I cant send out a psw recovery email using the public ip.
It works flawless using my internal ip, but nothing is sent out when accessing nc using the public ip.
The mailer log shows this...
Mar 31 16:30:00 nextcloud sendmail[71088]: x2V8U089071088: from=www, size=520, class=0, nrcpts=1, msgid=<201903310830.x2V8U089071088@localhost.my.domain>, relay=www@localhost
Mar 31 16:30:00 nextcloud sendmail[71088]: x2V8U089071088: to=www, ctladdr=www (80/80), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30520, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

Nextcloud.log dont show anything even though I turn on full debug for both smtp and nc itself inside the config.php

Cant figure out whats going on with this!????

mail config within nc:
Send Mode: smtp
Encryption: STARTTLS
Authentication: None
Auth Method: None
Server Adress: smtp.<my isp mail domain>
Port: 587 *also tried 25 & 465*

Any suggestions?
 

ghostwolf59

Contributor
Joined
Mar 2, 2013
Messages
165
Did, This is what I did...
1. Re-installed mailer on freenas
2. Made sure its turned on
3. Opted for mailer rather than smtp

That did the trick - not sure why smtp on the public entry failed - but now I use the mailer throughout and it works just fine
 
Top