Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 6th May 2013, 17:34
AlexTentwelve AlexTentwelve is offline
Junior Member
 
Join Date: May 2013
Posts: 3
Thanks: 1
Thanked 1 Time in 1 Post
Default Swift Mailer's Swift_SendmailTransport fails

Hello!

I'm trying to get PHP to send email messages using Swift Mailer 3.0.0. This library can use three transport methods: SMTP, sendmail and PHP mail() function.

The sendmail methods fails in my PHP script, and I get this message in /var/log/mail.log:

Code:
May  6 16:47:13 ubuntu postfix/smtpd[6617]: fatal: open /etc/postfix/mysql-virtual_relaydomains.cf: Permission denied
Here are mysql-virtual_relaydomains.cf permissions:

Code:
-rw-r-----   1 root postfix   224 2009-12-11 15:26 mysql-virtual_relaydomains.cf
If I make mysql-virtual_relaydomains.cf readable by everyone, everything runs fine, but I don't know if it's a "clean" solution.

I'm also considering adding the website's user (webXX) to the postfix group, which would probably fix the problem as well.

Do you have any advice regarding this issue? What would be the best way to solve it? If it's possible, I would like to find a solution which doesn't require to make manual changes to the file permissions for every user needing it.

(Note: PHP runs using mod_fcgi and suexec.)

Thanks!
Reply With Quote
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ispconfig upgrade script from 3.0.4.6 to 3.0.5.2 fails the to upgrade webserver1 General 22 13th May 2013 13:13
Make server.php die when it fails Wader Feature Requests 0 7th April 2012 15:14
Mail forward fails. Kaj Installation/Configuration 13 29th May 2008 16:57
Installation of 2.2.15 fails at compiling clamav xrat Installation/Configuration 0 24th July 2007 22:49
Installation fails on Ubuntu 6.06 Jcorrea920 Installation/Configuration 2 23rd April 2007 20:14


All times are GMT +2. The time now is 21:15.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.