Installed Exim on Debian - cannot send test @ command line

Hey, I'm using Debian 7.3 and a normal LAMP stack. Just installed Debian per the Linode document, and when I try and send a test message from the command line, it fails with the following:

root@dallas:~# echo "you're an idiot." | mail -s Howdy test@theater11.com

2014-02-08 23:26:04 1WCMu4-0004bE-JN Cannot open main log file "/var/log/exim4/mainlog": Permission denied: euid=101 egid=103

2014-02-08 23:26:04 1WCMu4-0004bE-JN Failed to create spool file /var/spool/exim4/input//1WCMu4-0004bE-JN-D: Permission denied

2014-02-08 23:26:04 1WCMu4-0004bE-JN Cannot open main log file "/var/log/exim4/mainlog": Permission denied: euid=101 egid=103

exim: could not open panic log - aborting: see message(s) above

Can't send mail: sendmail process failed with error code 1

If anyone has any ideas that would rock. I tried changing the permissions on var/spool/exim/input to 777 but that didn't help.

Thanks anyone!

1 Reply

Figured it out searching around online. I had to enter the following for it to work:

chmod -R u+rw /var/log/exim4

chown -R Debian-exim /var/log/exim4

chmod -R u+rw /var/spool/exim4

chown -R Debian-exim /var/spool/exim4

chmod -R u+rw /var/spool/exim4/input

chown -R Debian-exim /var/spool/exim4/input

After entering all of that at the command line it worked.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct