On September 5, 2017 2:28:19 PM GMT+02:00, Doug Hughes <d...@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.kragster...@capvert.se> >To: omnios-discuss <omnios-discuss@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: r...@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
Not sure: you're most interested in such notifications when something has failed. This state can preclude running an external submission program on the local system, or having it queue-dequeue your message. But generally (e.g. to forward user mails or logs/events summaries posted from app servers and other systems especially in highly volatile development setups where connectivity and remote services are not 100% granted) it is often convenient to have dumb programs post to localhost:25 and a real MTA/MSA repost that - often to a common org mail relay that is properly known in worldwide DNS and has secure setup to pass offsite recipients' antispams. Jim -- Typos courtesy of K-9 Mail on my Android _______________________________________________ OmniOS-discuss mailing list OmniOS-discuss@lists.omniti.com http://lists.omniti.com/mailman/listinfo/omnios-discuss