how_to_make_the_mail_command_work
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | how_to_make_the_mail_command_work [2010/12/03 23:25] (current) – created tkbletsc | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Command line email ====== | ||
+ | The ' | ||
+ | |||
+ | echo MESSAGE BODY | mail MYSELF@ncsu.edu -s " | ||
+ | |||
+ | Unfortunately, | ||
+ | |||
+ | ===== Ubuntu ===== | ||
+ | |||
+ | On Ubuntu 7.04 and some later versions (not sure up to what), do '' | ||
+ | |||
+ | Next, configure for Internet sending: | ||
+ | |||
+ | < | ||
+ | $ sudo dpkg-reconfigure exim4-config | ||
+ | </ | ||
+ | |||
+ | In the menu, select: | ||
+ | * General type of mail configuration: | ||
+ | * System mail name: Accept the default, which should be the FQDN (e.g. '' | ||
+ | * IP-addresses to listen on for incoming SMTP connections: | ||
+ | * Other destinations for which mail is accepted: (either blank or the FQDN) | ||
+ | * //Use the defaults for the rest of the questions// | ||
+ | |||
+ | Note that because the mail server is set to listen only on 127.0.0.1, this will //not// open the SMTP server up to internet traffic (and the security concerns that brings). | ||
+ | |||
+ | ===== CentOS / Fedora / RHEL ===== | ||
+ | |||
+ | This has been tested on CentOS 5.3, but will likely work elsewhere. | ||
+ | |||
+ | < | ||
+ | $ sudo yum install postfix system-switch-mail | ||
+ | ... | ||
+ | Is this ok [y/N]: y | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | Then enable postfix: | ||
+ | |||
+ | < | ||
+ | $ sudo system-switch-mail | ||
+ | </ | ||
+ | |||
+ | Select '' | ||
+ | |||
+ | Note that because the mail server is set to listen only on 127.0.0.1 by default, this will //not// open the SMTP server up to internet traffic (and the security concerns that brings). | ||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | |||
+ | If your email doesn' |
how_to_make_the_mail_command_work.txt · Last modified: 2010/12/03 23:25 by tkbletsc