Howto use Windows Thunderbird to fetch /var/spool mail from a NFS share?

2

1

On our linux server to which I have access via ssh doesn't (and probably will not) have a X server installed. Mail concerning e.g. cronjobs ends up there so I have to log in and use mail. I can access my home folder (including a symlink to /var/spool/mail/$USER) via NFS from my windows machine, so

How can I access a NFS shared linux mailbox via a windows installation of thunderbird?

I found that with Linux' Thunderbird this is achieved via a movemail account, but that option seems to be not available on the Windows installation.


update Our university policy unfortunately doesn't allow for SMTP services so solutions to forward mail to my usual email account won't work. Basically I need a way to have thunderbird treat the external mail file as a folder containing mails. Maybe there is a plugin for the windows version?

Tobias Kienzler

Posted 2011-03-01T12:29:06.770

Reputation: 3 262

@Olli I was referring to linux' mail command since I didn't know which tag to use to refer to /var/spool/mail. – Tobias Kienzler – 2011-03-01T13:18:35.763

sorry, now I don't understand. Can you clarify? I didn't change tags at all. – Olli – 2011-03-01T14:37:40.080

@Olli: sorry nevermind, my mistake, I had tagged the question mail not email and thought you retagged that as well but that was an automatic tag synonym which I didn't notice. but thanks for your edit – Tobias Kienzler – 2011-03-01T15:03:28.303

Answers

2

  • The best choice for remote mail is to install a IMAP daemon on the server. (I like Dovecot myself.)

  • If you do not want to keep messages on the server but rather move them to your PC, there is a simpler POP3 protocol, which works in a similar way to "movemail".

  • As suggested by Matt Jenkins, you can add a MAILTO=your@real.address in crontab.

  • It is usually possible to forward your mail system-wide, by putting your real address to a file called .forward in your home directory.

  • Regarding X11: All you need to install on the Linux box is X11 clients, such as Thunderbird.

    The X11 server should never be on server machines; it is supposed to be installed on your local machine – the one you're sitting at. (A few for Windows are Xming and Cygwin/X.)

    X11 is designed so that it could be used over the network directly. However, tunnelling it over SSH offers greater security. Use ssh -X host or the "X11 Forwarding" option in PuTTY.

user1686

Posted 2011-03-01T12:29:06.770

Reputation: 283 655

1You could also edit your crontab to add a MAILTO=you@yourdomain.com line so that emails from cron get sent to your proper mailbox. – Majenko – 2011-03-01T13:03:12.003

Thanks, I tried the .forward solution, but a test email send to myself with mail $USER seems to have vanished. is there some place to look for a logfile? re the imap/pop3 solution, I'm afraid our admin wouldn't be too pleased about that potential security issue - or me starting a daemon at all... – Tobias Kienzler – 2011-03-01T13:39:26.393

@MattJenkins: thanks, that might help for cronjobs. However I also receive other mails e.g. by our cluster system – Tobias Kienzler – 2011-03-01T13:43:07.310

@Tobias: I strongly disagree that IMAP would be more of a security issue than NFS is. Both IMAP and POP3 can be (and usually are) secured with TLS (SSL), and they can use GSSAPI (Kerberos) authentication, the same that NFSv4 uses. And if you are not using NFSv4... don't tell me that IP address-based authentication is not a "potential security issue". – user1686 – 2011-03-01T13:46:14.890

@Tobias: Re .forward: Check /var/log - if there's no mail-specific log file, try messages or syslog. – user1686 – 2011-03-01T13:46:52.893

@grawity: unfortunately the university policy doesn't even allow an SMTP server which is why the .forward solution didn't work... (the NFS share is only reachable from our intranet btw) I'm afraid I need to look for another solution probably relying on thunderbird directly accessing my /var/spool/mail file. But still thanks for your feedback! – Tobias Kienzler – 2011-03-01T14:18:46.327

1@Tobias: I know this won't matter to the network admins, but I still say that there's no reason to disallow IMAP... It doesn't have to be open to the Internet; it can follow exactly the same access restrictions as existing services (NFS and SSH); and, of course, convenience. But, meh. If the policies are that restrictive, then there aren't many "legal" alternative solutions (such as having a program on the cluster that automatically transfers the messages elsewhere; I can think of and implement a few). – user1686 – 2011-03-01T15:33:51.673

1

This sounds like a slightly long-winded way of doing it, but one method might be to run a small IMAP or POP3 server locally on your computer which uses the NFS shared data as its file store. You could then connect Thunderbird to this server with a standard protocol.

I'm not sure what software would be best for this - maybe someone else can recommend some?

Majenko

Posted 2011-03-01T12:29:06.770

Reputation: 29 007

0

You should be able to edit /etc/aliases to forward email to whichever address you choose.

BillThor

Posted 2011-03-01T12:29:06.770

Reputation: 9 384

Thanks. Unfortunately I'm not root, but also our policy doesn't allow for SMTP so forwarding via email is impossible anyway :( – Tobias Kienzler – 2011-03-02T12:04:30.247