PHPLIST 2.10.19 not sending emails with exim

Once you've installed phpList Version 2... ask questions here!
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation. This is for Version 2 of phpList (the orange one).

PHPLIST 2.10.19 not sending emails with exim

Postby hillel » 8:10pm, Mon 06 May, 2013

Hi,

We are using Exim 4.77, PHPLIST 2.10.19, CentOS release 6.3 (Final)

We want to use SMTP (using Exim) so in the config.php we have set:

define("PHPMAILER",1);
define("PHPMAILERHOST",'localhost');

and we commented out smtp authentication.

From the /var/log/httpd/error_log we get the following error every time we send an email via Phplist:

2013-05-01 16:14:21 1UXXnZ-0005TK-IF Failed to create spool file /var/spool/exim/input//1UXXnZ-0005TK-IF-D: Permission denied
2013-05-01 16:14:21 1UXXnZ-0005TK-IF Failed to create spool file /var/spool/exim/input//1UXXnZ-0005TK-IF-D: Permission denied
2013-05-01 16:14:21 1UXXnZ-0005TK-IF Failed to create spool file /var/spool/exim/input//1UXXnZ-0005TK-IF-D: Permission denied
exim: could not open panic log - aborting: see messsage(s) above

We followed https://freevps.us/thread-4203.html and checked that exim is running correctly with the correct permissions.

ls -l /usr/sbin/exim
-rwsr-xr-x. 1 root root 1153864 Oct 29 2011 /usr/sbin/exim

After running chmod -R 777 /var/spool/exim the error is now not showing in /var/log/exim/main.log but its still showing in /var/log/httpd/error_log

ls -lsa /var/spool/exim
4 drwxrwxrwx. 5 exim exim 4096 Apr 5 16:28 .
4 drwxr-xr-x. 9 root root 4096 Apr 5 16:28 ..
4 drwxrwxrwx. 2 exim exim 4096 Apr 30 21:41 db
4 drwxrwxrwx. 2 exim exim 4096 May 1 17:23 input
4 drwxrwxrwx. 2 exim exim 4096 May 1 17:23 msglog

If we type telnet localhost 25
we can send an email manually via mail commands, which shows exim is working as an SMTP server.

When we try to send an email via phplist and click process queue - we always get the error message: 1 emails failed (will retry later) Finished this run

Any help appreciated
hillel
phpList newbie
 
Posts: 4
Joined: 8:01pm, Mon 06 May, 2013

Re: PHPLIST 2.10.19 not sending emails with exim

Postby duncanc » 6:58am, Tue 07 May, 2013

You shouldn't need to use SMTP. Create a symlink from exim to sendmail. See point 20 here http://www.exim.org/exim-html-current/doc/html/spec_html/ch-building_and_installing_exim.html

PHP should then send through exim, and the default phplist setting should work
Code: Select all
define("PHPMAILERHOST",'');
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: PHPLIST 2.10.19 not sending emails with exim

Postby hillel » 8:58pm, Tue 07 May, 2013

Hi,

Thanks for your advice. Which I followed see below:
rm /usr/sbin/sendmail
ln -s /usr/sbin/exim /usr/sbin/sendmail
ls -la /usr/sbin/sendmail
lrwxrwxrwx. 1 root root 14 May 7 22:08 /usr/sbin/sendmail -> /usr/sbin/exim

ls -l /usr/sbin/exim
-rwsr-xr-x. 1 root root 1153864 Oct 29 2011 /usr/sbin/exim

ls -la /var/spool/exim/
drwxrwxrwx. 5 exim exim 4096 Apr 5 16:28 .
drwxr-xr-x. 9 root root 4096 Apr 5 16:28 ..
drwxrwxrwx. 2 exim exim 4096 Apr 30 21:41 db
drwxrwxrwx. 2 exim exim 4096 May 1 17:23 input
drwxrwxrwx. 2 exim exim 4096 May 1 17:23 msglog

In config.php
define("PHPMAILER",1);
define("PHPMAILERHOST",' ');

I still get from PHPList:
1 emails failed (will retry later)

From /var/log/exim/main.log
2013-05-07 22:48:50 1UZooc-0000EI-CH Failed to create spool file /var/spool/exim/input//1UZooc-0000EI-CH-D: Permission denied

From /var/log/httpd/error_log
2013-05-07 22:48:50 1UZooc-0000EI-CH Failed to create spool file /var/spool/exim/input//1UZooc-0000EI-CH-D: Permission denied
2013-05-07 22:48:50 1UZooc-0000EI-CH Failed to create spool file /var/spool/exim/input//1UZooc-0000EI-CH-D: Permission denied
2013-05-07 22:48:50 1UZooc-0000EI-CH Failed to create spool file /var/spool/exim/input//1UZooc-0000EI-CH-D: Permission denied
exim: could not open panic log - aborting: see message(s) above

Any further help appreciated.
hillel
phpList newbie
 
Posts: 4
Joined: 8:01pm, Mon 06 May, 2013


Return to Question & Problems - after installing

Who is online

Users browsing this forum: No registered users and 5 guests

cron