LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Postfix, Dovecot, SquirrelMail Troubles?! (https://www.linuxquestions.org/questions/linux-software-2/postfix-dovecot-squirrelmail-troubles-343498/)

simonsez711 07-14-2005 01:03 AM

Postfix, Dovecot, SquirrelMail Troubles?!
 
I just configured Postfix and Dovecot and have been at this for a couple of days now. I'm able to log into my mail server just fine. Problem is, I'm unable to see my mail sitting in my Inbox. When I check /var/log/maillog I get this:

Code:

Jul 11 22:11:35 simonsez imap-login: Login: simonsez [::ffff:127.0.0.1]
Jul 11 22:11:35 simonsez imap(simonsez): open() failed with file /home/simonsez/Maildir/new/1120932625.Vfd00I4b8475M698431.simonsez.homeunix.com: Permission denied

For some reason, my user "simonsez" is unable to open the new mail that is sitting at /home/simonsez/Maildir/new/ due to permissions denied. The newmail sitting in my Inbox is labelled "Unknown Unknown date (no subject)". When I try to view it or delete it, I get this error message:

Code:

Notice: Trying to get property of non-object in /usr/share/squirrelmail/class/mime/Message.class.php on line 691

Notice: Trying to get property of non-object in /usr/share/squirrelmail/class/mime/Message.class.php on line 691

Notice: Trying to get property of non-object in /usr/share/squirrelmail/class/mime/Message.class.php on line 692

Notice: Trying to get property of non-object in /usr/share/squirrelmail/class/mime/Message.class.php on line 692

Notice: Trying to get property of non-object in /usr/share/squirrelmail/class/mime/Message.class.php on line 693

What do I need to configure to make this work?

trickykid 07-14-2005 05:55 PM

What's the permissions of these new mail?

simonsez711 07-14-2005 07:04 PM

Quote:

Originally posted by trickykid
What's the permissions of these new mail?
Thanks for the reply. The actual messages are chmoded at 700. The folder "new" is 700. And the folder Maildir is chmoded 700.

simonsez711 07-15-2005 12:51 PM

Postfix, Dovecot, SquirrelMail Troubles?!
 
I just configured Postfix and Dovecot and have been at this for a couple of days now. I'm able to log into my mail server just fine. Problem is, I'm unable to see my mail sitting in my Inbox. When I check /var/log/maillog I get this:

Code:

Jul 11 22:11:35 simonsez imap-login: Login: simonsez [::ffff:127.0.0.1]
Jul 11 22:11:35 simonsez imap(simonsez): open() failed with file /home/simonsez/Maildir/new/1120932625.Vfd00I4b8475M698431.simonsez.homeunix.c om: Permission denied

For some reason, my user "simonsez" is unable to open the new mail that is sitting at /home/simonsez/Maildir/new/ due to permissions denied. The newmail sitting in my Inbox is labelled "Unknown Unknown date (no subject)". When I try to view it or delete it, I get this error message:

Code:

Notice: Trying to get property of non-object in /usr/share/squirrelmail/class/mime/Message.class.php on line 691

Notice: Trying to get property of non-object in /usr/share/squirrelmail/class/mime/Message.class.php on line 691

Notice: Trying to get property of non-object in /usr/share/squirrelmail/class/mime/Message.class.php on line 692

Notice: Trying to get property of non-object in /usr/share/squirrelmail/class/mime/Message.class.php on line 692

Notice: Trying to get property of non-object in /usr/share/squirrelmail/class/mime/Message.class.php on line 693

What do I need to configure to make this work?

jtshaw 07-20-2005 10:19 AM

Merged your two threads so people can see what has been explored so far....

Red Sparrow 07-20-2005 12:30 PM

Who is the owner and group of the mail message and who is the owner and group of /home/simonsez/Maildir/new/? How do you authenticate with dovecot (what are the settings for auth_userdb and auth_passdb in dovecot.conf)?

(- Steve -)

simonsez711 07-20-2005 12:43 PM

The owner of mail is simonsez.
auth_userdb = passwd
auth_passdb = pam

simonsez711 07-20-2005 12:47 PM

It's odd....I can see my mail when I use Evolution Mail but it's only when I use SquirrelMail that I have this problem.

Red Sparrow 07-20-2005 01:25 PM

Just to clarify. Do you get the "permission denied" error when you connect with Evolution or just when you connect with Squirrelmail? It seems like this is a Squirrelmail problem.

(- Steve -)

simonsez711 07-20-2005 01:30 PM

Just with squirrelmail.

rioguia 07-22-2005 12:11 PM

Is SE Linux enabled?
 
To see if SE linux is enabled on your machine, su root and type: /usr/sbin/sestatus. If you find that SE Linux is enabled, temporarily
disable it. You can temporarily turn it off by typing setenforce 0 (and type
setenforce 1 to temporarily restore enforcing mode after you have concluded your test).

IF SE Linux is the issue, you may want to try:

Step 1. vi /etc/selinux/targeted/booleans

Step 2. insert: httpd_can_network_connect=1

[EDITED]
Step 3. reboot

setsebool -P httpd_can_network_connect=1 and reboot should also work

simonsez711 07-22-2005 01:23 PM

Re: Is SE Linux enabled?
 
Quote:

Originally posted by rioguia
To see if SE linux is enabled on your machine, su root and type: /usr/sbin/sestatus. If you find that SE Linux is enabled, temporarily disable it. You can temporarily turn it off by typing setenforce 0 (and type setenforce 1 to temporarily restore enforcing mode after you have concluded your test).

IF SE Linux is the issue, you may want to try:

Step 1. vi /etc/selinux/targeted/booleans

Step 2. insert: httpd_can_network_connect=1

Step 3. cd /etc/selinux/targeted/src/policy/

Step 4. make reload


OMG, I did what you posted and now my machine doesn't load right. It gets stuck at this on startup:

Code:

                Welcome to Fedora Core
                Press 'I' to enter interactive startup
Starting udev: MAKEDEV: mkdir: File exists
matchpathcon(/dev/nvidia0) failed Permission denied
matchpathcon(/dev/nvidiact1) failed Permission denied
                                                              [OK]
Initializing hardware..._


help!!!

simonsez711 07-22-2005 01:45 PM

OK....I used FC4 disk with linux rescue mode and took out what you posted and now it reboots fine. What happened there? I'd like to know why it hangs with the settings you provided.

rioguia 07-22-2005 02:25 PM

what was the result of /usr/sbin/sestatus ?
 
what was the result of /usr/sbin/sestatus ?

I did this on FC3 and it fixed my similar problem. it comes from:

https://bugzilla.redhat.com/bugzilla....cgi?id=158181

You could also try setsebool -P httpd_can_network_connect=1 and see if that works.


simonsez711 07-22-2005 02:32 PM

I just disabled SELinux and now I can use my Squirrelmail correctly.


All times are GMT -5. The time now is 12:01 PM.