sending mail through the "mail" command

Okay, I'm relatively clueless about linux, so please bear with me.

I have a linode account. What procedure must I got through in order to enable:

echo hello world | mail johnny@dewey.com

I also have a few domains at godaddy, would I have to change some MX records etc to my linode host's IP address? It's running ubuntu 9.04 if that changes anything.

3 Replies

ok well first you should upgrade to ubuntu 10.04, 9.04's support ended in october, see http://library.linode.com/troubleshooti … 0.04-lucid">http://library.linode.com/troubleshooting/upgrade-to-ubuntu-10.04-lucid for instructions

Then you need to install a mail server, either

http://library.linode.com/email/exim/se … 0.04-lucid">http://library.linode.com/email/exim/send-only-mta-ubuntu-10.04-lucid

or

http://library.linode.com/email/postfix … 0.04-lucid">http://library.linode.com/email/postfix/gateway-ubuntu-10.04-lucid

Then mail will work

Will sending mail as-is, say, to my gmail account possibly mark my IP as a spammer address though?

nah, especially if you add a SPF record, you need to add a TXT record for your domains DNS with, here is a good wizard http://old.openspf.org/wizard.html

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct