LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-08-2008, 12:40 AM   #1
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 37
configuring heirloom mailx still unsuccessful-- why? Shouldnt it be simple?


Hi,
I have wasted lots of time setting up heirloom mailx and I still can't send emails out nor get emails. What is the problem here?

This is what I got.

I downloaded it here.

I set up /home/okos/.mailrc for accessing my gmail account as follows:
Quote:
account gmail {
set smtp-use-starttls
set ssl-verify=ignore
set smtp=smtp.gmail.com:587
#set smtp-auth=login
set smtp-auth-user=okos@gmail.com
set smtp-auth-password=************
set from=okos@gmail.com
}
I checked my mail and I know I have some on the server:
Quote:
okos@me:~$mailx
okos@me:~$No mail for okos
I tried to send mail to my yahoo account:
Quote:
mailx okos@yahoo.com
okos@me:~$ mailx okos@yahoo.com
Subject: test2
This is my second test
EOT
okos@me:~$ /home/okos/dead.letter... Saved message in /home/okos/dead.letter
FYI: The email address is not my true email address so PLEASE dont send me any email.

Nothing is working. I cant send nor receive mail.
I would greatly appreciate some help.
Thanks
 
Old 04-08-2008, 07:44 AM   #2
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 646

Rep: Reputation: 90
Hi,

I am a little puzzled at the choice of mailx. If there is not a special reason for using this try mutt and gmail:

http://www.andrews-corner.org/mutt.html

Andrew
 
Old 04-08-2008, 10:46 PM   #3
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by andrew.46 View Post
Hi,

I am a little puzzled at the choice of mailx. If there is not a special reason for using this try mutt and gmail:
Andrew
Hi Andrew,
First of all, I have never used a command line mail client before. I really don't know much about mailx or mutt.

Secondly, logrotate uses mail as the default mail client and I have not found any literature on other options. What I am actually interested in is gmailing the logs to myself once a month for review. I am not sure if mutt will do that. I am willing though to give it a try.

And thirdly, I am wondering why I should choose mutt over mailx?

Thanks for the response.
okos
 
Old 04-08-2008, 10:57 PM   #4
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 646

Rep: Reputation: 90
Hi okos:

Quote:
Originally Posted by okos View Post
Hi Andrew,
First of all, I have never used a command line mail client before. I really don't know much about mailx or mutt.
OIC. I have mostly used mutt :-)

Quote:
Secondly, logrotate uses mail as the default mail client and I have not found any literature on other options. What I am actually interested in is gmailing the logs to myself once a month for review. I am not sure if mutt will do that. I am willing though to give it a try.
I have not done this myself but mutt would be able to do this probably as part of a seperate script.

Quote:
And thirdly, I am wondering why I should choose mutt over mailx?
If you simply want to send logs once a month I suspect mailx would be your choice. If you want to invest the time and effort into a more fully featured program that will cover all your email needs mutt is your client.

Plus of course you could benefit from all the work I have done on my mutt and gmail page :-)

Andrew
 
Old 04-09-2008, 01:01 AM   #5
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by andrew.46 View Post
Hi okos:

Plus of course you could benefit from all the work I have done on my mutt and gmail page :-)

Andrew
Hi Andrew,
Thanks for getting back to me.
Ill try mutt.


I had a question about that. In the fetchmailrc do you have to leave the single quotes? Or do you remove the single quotes also?
Quote:
poll pop.gmail.com
with proto POP3
user 'gmail_address'
there with password '********'
is 'username' here
mda "/usr/bin/procmail -d %T"
options
no keep
ssl
sslcertck
sslcertpath /home/username/.certs/
Forexample would it be:
Quote:
user 'okos@gmail.com'
there with password 'MYPASSWORD'
is 'okos' here
OR
Quote:
user okos@gmail.com
there with password MYPASSWORD
is okos here
Thanks for all of the work.
okos

Last edited by okos; 04-09-2008 at 01:03 AM.
 
Old 04-09-2008, 01:32 AM   #6
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 646

Rep: Reputation: 90
Hi,

I just had a look at my own configuration of ~/.fetchmailrc and it has the apostrophes as follows:

Code:
poll pop.gmail.com                   
with proto POP3                      
user '********.**@gmail.com'        
there with password '*****'        
is 'andrew' here                              
mda "/usr/bin/procmail -d %T"        
options                                                             
no keep                                 
ssl                                  
sslcertck                            
sslcertpath /home/andrew/mail/certs/
I am honestly not sure if these are required but it certainly works this way :-)

Andrew
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mplayer fullscreen plays like slow motion but shouldnt? dmx9595 Linux - Software 10 03-31-2007 07:50 AM
Java-Applet Reads file but shouldnt MaxistXXL Programming 3 01-18-2007 10:20 AM
If my flash drive works, shouldnt my camera work also? M$ISBS Linux - Hardware 4 09-16-2006 09:48 AM
IPTABLES allowing port 5900 when it shouldnt proendo Slackware 5 04-18-2005 09:42 AM
hello again! simple questions about configuring mipia Slackware 2 06-20-2003 11:03 AM


All times are GMT -5. The time now is 11:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration