LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-15-2010, 03:58 AM   #1
laoxu
LQ Newbie
 
Registered: Apr 2010
Location: China
Posts: 5

Rep: Reputation: 0
some problem with mail?


First i wanna use fetchmail+mutt,so i write the profile files 'muttrc' and 'fetchmailrc'。
Then i run 'fetchmail -c' to test。 fetchmail works well and it displays the number of unread mails in my gmail box.

then i put fetchmail as a deamon,and i send a new mail to myself, 2 minutes later,when i run 'mutt',there was no new mail in it.

then i thought may be my machine can't receive mails,so i typed 'mail -s test root@localhost' as a test。
Well,there was still nothing new in mailbox after run 'mutt'。

What's wrong with my system ? what else should i do ?

i am a newbie in slackware(just a week since i left RHEL),and please forgive my poor english.

Last edited by laoxu; 10-19-2010 at 04:26 AM.
 
Old 10-15-2010, 04:09 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
FYI, Andrew Strong wrote an excellent guide

http://www.andrews-corner.org/mutt.html
 
Old 10-15-2010, 04:11 AM   #3
t1nm@n
Member
 
Registered: Aug 2009
Location: Trivandrum, Kerala, India.
Distribution: Slackware 14.2 x86_64
Posts: 96
Blog Entries: 3

Rep: Reputation: 25
Hey man... i dont know much about mutt mail client ..i use claws mail (its a GUI interfaced software) here's the manual link

http://www.mutt.org/doc/manual/

let me know what u find
 
Old 10-15-2010, 04:14 AM   #4
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
Are you having fetchmail put the mail into your system mailbox?
 
Old 10-15-2010, 07:47 AM   #5
multios
Member
 
Registered: Mar 2006
Location: Homer, Alaska USA
Distribution: OpenBSD, FreeBSD, Slackware64-current
Posts: 276

Rep: Reputation: 58
laoxu, pretty hard to tell what is wrong without seeing your .fetchmailrc and .muttrc.

Welcome to the forum and Slackware

btw- I use mutt and fetchmail with Slackware.
 
Old 10-15-2010, 03:31 PM   #6
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
This isn't going to help your problem (and it's been a while since I configured mutt/fetchmail/procmail, though I do use them every day), but I just thought I would mention offlineimap. gmail supports IMAP and I much prefer offlineimap to fetchmail+procmail, especially when using multiple accounts. I have three IMAP accounts and one POP3 account working with mutt. Adding more IMAP accounts just requires modifying my .offlineimaprc (and .muttrc), whereas adding a POP3 account would require modifying .fetchmailrc, .procmailrc, and .muttrc, and to keep everything separate (which I like to do), it would require making a .fetchmailrc.other and .procmailrc.other, for example, and calling
Code:
fetchmail -f $HOME/.procmailrc.other
and, from within .fetchmailrc.other, setting my mda as
Code:
procmail -m $HOME/.procmailrc.other
offlineimap is just simpler to use when IMAP is available. Just my opinion of course. I'm not going to lookup all of the options in my configuration files, but I will just post them here (minus any personal details like e-mail and password).

.fetchmailrc:
Code:
set logfile /home/username/.fetchmaillog
set invisible
set no bouncemail
poll pop3.live.com                   
with proto POP3                      
user 'my@email.com'        
there with password 'xxxx'        
is 'username' here                              
mda "/usr/bin/procmail -m /home/username/.procmailrc"
options                                                             
keep                                 
ssl                                  
sslcertck                            
sslcertpath /home/username/Mail/certs/
where username is my Linux username, my@email.com is my e-mail address, xxxx is my password (make sure this file has 600 permissions), and /home/username/Mail/certs is where I keep my certificates (you will have to generate or locate the proper certificate for whatever server you are using, and I cannot remember how to do that at all, so you're on your own there). Note that this is being used for hotmail, but it should work for any POP3 account.

.procmailrc:
Code:
PATH=/bin:/usr/bin:/usr/local/bin 
VERBOSE=off  
DEFAULT=/home/username/mail/hotmail/
MAILDIR=$HOME/mail/hotmail/
LOGFILE=$HOME/.procmaillog
# Recipes below this comment:

:0:
* ^TOmutt-user
username
where username is, again, your Linux username, and $HOME/mail/hotmail is where I am keeping this mail (you would obviously want to change this).

My script for receiving mail (I run this as a cron job):
Code:
#!/bin/sh

offlineimap &>/dev/null
fetchmail -f $HOME/.fetchmailrc &>/dev/null
Of course you can remove the offlineimap line if you don't use it. I also call this script from my .muttrc when pressing 'I' to manually receive mail:
Code:
macro index I '<shell-escape> /home/username/scripts/cron/mail.sh<enter>'
where that is the location of my script. Everything else should be strictly .muttrc configuration, which several tutorials and manuals should describe. I would still suggest offlineimap if you can get away with it -- you only have to deal with .offlineimaprc and .muttrc, and there is no need to play with fetchmail/procmail interactions.
 
Old 10-18-2010, 04:24 AM   #7
laoxu
LQ Newbie
 
Registered: Apr 2010
Location: China
Posts: 5

Original Poster
Rep: Reputation: 0
sorry guys i wasn't at home this weekend,so i cound not read you replies until today,thanks for all of you.

here i wanna say is that i am not talking about mutt or fetchmail problem,i am talking about mail problem.to explain this ,i write a mail just now :

"mail to root@localhost -s "can you receive ?" < mesg.txt"

and here is my mail log:

Oct 18 17:20:45 lx sendmail[2355]: o9I9KjVk002355: from=root, size=253, class=0, nrcpts=7, msgid=<201010180920.o9I9KjVk002355@lx.lx.com>, relay=root@localhost
Oct 18 17:20:45 lx sendmail[2355]: o9I9KjVk002355: to=you,to,root@localhost,receive,it,can,???, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=210253, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]


so i think maybe there are some packages lack in system ?
or i should open or close something ?

Last edited by laoxu; 10-18-2010 at 04:29 AM.
 
Old 10-18-2010, 04:32 AM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
it's explained in the guide I linked, you need msmtp

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

easier than setting up sendmail with a smarthost.
 
Old 10-18-2010, 09:49 AM   #9
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Quote:
Originally Posted by laoxu View Post
sorry guys i wasn't at home this weekend,so i cound not read you replies until today,thanks for all of you.

here i wanna say is that i am not talking about mutt or fetchmail problem,i am talking about mail problem.to explain this ,i write a mail just now :

"mail to root@localhost -s "can you receive ?" < mesg.txt"

and here is my mail log:

Oct 18 17:20:45 lx sendmail[2355]: o9I9KjVk002355: from=root, size=253, class=0, nrcpts=7, msgid=<201010180920.o9I9KjVk002355@lx.lx.com>, relay=root@localhost
Oct 18 17:20:45 lx sendmail[2355]: o9I9KjVk002355: to=you,to,root@localhost,receive,it,can,???, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=210253, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]


so i think maybe there are some packages lack in system ?
or i should open or close something ?
Try

cat msg.txt | mail root@localhost
 
Old 10-19-2010, 04:25 AM   #10
laoxu
LQ Newbie
 
Registered: Apr 2010
Location: China
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ponce View Post
it's explained in the guide I linked, you need msmtp

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

easier than setting up sendmail with a smarthost.
ok,thanks man,it works after i install msmtp.....
 
  


Reply



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
mail loops back to me (MX problem?) OR did not issue MAIL/EXPN/VRFY/ETRN skc Linux - Server 6 07-09-2011 09:18 PM
problem with Evoution mail working with ubunto linux system senting mail dan1369 Linux - Newbie 1 06-14-2009 11:55 AM
Mail relaying problem, cannout mail from outside network using outlook andrewfeberwee Linux - Newbie 4 03-30-2009 07:12 PM
problem receiving pop3 mail from postfix mail server GEN_Electric Linux - Software 2 02-14-2005 02:43 PM
Strange mail problem, no errors, and no mail quincy56 Linux - Networking 4 09-07-2004 12:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:08 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration