Hi,
Simple question, im sure the answer is very obvious, so:
I have set up a simple .mailrc file, now i wish to send an email from the command line (its part of an automated task). So i simply use something akin to the following (email names have been changed to protect the innocent
)
nail -A accountname -s "AUTOTASK"
target@email.com < task_msg
however, i get:
smtp-server: 535 #5.7.0 Authentication failed back.
I can send emails using telnet, and the verbose output from nail is something like
Code:
Resolving host mail.isp.com . . . done.
Connecting to 1.2.3.4 . . . connected.
220-mail.isp.com ESMTP
220 ESMTP; hostname [IP ADDRESS] funny comment
>>> EHLO linuxbox
250-mail.isp.com
250-8BITMIME
250-SIZE 33554432
250-AUTH PLAIN LOGIN
250 AUTH=PLAIN LOGIN
>>> AUTH LOGIN
334 VXNlcm5hbWU6
>>> ZGhkYm94
334 UGFzc3dvcmQ6
>>> Y2xud2V5ZmE=
why did it not reply to the AUTH LOGIN with my username?
how can i fix it?
mailrc file:
Code:
account accountname {
set from=accountname@isp.com
set smtp=smtp://mail.isp.com
set smtp-auth-user=accountname
set smtp-auth-password=not_my_real_pass
}
Thanks.