with v15 there's supposedly a whole bunch of changes, hence why I've been getting nagged with
Code:
mailx: Warning: variable superseded or obsoleted: smtp
mailx: Warning: variable superseded or obsoleted: smtp-auth-user
mailx: Warning: variable superseded or obsoleted: smtp-auth-password
mailx: Warning: variable superseded or obsoleted: ssl-verify
mailx: Obsoletion warning: please do not use *smtp*, instead assign a smtp:// URL to *mta*!
mailx: Obsoletion warning: Use of old-style credentials, which will vanish in v15!
mailx: Please read the manual section "On URL syntax and credential lookup"
What I currently have, which works perfectly fine aside from the nagging messages, is:
Code:
nail -r "username@gmail.com" \
-S smtp-use-starttls \
-S smtp-auth=login \
-S smtp=smtp://smtp.gmail.com:587 \
-S from="username@gmail.com" \
-S smtp-auth-user=username@gmail.com \
-S smtp-auth-password=password \
-S ssl-verify=ignore \
-S nss-config-dir=/root/scripts \
-s "${where1} SSH Alert" ${cc_to} ${bcc_to} ${mailto} >&2 <<-EOM
${what} from ${where2} at ${when}
EOM
I've tried the following:
Code:
mta="smtps://username@gmail.com:password@smtp.gmail.com:587 smtp-use-starttls
nail -r "username@gmail.com" \
-S smtp-auth=login \
-S from="username@gmail.com" \
-S nss-config-dir=/root/scripts \
-s "${where1} SSH Alert" ${cc_to} ${bcc_to} ${mailto} >&2 <<-EOM
${what} from ${where2} at ${when}
EOM
but nothing sends... any ideas?