- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- automatic mail from linux
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 06:37 PM
тАО05-17-2004 06:37 PM
automatic mail from linux
Through scripts, if i need to send mails automatically to any email id (internet mails or office mail), what & how should i configure that on linux? Please help?
Thanks in advance,
Kusuma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 06:49 PM
тАО05-17-2004 06:49 PM
Re: automatic mail from linux
For this you would need to configure sendmail on the Linux server. Please review the links below, they provide sufficient information on how to configure the same
http://www.siliconvalleyccie.com/linux-hn/sendmail.htm
http://www.linuxjournal.com/article.php?sid=5507
If you have any specific questions, let me know
regards
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 06:52 PM
тАО05-17-2004 06:52 PM
Re: automatic mail from linux
If you have sendmail on localsoft, you can use sendmail (mail command).
e.g.)
$ mail -s Subject user@domain < conts.txt
If you don't have sendmail or don't configure sendmail,
you can use perl.
Please see perldoc Net::SMTP.
Very simple script makes you happy.
e.g.)
#!/usr/bin/perl -w
use Net::SMTP;
$smtp = Net::SMTP->new('mailhost');
$smtp->mail($ENV{USER});
$smtp->to('postmaster');
$smtp->data();
$smtp->datasend("To: postmaster\n");
$smtp->datasend("\n");
$smtp->datasend("A simple test message\n");
$smtp->dataend();
$smtp->quit;
--- from perldoc Net::SMTP ---
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 08:39 PM
тАО05-17-2004 08:39 PM
Re: automatic mail from linux
does that mean that I have to have DNS if I have to send mails outside or is there any other option?
Kusuma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 08:54 PM
тАО05-17-2004 08:54 PM
Re: automatic mail from linux
Absolutely. You should have a DNS on your domain. I am not aware of any other ways this can be done.
regards
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2004 01:29 AM
тАО05-18-2004 01:29 AM
Re: automatic mail from linux
1) select a mail server [postfix|sendmail]
2) read docs and configure it. It takes 1h using a ready-made config file.
3) use the "mail" command to send mail as suggested above. You can use it too thru piping:
echo "My Mail Body"|mail johnsmith@example.com -c johnholmes@example1.net
Peace, R>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2004 02:23 AM
тАО05-18-2004 02:23 AM
Re: automatic mail from linux
You can do mail so many different ways.
mail, elm, sendmai all have different and complimentary capabilities.
the right tool for the right job.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2004 12:02 PM
тАО05-18-2004 12:02 PM
Re: automatic mail from linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2004 05:39 AM
тАО05-26-2004 05:39 AM