forward root mail with Napp-it TLS settings

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

Bronko

Member
May 13, 2016
111
10
18
105
I have extended my /etc/mail/aliases with:
Code:
root: user@domain.org
The domain.org mail server rejected, because the local mta isn't configured:
Code:
user@domain.org... Deferred: 450 4.1.8 <root@tanker.local.lan>: Sender address rejected: Domain not found
<<< 554 5.5.1 Error: no valid recipients
Anyone use the Napp-it web-gui configured TLS smtp service to forward local root user mails?
 
Last edited:

gea

Well-Known Member
Dec 31, 2010
3,163
1,195
113
DE
You must either configure a local MTA like sendmail or you can create an "other job" as a small perlscript to send mails over the Perl smtp modul. Compare the script for Jobs > TLS testmail.
 

Bronko

Member
May 13, 2016
111
10
18
105
You must either configure a local MTA like sendmail or ...
At first I got the idea of domain masquerading to substitute

root@tanker.local.lan in to root@tanker.domain.org:
Code:
# svcadm disable -t network/smtp:sendmail
# cd /etc/mail/cf/cf/
# cp sendmail.mc tanker.mc
# chmod 644 tanker.mc
# vi tanker.mc
...
MASQUERADE_AS(`domain.org')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`always_add_domain')dnl
MASQUERADE_DOMAIN(`domain.org')dnl
...
# make tanker.cf
# /usr/lib/sendmail -C tanker.cf -v user@domain.org </dev/null
But the test from the last line fails for the same reason, the domain doesn't changed.

Should be finalized with:
Code:
# cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.save
# cp tanker.cf /etc/mail/sendmail.cf
# svcadm enable network/smtp:sendmail
to be continued...
 
Last edited: