This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: /usr/bin/email causes error "sh: /usr/lib/sendmail: No such file or directory"
- From: "David Christensen" <dpchrist at holgerdanske dot com>
- To: <cygwin at cygwin dot com>
- Date: Sun, 21 May 2006 23:43:45 -0700
- Subject: RE: /usr/bin/email causes error "sh: /usr/lib/sendmail: No such file or directory"
Christopher Faylor wrote:
> How about reading /usr/share/doc/Cygwin/email*.README?
Thanks for the RTFM pointer. :-)
Here we go (blank lines edited for readability):
<CVSENV>2006-05-21 22:39:02 dpchrist@p3533 ~
$ less /usr/share/doc/Cygwin/email-2.3.4.README
<CVSENV>2006-05-21 22:40:39 dpchrist@p3533 ~
$ less /usr/share/doc/Cygwin/exim-4.62-1.README
Make several attempts at email-config and exim-config. Here are the final
runs:
<CVSENV>2006-05-21 23:25:41 dpchrist@p3533 ~
$ email-config
Please enter your From: name (e.g., John Doe) [David Christensen]:
Please enter your From: email address [dpchrist@p3533.holgerdanske.com]:
Please enter your Reply-to: email address []:
Enter 1 to use sendmail or 2 to use a SMTP server [1]:
Please enter the sendmail command line [/usr/sbin/sendmail -t -i]:
Please check the configuration file /etc/email/email.conf for correctness.
<CVSENV>2006-05-21 23:28:51 dpchrist@p3533 ~
$ exim-config
************************************************
This script sets some key parameters of the exim
installation and starts the exim daemon.
See the details in /usr/share/doc/Cygwin/exim-X-Y.README.
Interrupt with ^D.
Mobile User Tmpl:unused_by_nt/2000/xp:11124:10513:
User Tmpl:unused_by_nt/2000/xp:11125:10513:
Power User Tmpl:unused_by_nt/2000/xp:11126:10513:
Administrator Tmpl:unused_by_nt/2000/xp:11127:10513:
SBS Backup User:unused_by_nt/2000/xp:11128:10513:
SBS STS Worker:unused_by_nt/2000/xp:11129:11119:
WARNING: The usernames displayed above contain spaces.
They cannot receive mail nor appear in /etc/aliases.
Edit /etc/passwd and use identifiers without spaces.
OK. The /etc/aliases file contains "postmaster".
OK. The primary hostname p3533.holgerdanske.com
is already defined in /etc/exim.conf.
INFO: Some programs expect /usr/sbin/sendmail to handle mail.
Currently it is a symbolic link to /usr/bin/exim.
Exim is already installed as a service under account 'LocalSystem'.
Do you want to remove or reinstall it? (yes/no) yes
OK. The exim service was removed.
Do you want to install the exim daemon as a service? (yes/no) yes
Enter the period of the queue runner, in minutes: [15]
Enter the value of CYGWIN for the daemon: [ntsec notraverse]
Do you want to start the exim daemon as a service now? (yes/no) yes
OK. The mail daemon is now accepting mail.
You can test it with "telnet localhost 25".
INFO: The exim log files are in /var/log/exim.
When everything else fails,
read /usr/share/doc/Cygwin/exim-X-Y.README,
or look up the documentation on www.exim.org.
Many happy mailings :)
Adjust McAfee Virus Scan Enterprise 8.0i firewall to allow email.exe and
exim-4.62-1.exe to send mail, then continue:
<CVSENV>2006-05-21 23:30:40 dpchrist@p3533 ~
$ email -s test dpchrist@holgerdanske.com < foo
E-Mail Sent
<CVSENV>2006-05-21 23:37:01 dpchrist@p3533 ~
$ tail -n 2 /var/log/exim/exim_main.log
2006-05-21 23:37:03 IZNLL0-0002VG-8I => dpchrist@holgerdanske.com
R=dnslookup T=
remote_smtp H=holgerdanske.com [65.19.145.106]*
2006-05-21 23:37:03 IZNLL0-0002VG-8I Completed
Check e-mail client for messages -- yup. Thanks! :-)
David
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/