send email from command line
Neil Cherry
ncherry at linuxha.com
Wed Sep 24 19:24:28 UTC 2008
mierda tuti wrote:
> Many thanks to all!
Mierda, don't top post (as other have pointed out). Instead, after
the new information has been added. Post your message after the
previous response. It looks more natural, like a spoken conversation.
I'm using bottom posting (the preferred method). My responses follow
your previous message. Also note that I trimmed out some of the extra
useless information such as the mail list signature.
> I 've installed mailx and I think my kubuntu have exim default.
>
> I execute
> mailx -s hola mierdatuti at gmail.com <mailto:mierdatuti at gmail.com> < mensaje
>
> In the log says me:
>
> tail -f mainlog
>
> 2008-09-24 12:05:55 1KiZgR-0002AA-DR <= root at ubuntu U=root P=local S=316
> 2008-09-24 12:05:55 1KiZgR-0002AA-DR ** mierdatuti at gmail.com
> <mailto:mierdatuti at gmail.com> R=nonlocal: Mailing to remote domains not
> supported
> 2008-09-24 12:05:55 1KiZgR-0002AC-He <= <> R=1KiZgR-0002AA-DR
> U=Debian-exim P=local S=1099
> 2008-09-24 12:05:55 1KiZgR-0002AA-DR Completed
> 2008-09-24 12:05:55 1KiZgR-0002AC-He => david <root at ubuntu> R=local_user
> T=mail_spool
> 2008-09-24 12:05:55 1KiZgR-0002AC-He Completed
Basically this is telling you that your MTA (I guess that's exim)
doesn't support remote domains (gmail.com) so the message was
sent to root on your local machine.
You'll either need to setup exim to properly send mail to remote
domains or, if that is not possible, setup sendmail as has been
suggested using my instructions:
http://www.linuxha.com/other/sendmail/gmail.html
--
Linux Home Automation Neil Cherry ncherry at linuxha.com
http://www.linuxha.com/ Main site
http://linuxha.blogspot.com/ My HA Blog
Author of: Linux Smart Homes For Dummies
More information about the ubuntu-users
mailing list