strace -e trace=open,write mailq run from user tom exits after
open ("/etc/passwd
write(2, "exim: permission denied
If I run /etc/init.d/exim4 restart I get a warning that the exim4 paniclog
is not empty. tail/var/exim4/paniclog ends with "failed to read delivery
status for tom@dragon.zoo from the delivery subprocess.
I have tried editing exim4.conf.template and uncommenting the Login lines
in the Authentication section and entering my user name and password after
the colons in the server_promts line. This does not solve the problem.
Firstly, IIRC, Exim4 has its own ideas about who can run it as
/usr/sbin/sendmail or /usr/sbin/exim; you'd need to run it as root or
find the setting to permit other users to run the commands. This isn't a
problem for Fetchmail, though, as Fetchmail is trying to connect to a
mailserver running on the local machine, port 25. Fetchmail's problem is
that Exim isn't configured to run as a server, so it has no idea what to
do with the mail it's fetching. You need to either configure Exim to
listen on port 25, or configure Fetchmail to deliver to a program such
as procmail; the second option is probably better all round, unless
fetchmail is downloading mail for more than one local user.
Ben