Re: Emailing from a daemon process
Re: Emailing from a daemon process
- Subject: Re: Emailing from a daemon process
- From: Jens Alfke <email@hidden>
- Date: Fri, 08 Jul 2016 08:48:27 -0700
> On Jul 8, 2016, at 8:13 AM, Sal Conigliaro <email@hidden> wrote:
>
> You can send mail using sendmail without having to configure Postfix or
> Sendmail.
> Out of the box OS X can use sendmail to send messages.
I didn’t think this would actually work, but I tried it and it does.
It relayed to the SMTP server of my personal email account, judging by the headers in the message as received:
Received: from jens.local (xx-xx-xx-xx.dsl.static.fusionbroadband.com [xx.xx.xx.xx])
by connor.dreamhost.com (Postfix) with ESMTP id CBE6D2C98217
for <email@hidden>; Fri, 8 Jul 2016 08:37:59 -0700 (PDT)
Received: by jens.local (Postfix, from userid 501)
id 90842F8AC69; Fri, 8 Jul 2016 08:37:27 -0700 (PDT)
(Dreamhost is my domain host / email provider.) I have two email accounts, so I don’t know how it decided which one to use. It’s not the first one in the list in either Mail’s prefs or the Internet Accounts system pref.
I’m pretty sure this would not work from a daemon process, since there is no associated user account to look up mail configurations from, and the credentials to users’ SMTP accounts are unavailable since they’re in the users’ keychains.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden