SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.