\documentclass[12pt]{article}
\usepackage{graphics}
\usepackage{color}
\usepackage{ifthen}
\pagestyle{empty}

\setlength{\topmargin}{0.25in}
\setlength{\textheight}{9.5in}
\setlength{\oddsidemargin}{0.5in}
\setlength{\textwidth}{6.0in}

\setlength{\headheight}{0.0in}
\setlength{\headsep}{0.0in}

\setlength{\footskip}{0.4in}

\setlength{\marginparsep}{0.0in}
\setlength{\marginparwidth}{0.0in}
\definecolor{maroon}{cmyk}{0,1,0.65,0.34}

\newcommand{\name}{ \#Your name here\#}
\newcommand{\department}{Department of Astronomy}
\newcommand{\building}{\#Room number\# Lederle Graduate Research Tower}
\newcommand{\phone}{\#413.123.4567\#}
\newcommand{\fax}{\#413.123.4567\#}
\newcommand{\email}{\#email@nova.astro.umass.edu\#}

\newlength{\rightlength}
\newlength{\namelength}
\newlength{\departmentlength}
\newlength{\phonelength}
\newlength{\faxlength}
\newlength{\emaillength}
\newlength{\logoheight}
\settowidth{\namelength}{\name}
\settowidth{\departmentlength}{\department}
\settowidth{\phonelength}{\phone}
\settowidth{\faxlength}{FAX: \fax}
\settowidth{\emaillength}{\email}
\settoheight{\logoheight}{\resizebox{1in}{!}{\includegraphics{2umlogo.eps}}}

% Find width of right side box
\setlength{\rightlength}{\namelength}
\ifthenelse{\lengthtest{\departmentlength>\rightlength}}{\setlength{\rightlength}{\departmentlength}}{}
\ifthenelse{\lengthtest{\phonelength>\rightlength}}{\setlength{\rightlength}{\phonelength}}{}
\ifthenelse{\lengthtest{\faxlength>\rightlength}}{\setlength{\rightlength}{\faxlength}}{}
\ifthenelse{\lengthtest{\emaillength>\rightlength}}{\setlength{\rightlength}{\emaillength}}{}

\begin{document}
\noindent
\hspace{-1.0in}\begin{minipage}[t]{1.0in}
\vspace{-2ex}
\resizebox{1in}{!}{\includegraphics{2umlogo.eps}}
\end{minipage}
\begin{minipage}[t]{3.0in} % \color{maroon}
\textcolor{maroon}{UNIVERSITY of} \\
\textcolor{maroon}{MASSACHUSETTS} \\
\textcolor{maroon}{\department} \\
\textcolor{maroon}{\building} \\
\textcolor{maroon}{Amherst, MA 01003}
\end{minipage} \hfill
\begin{minipage}[t]{\rightlength} % \color{maroon}
\textcolor{maroon}{\name} \\
%\textcolor{maroon}{\department} \\
\textcolor{maroon}{Phone: \phone} \\
\textcolor{maroon}{Fax: \fax} \\
\textcolor{maroon}{\email}
\end{minipage} 

\vspace{0.05in}

\noindent
\hfill \#Date\#, 2005 \\

\noindent
Dear Prof. \# XXX \#:

\vspace{0.25mm}

    I would like to apply for your post-doctoral position in your department. Now I am in my final year of Ph.D. study and expecting to graduate in the \#Spring of 2005\#. I have published \# X \# papers, and have some conference presentations in oral and poster formats. I also have \# X \# papers in-preparation. 

\vspace{0.15cm}

    \# Explain why you are best for this job, etc. \# I believe I can make excellent contribution to your post-doctoral position.

\vspace{0.15cm}

    \# Explain the skill that you have to fit this job, etc. \# These works have resulted in the publication of the papers as listed in my Publication List. 

\vspace{0.15cm}

    I have arranged three letters of recommendation from \# reference names \#, which will arrive soon. I enclosed the following materials with this letter: (a) my curriculum vitae with my publication list; and (b) my research statement. Thanks a lot for the time to consider me for this post-doctoral position. 
  
%, and (d) my proposed research statement

\vspace{0.12in}

\noindent
\begin{tabbing}
\hspace{3.7in} \= \kill
\> Sincerely, \\ \\ \\ \\
\> \# Your name \#  \\
\end{tabbing}
\end{document}

