Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-30-2012, 04:11 AM
|
#1
|
Member
Registered: Feb 2011
Posts: 120
Rep:
|
SMTP enable
I would like to know if it is possible to create an smtp account in the localhost to send emails from localhost
Thanks
|
|
|
07-30-2012, 04:16 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
you don't need specific accounts to send email, any acount can usually do this. Clearly you're welcome to create your own if you wish.
unrelated to networking - moved to Linux - Newbie.
|
|
|
07-30-2012, 04:18 AM
|
#3
|
Member
Registered: Feb 2011
Posts: 120
Original Poster
Rep:
|
Thats what i want to know. How can i do this ?
|
|
|
07-30-2012, 04:30 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
what? how to create a account? useradd <username>
|
|
|
07-31-2012, 12:49 AM
|
#5
|
Member
Registered: Feb 2011
Posts: 120
Original Poster
Rep:
|
how can i send email from localhost ?
|
|
|
07-31-2012, 01:15 AM
|
#6
|
Member
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304
Rep:
|
step 1. check for mail or mailx command // issue 'whereis mail' or 'whereis mailx' to find it.
step 2. if mail or mailx command is found follow the next step
step 3. # mail -s "Insert subject here" root@localhost
You can use mail or mailx command to send mail. For more information see man page, command is given below.
# man mail
or
# man mailx
|
|
|
07-31-2012, 03:27 AM
|
#7
|
Member
Registered: Feb 2011
Posts: 120
Original Poster
Rep:
|
I got no output by entering this command
Output
|
|
|
07-31-2012, 05:44 AM
|
#8
|
Member
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304
Rep:
|
please install mailx-x.x.x-x86.rpm for your server. And try the same. If you don't have the rpm you can download it from here
|
|
1 members found this post helpful.
|
07-31-2012, 06:10 PM
|
#9
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,434
|
If this is for your Fedora or Redhat system, mailx is in the std repos.
In fact they are part of the std install (normally).
My mailx is in /bin/mailx for RHEL5 & RHEL6.
|
|
1 members found this post helpful.
|
08-01-2012, 01:14 AM
|
#10
|
Member
Registered: Feb 2011
Posts: 120
Original Poster
Rep:
|
Thanks for your reply
I will try this also
|
|
|
All times are GMT -5. The time now is 12:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|