LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-14-2011, 09:58 AM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,681
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Looking for email TESTING client


I'm looking for a special email client for the purpose of doing testing of mail servers. I need to be able to test:

1. Shell command line capability. If it also can do X windows, I need a version that does not need X libs (maybe build that from source). Source code would be nice to have.
2. Access to POP, IMAP, SMTP, and both SSL and STARTTLS variations. I do need all these variations.
3. I need to be able to specify the login name, email address, and server hostname or IP address, and optional port number to access.
4. It should prompt me for password if I don't supply it in some other means (one of command argument, environment variable, or file I point to).
5. It should report how much mail is there if it can get in but NOT actually fetch it (options to tell it to fetch mail would be optional, but I don't need that).
6. If it cannot get in, it needs to detail why as much as can be determined ... and NOT phrase things for ordinary users.
7. I do NOT want to have to "setup up an account" in the client to use it. I would be using it to, among other things, verify that access to accounts being set up on servers is actually working.

Anyone ever heard of such a beast?
 
Old 09-14-2011, 01:49 PM   #2
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
That's very specific

Alpine, maybe? There's a debug option mentioned in the command line options. The source is available. It comes with something called mailutil which I think might do at least some of what you want. I once used it to script sucking email out of one account via and in to another via IMAP.

Last edited by arizonagroovejet; 09-14-2011 at 01:50 PM. Reason: there was an instance of the word 'to' that shouldn't have been there
 
Old 09-14-2011, 02:42 PM   #3
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,681

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Well, I'm not looking for a new mail client in the usual sense. But if the alpine package has tools, or just the right set of command line options, to carry out the testing I need to do, then that might be what I want. I'll take a look at it (again ... looked at it several years ago once for ordinary client needs but ended up using mutt and don't remember the specifics of why).
 
Old 09-14-2011, 02:45 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
How about telnet?
http://techhelp.santovec.us/pop3telnet.htm

Kind regards

Last edited by repo; 09-14-2011 at 02:48 PM.
 
Old 09-14-2011, 04:12 PM   #5
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
FWIW, I just found that script I mentioned. Here's an example line which might give you a vauge sense of what can be done with mailutil

Code:
/usr/bin/mailutil transfer -verbose $where {imap.mail.server/ssl/novalidate-cert/user=$SECOND_USER};
$where is a path to a local directory.

Given that you seems to know exactly what you want, if you have some scripting/programming skills it might be worth looking at writing something to do what you want. Since my last post I've remembered that about five years ago I wrote a script in PHP that connected to an IMAP sever and retrieved the size of all the user's mail folders. I'm sure such a thing is possible in other languages too.
 
Old 09-14-2011, 07:34 PM   #6
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,681

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by repo View Post
How about telnet?
http://techhelp.santovec.us/pop3telnet.htm

Kind regards
Well, telnet would be far from it. It wouldn't all be on one command. You'd have to do separate "commands" for each line of the protocol. The IMAP protocol is more complex than POP (and the one I need most). And it would be really hard to do the SSL and STARTTLS stuff (what I need most).
 
Old 09-14-2011, 08:06 PM   #7
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,681

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by arizonagroovejet View Post
FWIW, I just found that script I mentioned. Here's an example line which might give you a vauge sense of what can be done with mailutil

Code:
/usr/bin/mailutil transfer -verbose $where {imap.mail.server/ssl/novalidate-cert/user=$SECOND_USER};
$where is a path to a local directory.
What is the local directory defined by $where for?

I don't want to save any state at the machine I execute this from. The only need I can see for some directory is for a collection of CA certs (that I can add my self-signed ones to) to verify SSL key authenticity. And LIBSSL I believe has a tool for that much, anyway (if that's the only test I want to run at that moment).

Quote:
Originally Posted by arizonagroovejet View Post
Given that you seems to know exactly what you want, if you have some scripting/programming skills it might be worth looking at writing something to do what you want. Since my last post I've remembered that about five years ago I wrote a script in PHP that connected to an IMAP sever and retrieved the size of all the user's mail folders. I'm sure such a thing is possible in other languages too.
Yes, that is the fallback plan. I can program in C and have some ability in PHP, Pike, and Python. But it is always wise to check, first, to see if someone has already done so. Inventing a wheel can look rather embarassing

What I want is basically a tool a mail system administrator can use to test if user access to a mail server is working ... without munging up their real mail client's account base with a temporary account ... and without having to deal with a bunch of different mail account configuration settings to see which works. The ideal tool will try that account in many variations to see what works. Whatever port it is directed to, it should try to autodetect which protocol (POP vs. IMAP) is there. And that's after connecting in the clear, in the clear with STARTTLS, and fully encrypted with SSL from the start. It should also try the username alone, and the username appended with "@" and the full hostname, and also with just the domain part of the hostname. It would report back what works and does not work. It would report failed to connect, failed to authenticate host, failed to login, mailbox empty, number of messages, as appropriate. Ability to use proxies (like HTTP CONNECT and SOCKS) would be nice.

Do you see where I'm going with this, yet? I want to do something like:

Code:
mailtester -u arizona@groovejet.co.uk -h newmailserver.groovejet.co.uk -p 9143 -c /usr/share/ca-certificates/mozilla --imaponly
... and out pop all the answers.

Last edited by Skaperen; 09-14-2011 at 08:10 PM. Reason: only half the post got transferred
 
Old 09-15-2011, 01:10 PM   #8
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by Skaperen View Post
What is the local directory defined by $where for?
It was a local collection of mail.

I don't want to save any state at the machine I execute this from.
Quote:
Originally Posted by Skaperen View Post
You can always put stuff in specific tmp directories and clean them up afterwards.


Quote:
Originally Posted by Skaperen View Post
Inventing a wheel can look rather embarassing
Depends how cool the wheel is.

Quote:
Originally Posted by Skaperen View Post
Do you see where I'm going with this, yet? I want to do something like:
Sort of but I suspect, not really.
 
Old 09-15-2011, 03:19 PM   #9
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,681

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
I don't see at all where to put the username, hostname, portnumber, and password to access the selected mail server for the tests. And I don't file any "mailutil" program in packages for Slackware or Ubuntu. The closest package is "mailutils" but that's the classic MH client.
 
  


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
[SOLVED] Best email client for moderate to large email database (Evolution, thunderbird, kmail, Claws mail) Carpincho Linux - Software 1 08-24-2011 05:19 AM
how ssmtp email client can receive email delivery golden_boy615 Linux - General 0 05-08-2011 01:14 AM
Command based email client to send email through secure smtp havolinec Linux - Newbie 2 07-27-2010 07:40 AM
email link in firefox opens wrong email client wabbalee Linux - Software 3 11-26-2006 04:41 AM
Email client that supports HTTP email (hotmail NoUse4ANick Linux - General 5 11-07-2005 03:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:31 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