Step-1
mkdir ~/.certs
Step-2
certutil -N -d ~/.certs
Enter a password which will be used to encrypt your keys.
The password should be at least 8 characters long,
and should contain at least one non-alphabetic character.
Enter new password:
Re-enter password:
Step-3
echo -n | openssl s_client -starttls smtp -crlf -connect smtp.office365.com:587| sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ~/.certs/365.crt
certutil -A -n "Google Internet Authority" -t "C,," -d ~/.certs -i ~/.certs/365.crt
Step-4
vim mail-office365.sh
echo -e "Email content" | mailx -v -s "Email subject" \
-S smtp-auth=login \
-S smtp-use-starttls \
-S nss-config-dir=~/.certs \
-S smtp=smtp.office365.com:587 \
-S from="user@office365.com" \
-S smtp-auth-user=user@office365.com \
-S smtp-auth-password="passwordxxxx" \
-S ssl-verify=ignore \
user@gmail.com
Send Mail with Office365 Auth
Updatable objects appear as 'no longer supported'
Symptoms In some scenarios, the following validation warning appears on an updatable object: " Object is no longer supported. Enforci...
Mais vistos
-
Java Keytool Command These commands allow you to generate a new Java Keytool keystore file, create a CSR, and import certificates. A...
-
Kaspersky seems to be storing windows update files on the C Drive: Here -> C:\ProgramData\KasperskyLab\adminkit\1093\.working Change fo...
-
This particular error is generally experienced when people attempt a non NTFS volume such as ReFS to a DFSR replication group as documented...