Sending simple email via MacOs 12 Terminal with mail (mail_version = 3.2.2) - email

I would like my MacOS "server" (basic mac mini with OS12.1 installed)
to be able to send emails using my current (paid) email provider.
Some theory first.
I am aware about this fine article (http://hints.macworld.com/article.php?story=20081217161612647)
What puzzles me is how on earth will "fresh out of box" mac be able to send even ONE email without being (mail-server) configured first. In other words to what email server will it send my email?
Discovered the very useful command mailq that will show the current status of all current emails being processed.
I understood that the command mail will send an email:
echo "this is the body" | mail -s "this is the subject" "myself#myserver.lu"
I understand, mail is using postfix in the background.
This will show the version of postfix (mine is mail_version = 3.2.2)
postconf mail_version
Is it possible to update postfix on macos?
Did anyone managed to enable the log on mail_version 3.2.2?
I get this warning:
postconf: warning: /etc/postfix/main.cf: unused parameter: maillog_file=/var/log/postfix.log
without the log it is a bit difficult to see what went wrong during email send...
thanks in advance for some MAC related input.

Related

Client settings need to be updated to Microsoft Exchange. For more info see https://x.co/client

I am using my email and password to send email using python script. But I am not able to send mail since past couple of weeks.
I debugged and found error.
Msg: b"Your message wasn't delivered because your client settings need to be updated to Microsoft Exchange. For more info see https://x.co/client"
on windows machine using outlook I also updated my email to Microsoft Exchange but still my problem is not resolved.
Can someone guide me on this?
Note: From outlook web and app email send/receive both are working fine. problem is only with script smtp.
Main Purpose is to use same details with flask-mail in flask project.
MAIL_SERVER="smtpout.secureserver.net"
MAIL_PORT=465
MAIL_USE_SSL=1
MAIL_USERNAME="______________"
MAIL_PASSWORD="______________"

Firefox 37.0.2 mailto link doesn't launch compose window in Live Mail

After Win 7->8.1 upgrade, Email links in Firefox 37.0.2 browser now launch my mail client (Windows Live Mail) but not a compose message window in that app. In Windows 7, Firefox option "Email Link" would launch WLM and open a compose message window pre-populated with my email address as sender and web page link. This message was integrated with my address book for autocomplete suggestions for "To". My default mail settings are all correct as evidenced by the fact that WLM DOES launch from mailto. But it seems to launch just the WLM executable without the -compose option.
Another oddity: When I first reset my defaults for mailto to WLM, mailto DID link to the compose message function of WLM, but has not done so since. No other software installs were done. I've checked and rechecked, turned on and off mail default, with no change.
Any advice is much appreciated. I've researched this for hours but can't find solution save a registry change which seems edge to me.

How can I use Mandrill App as system message mailer on Parallels Panel?

Currently I have my CentOS system set up with Parallels Panel and have my mailing system working nicely. But I'd prefer to have my system messages to be mailed using Mandrill App (MailChimp guys).
I have it working now with a kind of a mixed setup. Simple, though working. But now I get an error in my mail logs saying the following:
Jan 4 10:41:11 shinjuku postfix/smtp[29469]: certificate verification failed for smtp.mandrillapp.com[46.137.69.113]:25: untrusted issuer /C=ZA/ST=Western Cape/L=Cape Town/O=Thawte Consulting cc/OU=Certification Services Division/CN=Thawte Premium Server CA/emailAddress=premium-server#thawte.com`
After this I've tried configuring the smtp_tls_CApath and smtpd_tls_CApath to point to /etc/ssl/certs, but still no luck on this part.
Does someone have an idea on how I can get this working to have ALL system messages to be sent using Mandrill, instead of built-in config?
Mark, for CentOS try this for your CAPath/CAfile
smtp_tls_CAfile = /etc/ssl/certs/ca-bundle.crt

PHP mail() in dev environment: open the mail in a browser/editor instead of sending it?

On my machine I need to test the mails sent by my application. I'd rather avoid sending real mails.
Is there a way to have the email content showed to the screen a way or another, maybe by opening it in gedit or any text editor?
Maybe like replacing the commandline used to launch "sendmail"?
I am asking for Linux machines (Ubuntu more specifically).
Include a means of determining your environment in your project, or at least some kind of global variable that holds that information.
Then build an abstract mail interface that either sends real mails if it's running on a production server, but logs them to local files in case it runs on a dev machine / environment. As a logging package, I would recommend Monolog.
This would allow you to design the rest of your application (or at least the mail sending components) in a way that doesn't have to care about the environment.
After searching, here is the solution I came to:
create a script that will fake a smtp server
/usr/local/bin/sendmail-fake:
#!/bin/bash
{
date
echo $#
cat
} >> /var/log/sendmail-fake.log
configure PHP:
php.ini:
sendmail_path = /usr/local/bin/sendmail-fake
In this setup, emails are logged into a file. The script could be modified to open the content into a browser.
More details on the blog post.

Configuring Gmail in gnus in Aquamacs

I'm a new emacs user, and I'm trying to get gnus working with mi gmail account with Aquamacs.
So far, I've been able to set it up to receive my mail. The problem is when I try to send an e-mail. I get this error:
No Gnus is good news
No more unread newsgroups
Mark set
Sending...
Sending via mail...
No STARTTLS program was available (tried 'gnutls-cli')
ad-Orig-error: Sending failed; SMTP protocol error
I understand that 'gnutls-cli' is necessary, and that it is not included in Aquamacs. I've found this guide to install it http://www.gnu.org/s/gnutls/manual/gnutls.html, but I'm not sure how I have to proceed, since I'm using MacOs and not Linux (although both are UNIX OS)
My question is: what do I exactly have to do to be able to send emails?
You could install opensll and configure Gnus to use it instead of
gnus-tls.
From the Gnus Manual:
`nntp-open-ssl-stream'
Opens a connection to a server over a "secure" channel. To use
this you must have OpenSSL (http://www.openssl.org) or SSLeay
(ftp://ftp.psy.uq.oz.au/pub/Crypto/SSL) installed. You then
define a server as follows:
;; "snews" is port 563 and is predefined in our `/etc/services'
;; however, `openssl s_client -port' doesn't like named ports.
;;
(nntp "snews.bar.com"
(nntp-open-connection-function nntp-open-ssl-stream)
(nntp-port-number 563)
(nntp-address "snews.bar.com"))