send email from command line

Karl Larsen k5di at zianet.com
Wed Sep 24 19:44:21 UTC 2008


Neil Cherry wrote:
> 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
>
>   
    Many years ago at New Mexico State U the head Internet guy got about 
250 emails a day and he used mail on the command line. It's about like 
what we have now and he had sendmail set to send and receive and do the 
smtp work for him.

    The trouble is that not many people want to learn sendmail and an 
even tiny subset wants to learn exim.


Karl


-- 

	Karl F. Larsen, AKA K5DI
	Linux User
	#450462   http://counter.li.org.
   PGP 4208 4D6E 595F 22B9 FF1C  ECB6 4A3C 2C54 FE23 53A7





More information about the ubuntu-users mailing list