View Single Post

  #1 (permalink)  
Old 09-11-2006, 05:53 PM
ricc ricc is offline
Member
User
 
Join Date: Jul 2005
Posts: 85
Rep Power: 0
ricc
Default Mailing from my Local Linux system

I have never configured "mail" on linux. Now I need to use a script to email me a report once every day. Till now, I have been using Thunderbird and use the SMTP /IMAP server in my campus to send and receive mail

I want to know how to use the mail command from the command line to send mails. I mean, I have an email account in a server mail.mydomain.net and how do I configure "mail" to use it. The smtp port is on port 991.

I have tried to just use this:

Code:
mail -s "test mail" ricc@yahoo.com < ~/outputfile
and try to configure postfix daemon in my PC to relay it to my mail server as said by Tom in this post:

http://forum.cyberciti.biz/mail-serv...hlight=postfix

My postfix daemon can ping the server and can telnet to the said port. But the /var/log/mail indicates connection timeout.

I want to know how to enable mailing and also if I need to use a local SMTP server on my PC. I would like to avoid using this becoz I already have an account on my main email server and would like to use that.

ricc
Reply With Quote