Re: mail from the command line ??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



as a test, I have mailx (also have sendmail)

based on a couple of websites/articles, I've created the following.

/root/.mailrc
set smtp-use-starttls
set nss-config-dir=~/.mozilla/firefox/kbatbh5m.default/
set ssl-verify=ignore
set smtp=smtp://smtp.mail.yahoo.com:465
set smtp-auth=login
set smtp-auth-user=uscfish
set smtp-auth-password=passwd1
set from="uscfish@xxxxxxxxx(tom)"

[root@dell-1 cacti]# echo "test" | mailx -vvv -s "tst1" "timmy@xxxxxxxxx"
Resolving host smtp.mail.yahoo.com . . . done.
Connecting to 63.250.193.228:465 . . . connected.
Unexpected EOF on SMTP connection
"/root/dead.letter" 11/301
. . . message not sent.
[root@dell-1 cacti]#


I also tried to run the following full command with the same err..

echo "test" | mailx -s "SUBJECT1" -S
smtp=smtp://smtp.mail.yahoo.com:465 -S smtp-auth=login -S
smtp-auth-user=uscfish -S smtp-auth-password=passwd -S from="tom
<uscfish@xxxxxxxxx>" timmy@xxxxxxxxx

I can't figure out where to go to get additional insight for the errs..

thanks




On Sat, Sep 14, 2013 at 1:31 PM, Mikkel L. Ellertson
<mellertson@xxxxxxxxx> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 09/14/2013 11:00 AM, bruce wrote:
>> Hi.
>>
>> Really basic question here, and I've seen 100s of articles on this
>>
>> if you want to send a test email from the commandline, using an
>> external smtp for validation/authentication, what's the "best" app to
>> use? Mail, Nail, Sendmail, etc..
>>
>> I've seen different articles/people saying different things, so I
>> thought I'd create a thread here for others to be able to see as
>> well..
>>
>> Thanks
> I have used all three. As long as you have your MTA (Sendmail,
> Postfix, etc) set up correctly, they all work good. For a basic test
> message, they all work about equally well. It is when you want to
> send a bunch of mail from a batch file that the differences come
> into play. I find Nail is the best of the three if you want to send
> a HTML message. (I send out a monthly HTML format calendar.)
>
> Mikkel
> - --
> Do not meddle in the affairs of dragons, for thou art crunchy and
> taste good with Ketchup!
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.14 (GNU/Linux)
>
> iEYEARECAAYFAlI0nVkACgkQqbQrVW3JyMRRmwCffqqxifBhX+QNBj3V0hnzP2tF
> J7cAoIB7ar1ii1gqrILQvMtMYq11zhFw
> =hj3l
> -----END PGP SIGNATURE-----
>
> --
> users mailing list
> users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux