# [OmniOS-discuss] Ang: Re: email notifications from SMF and FMA

Johan Kragsterman johan.kragsterman at capvert.se
Tue Sep 5 17:30:02 UTC 2017

- Previous message: [OmniOS-discuss] email notifications from SMF and FMA
- Next message: [OmniOS-discuss] email notifications from SMF and FMA
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Hi!

    Thanks, Matjaz, but I wanted to use the SMF service: svc:/system/fm/notify-params:default. I just wondered how I would configure the mail address(in SMF) to be able to send to remote mail host with auth.

    BR Johan

    Best regards from/Med vänliga hälsningar från

    Johan Kragsterman

    Capvert

    -----Matjaž M <matjaz85 at gmail.com> skrev: -----
    Till: Doug Hughes <doug at will.to>
    Från: Matjaž M <matjaz85 at gmail.com>
    Datum: 2017-09-05 19:21
    Kopia: omnios-discuss <omnios-discuss at lists.omniti.com>, Johan Kragsterman <johan.kragsterman at capvert.se>
    Ärende: Re: [OmniOS-discuss] email notifications from SMF and FMA

    The easiest way to send an email from CLI or crontab I found is Heirloom mailx. You can find it here:
    http://heirloom.sourceforge.net/mailx.html

    You will need to make/make install yourself.

    And then you can use info on how to set it up from here:
    https://www.systutorials.com/1411/sending-email-from-mailx-command-in-linux-using-gmails-smtp/

    BR, Matjaz

    On 5. sep. 2017, at 14:28, Doug Hughes <doug at will.to> wrote:

    wouldn't it be easier to use your local MTA (postfix, sendmail) to do this? Then SMF just has to execute /bin/mail or equivalent and your MTA can act as an outbound relay agent.

    Sent from my android device.

    -----Original Message-----
    From: Johan Kragsterman <johan.kragsterman at capvert.se>
    To: omnios-discuss <omnios-discuss at lists.omniti.com>
    Sent: Tue, 05 Sep 2017 3:44
    Subject: [OmniOS-discuss] email notifications from SMF and FMA

    Hi!

    I need to send mails from SMF to a remote SMTP server, and want/need to include auth credentials.

    I know how to use the SMF service to send the mail.

    I know how to get the user/passwd into encode_base64, but how do I pass it on to the mail? As well as the port. I guess the port would look like this: root at mailserver.com:465, would it?

    But the rest...?

    I've seen Peter Tribble been blogging about these features, but not exactly how it would look like to pass on the credentials to your mail.

    Best regards from/Med vänliga hälsningar från

    Johan Kragsterman

    Capvert
    _______________________________________________
    OmniOS-discuss mailing list
    OmniOS-discuss at lists.omniti.com
    http://lists.omniti.com/mailman/listinfo/omnios-discuss

- Previous message: [OmniOS-discuss] email notifications from SMF and FMA
- Next message: [OmniOS-discuss] email notifications from SMF and FMA
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

More information about the OmniOS-discuss mailing list