Wednesday, March 1, 2006

Easy POP3 Account Tester

by damonp on March 1, 2006

in SysAdmin

I frequently need to test POP3 accounts to debug connection issues. Poptester is an expect script I wrote to do just this.

[root@calypso files]# ./poptester.exp
Usage: ./poptester.exp hostname username password [msgid]

Drop poptester.exp into a directory in your path. Execute it by passing the mailserver hostname and the username and password to test all on the command line. It will connect to the POP server, authenticate through plaintext authentication and retrieve a list of the messages available. You can also supply an optional msgid to test retrieving a specific message.

Popularity: 5%

{ 1 comment }