On Fri, Jun 13, 2014 at 1:57 PM, Karol Blazewicz
<[email protected]> wrote:
> My /etc/mail.rc settings work just fine with s-nail 14.6.4
>
> set sendmail="/usr/bin/mailx"
> set smtp=smtp.gmail.com:587
> set smtp-use-starttls
> set ssl-verify=ignore
> set smtp-auth=login
> set smtp-auth-user=myusername
> set smtp-auth-password=mypassword
>
> but I can't get it to work with s-nail 14.7
>
> $ echo "Done" | mailx -vs <subject> <address>@gmail.com
> Resolving host smtp.gmail.com:587 ... done.
> Connecting to 173.194.66.108:587 ... connected.
> smtp-server: 530-5.5.1 Authentication Required. Learn more at
> smtp-server: 530 5.5.1
> http://support.google.com/mail/bin/answer.py?answer=14257 <some
> letters and numbers> - gsmtp
> "/home/karol/dead.letter" 11/274
> ... message not sent.
>
> I don't understand what changes do I have to make in order to be able
> to send messages to my gmail account, which is what I use s-nail for.
>
>
> I've opened a thread about this issue on Arch Linux forum:
> https://bbs.archlinux.org/viewtopic.php?id=182653

Tarqi (a user on the Arch Linxu forum) helped me figure it out:

set v15-compat ssl-method=auto
set smtp=smtp:/<my e-mail>@gmail.com:<encoded / escaped
password>@smtp.gmail.com:587
set smtp-auth=plain
set smtp-use-starttls

works.
The key was encoding the password (escaping certain characters):
https://bbs.archlinux.org/viewtopic.php?pid=1425811#p1425811

perl -p -e 's/([^A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg'
Paste it in a terminal and enter your password.

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
S-nail-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/s-nail-users

Reply via email to