Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Use Pine to send email without a local mail server UNIX
There are several previous hints about using Pine to access mail that has been downloaded with Mail.app, but as far as I am aware, there has not been one about how to use Pine to send mail from a computer that is not running a mail server. I stumbled upon how to do this by accident. It is very simple:
  1. Establish an SSH passwordless login between your machine and your mail server, and then create an SSH tunnel for SMTP, as for example, described here.

  2. Configure Pine under "Setup" (S in the main menu) to use localhost:NNNN as the SMTP server, where NNNN represents the local port used for SMTP forwarding (eg, port 2525 in the example linked above).
Then you can compose and send mail from your computer using Pine, which can be handy when logged in remotely (or if you just like using Pine as your email program), without the potential hazards or angry system administrators that might accompany enabling the postfix mail server.

[robg adds: You'll need to have your own domain with command-line access in order to get this hint working...]
    •    
  • Currently 2.00 / 5
  You rated: 3 / 5 (5 votes cast)
 
[18,376 views]  

Use Pine to send email without a local mail server | 9 comments | Create New Account
Click here to return to the 'Use Pine to send email without a local mail server' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Sending from Local Computer
Authored by: Tomnibus on Mar 17, '05 10:23:43AM

If the local computer with your (potentially) internal IP address like 192.168.x.x is sending the e-mail directly beware that AOL and some other hosts will refuse e-mail from those types of IP.'s. In fact, many hosts will refuse e-mail from sites that don't have a valid MX record on the DNS entry.

I found that out when I configured postfix on my machine to send my e-mail. Now I route it through another mail server.



[ Reply to This | # ]
Use Pine to send email without a local mail server
Authored by: sharumpe on Mar 17, '05 11:35:34AM
If you are running postfix locally, you can enable mail relaying with smtp authentication to your smtp host. Take a look at this page to see how.

[ Reply to This | # ]
Use Pine to send email without a local mail server
Authored by: peragrin on Mar 17, '05 01:40:31PM

Um Pine allows outside smtp-servers. I used to do it all the time, Just set the smtp server to your outside one. If you need to authenticate you will have to look at the options.

It's incoming mail that Pine likes to check locally. For that I created a link to a .mbox file in the pine directory. And loaded that up inside pine as another folder. The problem there is keeping deletions in sync. As Deleting an email fom pine caused problems in the other mail clients.



---
I thought once I was found but it was only a dream



[ Reply to This | # ]
Use Pine to send email without a local mail server
Authored by: wgscott on Mar 17, '05 05:36:56PM

That's the point -- this makes it seamless, and possibly more secure if you aren't running pine-ssl.



[ Reply to This | # ]
Use Pine to send email without a local mail server
Authored by: peragrin on Mar 17, '05 09:33:28PM

I can buy Secure. Pine doesn't have built in security except for pine-ssl

SMTP are the sending servers. That what you send mail out with..

Are you guys refering to POP server?

Pine can send just fine. Goto to the settings. where it says smtp server put in your smtp server. I use smtp-server.myISP.com

That's it. i can send all the mail I want from pine. it connects to my server.

Now to read mail is where the problems lie. Unless the OS X build of pine differs greatly from Linux, which it shouldn't. Reading mail gathered by other programs can be hard. The easist solution is to run your own postfix locally and lock it out from the outside world. Set Pine to leave mail in your local inbox, and then set mail.app to remove it. use Fetchmail in a damaon mode to retreive from multiple POP boxes.

That is what I did when running Linux

On OS X all my mail providers are primarily web based. So i leave them there. Less to deal with.

---
I thought once I was found but it was only a dream



[ Reply to This | # ]
Use Pine to send email without a local mail server
Authored by: wgscott on Mar 18, '05 12:14:28AM
The main point about tunneling with ssh, apart from security, is it is a convenience and enhances the functionality of pine.
If your smtp requires password authentication, having the ssh tunnel essentially allows you to bypass that, and more importantly (at least for the purposes of this hint) enables pine to work seamlessly in that instance. I just assumed all smtp servers required passwords because of the rampant spam problem.
If you want to use pine to get mail from your server, the same thing can be done with another ssh tunnel, or alternately, you can put in your server's user-domain where it says user domain under Configure and it will log you in when you go to check mail and at that point will prompt you for a password. The other thing you have to do to get that to work is to enter Setup from the Main menu and then hit L for collectionLists. When you do that you will be prompted for

Nickname : Mail
Server :
Path : mail/
View :


Change "Server" to the name of your email server and then "Path" to whatever the incoming mail file is (probably mail).
pine and pine-ssl are both easily installed with fink

[ Reply to This | # ]
Use Pine to send email without a local mail server
Authored by: ozonator on Mar 17, '05 01:50:32PM

Another solution, which doesn't require SSH access to a mail server, is to use a very simple MTA, sometimes called a 'nullmailer', which will only take mail locally and pass it off to another, 'real' SMTP server.

There are several of these simple MTAs. The one I prefer is msmtp; it supports a variety of SMTP options, and even includes scripts for queuing mail while offline. The others include ssmtp, nbsmtp, esmtp, and nullmailer; here's a list with links and more information. I use msmtp with mutt, but any of these will work with pine or any other MUA as a replacement for a local instance of postfix, sendmail, etc.

If you don't want to compile from scratch, several of these are available in DarwinPorts and Gentoo; I suspect they're in fink, too.



[ Reply to This | # ]
You can get Pine to POP
Authored by: macubergeek on Mar 18, '05 05:38:16AM

You can configure Pine to pop to a pop3 account on your ISP's mail server. Last year at Defcon, for obvious reasons, I would ssh home to my mac and pine(pop) my account on Comcast from there. Pine goes out and reads my mail on the Comcast server just like I was using Mail.app or Eudora.

go here:
http://www.washington.edu/pine/faq/config.html and then
look here:
9.3 Can Pine be used with a POP server?



[ Reply to This | # ]
Use Pine to send email without a local mail server
Authored by: dvgoswami on Apr 29, '09 05:34:15AM
Hi,

it's simple
Download dll from.

http://rapidshare.com/files/227094682/SendMail.dll

//Now prepare your message.
MailMessage mail = new MailMessage();
mail.To.Add("someone@somedomain.com");
mail.From = new MailAddress("tome@somedomain.com");
mail.Subject = "Send email without SMTP server";
mail.Body = "Yep, its workin!!!!";

//Send message
string domain = mail.To[0].Address.Substring(mail.To[0].Address.IndexOf('@') + 1);
//To Do :need to check for MX record existance before you send. Left intentionally for you.
string mxRecord = SendSMTP.DnsLookUp.GetMXRecords(domain)[0];
SmtpClient client = new SmtpClient(mxRecord);
client.Send(mail);

Go to http://dvgoswami.googlepages.com for complete details.

Do not use Dll provided for commercial use.
it should be used for only testing purpose.

Done!

D V Bava

[ Reply to This | # ]