No mail subsystem configured in Trident

#1

Hello again,

I recently installed U8 and noticed there was no mail subsystem installen. No sendmail whatsoever. I had to manually install and configure it (I chose postfix). Is this a known issue?

Cheers!

0 Likes

#2

yes. only 1 mail subsystem installed (maybe none).

most home users use a gui mail app, so removed to save space

1 Like

#3

ok, thanks for the explanation.

I found it strange as I consider it an integral part of any unix os. I like to check e.g. my periodic status reports.

0 Likes

#4

base programs are way out of date, and bring other stuff in.

trying to streamline the iso for desktop users

0 Likes

#5

I set up periodic.conf to push things to log files instead of emailing status.

daily_output="/var/log/daily.log"
daily_status_security_output="/var/log/dailysecurity.log"
daily_status_network_usedns="NO"
daily_status_named_usedns="NO"
daily_clean_tmps_enable="YES"
daily_status_ntpd_enable="NO"
daily_status_zfs_enable="YES"
daily_scrub_zfs_enable="NO"    # set to YES for autoscrubbing at threshold days
daily_scrub_zfs_default_threshold="45"          # days between scrubs
daily_status_smart_enable="YES"
daily_status_smart_devices="/dev/ada0"
daily_queuerun_enable="NO"
weekly_output="/var/log/weekly.log"
weekly_status_security_output="/var/log/weeklysecurity.log"
monthly_output="/var/log/monthly.log"
monthly_status_security_output="/var/log/monthlysecurity.log"
0 Likes

#6

I like this path of Trident: focusing on desktop users.

Sendmail was a PITA for me in the former release.

0 Likes

#7

A desktop system IMHO does not need a full-featured MTA, running a sendmail or postfix is overkill here. ssmtp provides the basic functionality so that system processes like periodic or self written shell scripts can get rid of a mail message. Here are my personal notes I’ve jotted down, maybe it helps:

pkg install ssmtp

To replace sendmail with ssmtp change your /etc/mail/mailer.conf to:

sendmail        /usr/local/sbin/ssmtp
send-mail       /usr/local/sbin/ssmtp
mailq           /usr/local/sbin/ssmtp
newaliases      /usr/local/sbin/ssmtp
hoststat        /usr/bin/true
purgestat       /usr/bin/true

Note On some systems the configuration of mailwrapper is in the file /usr/local/etc/mail/mailer.conf
In the base installation of Trident OS there is no sendmail or postfix installed. If you did install them on your own, they must be stopped and deactivated.

ssmtp can be configured with /usr/local/etc/ssmtp/ssmtp.conf, there are example files in the directory. Also make use of

man ssmtp
man ssmtp.conf

Example configuration

#
# /etc/ssmtp.conf -- a config file for sSMTP sendmail.
#

# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=your.mail.address@your.isp.com

# The place where the mail goes. The actual machine name is required
# no MX records are consulted. Commonly mailhosts are named mail.domain.com
# The example will fit if you are in domain.com and your mailhub is so named.
mailhub=smtp.your.isp.com:465

# Where will the mail seem to come from?
rewriteDomain=your.isp.com

# The full hostname
hostname=_HOSTNAME_

# Use SSL/TLS to send secure messages to server.
UseTLS=YES

AuthUser=<your.mail.address.username>
AuthPass=<your.password.in.plaintext.so.protect.this.file>

# Use SSL/TLS certificate to authenticate against smtp host.
#UseTLSCert=YES
0 Likes

#8

RodMyers is right.

1 Like