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.
Might sound like a silly experiment to some, but I have attempting spend one week using my Slack without a GUI, trying to do normal tasks like printing, writing, and home network communications. It is all just a learning exercise, and it has been great fun.
While I have been successful at almost everything I tried to do without a GUI Desktop, I have failed to set up email to send and receive. I was planning on using Pine to send and fetchmail to receive. Pine seems pretty easy to set up, but when sending a message I get the following:
Code:
[Mail not sent. Sending error: 421 SMTP connection broken
When I open Pine, it starts by asking me my mail password, so it looks like it is working, but obviously isn't.
When trying to get mail from my ISP with fetchmail, I get a complaint that localhost refused the connection, eventhough fetchmail found the mail and attempted to download it. I have been reading that incoming POP3 mail is received through port 25, and this port seems to be the problem, but I can send and receive just fine with Thunderbird.
There are a lot of threads on Pine and fetchmail, but to me they are confusing. None of this is really important, just my attempt to learn Slack and Linux in general a little deeper, so it won't be a disaster if I don't get much of a reply, but if anyone has a simple answer (or even a complicated one), I would love to hear from you.
Pine, like Mutt, is just a mail client, or mail user agent. They do not send or receive mail. Take a look at the "What Pine Does Not Do" list from the Pine website:
Pine and Mutt are generally set up to simply display mail message in your mbox file or Maildir folder. Fetchmail and getmail can grab mail from a remote server and copy it to your mbox or Maildir folder to enable Pine/Mutt to read it. To send, you need to set up a mail transfer agent such as sendmail or postfix. If you already have an account with your ISP or Gmail or whatever, then you may want to look at simple MTA's, such as msmtp or esmtp. All they do is really just forward your mail to the smtp server of your ISP or Gmail. I have used msmtp and it works very well.
Thank you, yes that does help. However, with some additional tweaking Pine DOES seem to be grabbing the mail from my ISP saving to an INBOX with the Pine app. I sent two test messages and I received them both through Pine. It tries to send as well, but fails authentication. Oh well, one out of two accomplished. I will have a look at sendmail. I have wanted to learn, anyway.
I use mutt, sendmail, procmail, spamassassin and fetchmail. Been using them for ages now even in X.
So for sending:
mutt -> sendmail
For receiving:
fetchmail -> procmail -> spamassassin -> procmail again -> mutt
Once they are set up they will last forever.
procmail is called automatically after fetchmail, forwards everything to spamassassin which is called from ~/.procmailrc, then finally sorts everything into proper folders.
Yes, I did, and I still get a systax errors. However, I can get it to work with fetchmail -u and supply my user name. It then asks for a password, and after entering it it finds the mail. It still won't download it, though, because I get "connection refused" to local host.
The complete .fetchmailrc is:
Quote:
poll mail.btinternet.com proto POP3 fetchall
user 'wetumpka@btinternet.com' there with password 'XXXXXXX' is 'bob' here
Bob
Last edited by BobNutfield; 07-14-2008 at 04:13 PM.
I wonder if its looking for sendmail or other running on localhost. That's the only thing I can think of that would explain connection refused by localhost. Do you have procmail installed?
I wonder if its looking for sendmail or other running on localhost. That's the only thing I can think of that would explain connection refused by localhost. Do you have procmail installed?
Yes, procmail is installed. It's odd, my little experiment was intended to use fetchmail to get my mail and Pine to send it, but Pine now downloads my mail and puts it in an inbox within Pine, but won't send with authentication failures. I'll try with Mutt once I have read the man pages and get to grips with it. Mutt does not seem nearly as intuitive and easy to use as Pine. As far as port 25 is concerned, I can ping it, but telnet also gets a "connection refused" complaint.
This is a terrific HOWTO. Thanks for providing it. I do have a googlemail account and I will experiment with it (Gmail is not available in GB because of copyright issues, but googlemail is the same system.) With my experimenting, I want to be careful not to bork my actual GUI email setup with Thunderbird. All of this, after all, is just a learning experiment.
Yes, I did, and I still get a systax errors. However, I can get it to work with fetchmail -u and supply my user name. It then asks for a password, and after entering it it finds the mail. It still won't download it, though, because I get "connection refused" to local host.
The complete .fetchmailrc is:
Bob
This works fine for me when using fetchmail:
poll mail.isp.com proto pop3 user ispaccountuser password xxxxx is localuser here
mda '/usr/bin/procmail -f fetchmail'
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.