View Single Post

  #5 (permalink)  
Old 09-13-2006, 11:45 AM
ricc ricc is offline
Member
User
 
Join Date: Jul 2005
Posts: 85
Rep Power: 0
ricc
Default

Thanks monk,

I found something that I want to share. I have found that we can configure mail (or nail) to use .mailrc file in my home directory to use my campus email server to send and receive mail.

Here it is something that I found in this site:
http://<br /> <br /> <a href="http...<br /> <br />

I have input my imap and smtp server settings and the password in the file:

Code:
set folder=imap://ricc@172.16.0.201
set smtp=smtp://172.16.0.201
set from="ricc@mydomain.net( RICC )"
#set smtp_use_starttls
set smtp-auth=login
set smtp-auth-user=ricc
set smtp-auth-password=password
After this, when I compose a message and send it from the command line like this:

Code:
mypc:~ # mail -v -s "test msg" ricc@yahoo.com <~/testmail
then it shows:

Code:
Resolving host 172.16.0.201 . . . done.
Connecting to 172.16.0.201 . . . connected.
220 mx1.mydomain.net ESMTP
>>> EHLO mypc.mydomain.net
250-c2a.mydomain.net
250-PIPELINING
250-SIZE 15000000
250-ETRN
250-STARTTLS
250 8BITMIME
>>> AUTH LOGIN
530 Must issue a STARTTLS command first
smtp-server: 530 Must issue a STARTTLS command first
. . . message not sent.
This indicates that I have succeeded in trying to send the mail usng the account that I have in my campus email server. But another problem that I encounter is that it says :

Code:
 530 Must issue a STARTTLS command first
I dont know how to enable that. I have tried to insert a line in the .mailrc file :

Code:
 set smtp_use_starttls
But this has no effect. Perhaps the syntax is different. This has been commented after it failed too. Can anybody help.

ricc[/code]
Reply With Quote