| View previous topic :: View next topic |
| Author |
Message |
tony
Joined: 11 Jun 2003 Posts: 4
|
Posted: Wed Jun 11, 2003 10:55 pm Post subject: can't deliver messages |
|
|
Hello,
I am having trouble with message delivery. My qmail log file says it cannot open filename, which is the user's mailbox.
if i chmod to 777 everything works fine, but this should not be the most secure way of doing things.
thanks
Tony |
|
| Back to top |
|
 |
haris Site Admin
Joined: 22 Aug 2002 Posts: 40
|
Posted: Thu Jun 12, 2003 10:07 am Post subject: |
|
|
Tony,
You do not need to set the permissions to 777. Under what user/group does your web server run? Assuming qmail writes to the mailbox as popuser/popuser and your web server is webuser/wgroup all you need to do is change the ownership of all the files under the data directory to webuser/popuser permissions.
Then change the file permissions under the same directory to readable and writable by the user and group, i.e. 660.
This will ensure that qmail can append a message to the mailbox, and you can also modify the mailbox from web.
Let me know if you have additional questions.
Haris |
|
| Back to top |
|
 |
tony
Joined: 11 Jun 2003 Posts: 4
|
Posted: Wed Jun 18, 2003 12:49 am Post subject: |
|
|
Haris, how do I set a different theme for the login page and the pages while reading email?
I would like to use a big logo with image for the login page and a smaller one for the rest of the web pages. If I modify the header file it will show in all pages right?
thanks
Tony |
|
| Back to top |
|
 |
haris Site Admin
Joined: 22 Aug 2002 Posts: 40
|
Posted: Wed Jun 18, 2003 3:58 am Post subject: |
|
|
Tony,
Instead of using the header.txt as an import in your login page (loginpage.txt) create an new file, call it headerlogin.txt and import that one. The new headerlogin.txt file can have the different theme that you want.
You do not have to import the same files in your templates, you can choose what you import. In that sense you can potentially make all pages look completely different.
Let me know if this does not make sense.
Thanks,
Haris Lekatsas |
|
| Back to top |
|
 |
wil
Joined: 20 Sep 2003 Posts: 2
|
Posted: Sat Sep 20, 2003 11:12 am Post subject: problem with permissions? |
|
|
I am trying to change mode to 660 as suggested in the whole data directory tree, however this messes up the directories as well (they are not executable any more).
Do we need a script to get this right? anybody know how to solve this?
wil |
|
| Back to top |
|
 |
haris Site Admin
Joined: 22 Aug 2002 Posts: 40
|
Posted: Sat Sep 20, 2003 11:16 am Post subject: |
|
|
Wil,
Assuming you are in the data directory the correct sequence is:
chmod -R ug+rw
chmod -R a+X
The capital X will ensure only directories are set to executable.
Thanks,
Haris |
|
| Back to top |
|
 |
wil
Joined: 20 Sep 2003 Posts: 2
|
Posted: Sat Sep 20, 2003 11:35 am Post subject: |
|
|
ok thanks for the quick reply!
wil |
|
| Back to top |
|
 |
|