[vexim] Roundcube+vexim+debian

Andreas westvik andreas.westvik at ktv.no
Sun Nov 30 06:43:47 PST 2008


Odhiambo Washington skrev:
> On Sun, Nov 30, 2008 at 3:59 PM, Andreas westvik 
> <andreas.westvik at ktv.no <mailto:andreas.westvik at ktv.no>> wrote:
>
>     Odhiambo Washington skrev:
>>     On Sun, Nov 30, 2008 at 3:27 PM, Andreas westvik
>>     <andreas.westvik at ktv.no <mailto:andreas.westvik at ktv.no>> wrote:
>>
>>         Odhiambo Washington skrev:
>>         >
>>         >
>>         > On Sun, Nov 30, 2008 at 2:48 PM, Andreas westvik
>>         > <andreas.westvik at ktv.no <mailto:andreas.westvik at ktv.no>
>>         <mailto:andreas.westvik at ktv.no
>>         <mailto:andreas.westvik at ktv.no>>> wrote:
>>         >
>>         >     So I just tried to login with the postmaster user, and
>>         that worked
>>         >     great. And I noticed that the postmaster has gid/uid 8
>>         and the other
>>         >     user has gid/uid 90. And I know I'm the one who edited
>>         that. So I
>>         >     changed it back to 8 to the normal user, but it still
>>         does not
>>         >     work. So...?
>>         >
>>         >
>>         > chown -R the-correct-uid:the-correct-gid
>>         /usr/local/mail/server.net/ <http://server.net/>
>>         > <http://server.net/user>
>>         >
>>         > should fix that. Looks rather simple.
>>         >
>>         >
>>         Yeah, I was just doing this. And I got it working to a degree. If
>>         mail:mail owns /usr/local/mail/domain, roundcube work, but
>>         local mail
>>         clients (Mail.app, thunderbird, outlook etc) dont work. If
>>         vexim:mail
>>         owns /usr/local/mail/domain local clients work, but NOT
>>         roundcube. This
>>         has me highly confused!
>>
>>
>>     Well, you add a lot of confusion to this. You appear to be trying
>>     to address a POP3 problem in the realm of an SMTP problem. If
>>     Exim delivers mail with the right permissions and the POP3 server
>>     is configured to run as the "appropriate user" (with the
>>     necessary permissions) things should just work.
>>     Let us have the log extracts for instances where Mail.app,
>>     Outlook, etc don't work, because the problem seems to be with the
>>     permissions of the POP3 server you are running.
>>
>>
>>     -- 
>>     Best regards,
>>     Odhiambo WASHINGTON,
>>     Nairobi,KE
>>     +254733744121/+254722743223
>>     _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>>     "Okay guys. This is Kenya. You pay taxes because you feel
>>     philanthropic, unlike our MPs!"
>>                         -- Kenneth Marende, Speaker, 10th Parilament.
>>     ------------------------------------------------------------------------
>>     _______________________________________________ Vexim mailing
>>     list Vexim at silverwraith.com <mailto:Vexim at silverwraith.com>
>>     http://silverwraith.com/mailman/listinfo/vexim
>     This is what I got from the logs im tailing:
>
>     ==> mail.log <==
>     Nov 30 13:53:12 server couriertcpd: Connection,
>     ip=[::ffff:192.168.0.2 <http://192.168.0.2>]
>     Nov 30 13:53:12 server couriertcpd: LOGIN: ip=[::ffff:192.168.0.2
>     <http://192.168.0.2>], command=USER
>     Nov 30 13:53:12 server couriertcpd: LOGIN: ip=[::ffff:192.168.0.2
>     <http://192.168.0.2>], command=PASS
>     Nov 30 13:53:12 server couriertcpd: LOGIN: ip=[::ffff:192.168.0.2
>     <http://192.168.0.2>], username=user at server.net
>     <mailto:username=user at server.net>
>     Nov 30 13:53:12 server couriertcpd: LOGIN: ip=[::ffff:192.168.0.2
>     <http://192.168.0.2>], password=password
>     Nov 30 13:53:12 server couriertcpd: user at server.net:
>     <mailto:user at server.net:> chdir(/usr/local/mail/server.net/user
>     <http://server.net/user>) failed!!
>     Nov 30 13:53:12 server couriertcpd: error: Permission denied
>     Nov 30 13:53:12 server couriertcpd: LOGIN FAILED,
>     user=user at server.net <mailto:user=user at server.net>,
>     ip=[::ffff:192.168.0.2 <http://192.168.0.2>]
>     Nov 30 13:53:12 server couriertcpd: authentication error:
>     Permission denied
>
>     ==> mail.info <http://mail.info> <==
>     Nov 30 13:53:12 server couriertcpd: user at server.net:
>     <mailto:user at server.net:> chdir(/usr/local/mail/server.net/user
>     <http://server.net/user>) failed!!
>     Nov 30 13:53:12 server couriertcpd: error: Permission denied
>     Nov 30 13:53:12 server couriertcpd: LOGIN FAILED,
>     user=user at server.net <mailto:user=user at server.net>,
>     ip=[::ffff:192.168.0.2 <http://192.168.0.2>]
>     Nov 30 13:53:12 server couriertcpd: authentication error:
>     Permission denied
>
>     And im only tailing these logs: tail -f syslog mail.err mail.info
>     <http://mail.info> mail.log mail.warn mysql.log roundcube/errors
>     roundcube/console user.log apache2/access.log apache2/error.log
>     exim4/mainlog exim4/paniclog exim4/rejectlog
>
>
> Can you please try:
>
> chmod -R 1777 /usr/local/mail/server.net <http://server.net>
>
> and see if that helps?
>
> If not, then just do chmod -R 1777 /usr/local/mail
>
>
> Are you using mbox or Maildir (not sure if you know what that is, anyway)?
>
>
>
> -- 
> Best regards,
> Odhiambo WASHINGTON,
> Nairobi,KE
> +254733744121/+254722743223
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> "Okay guys. This is Kenya. You pay taxes because you feel 
> philanthropic, unlike our MPs!"
>                     -- Kenneth Marende, Speaker, 10th Parilament.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Vexim mailing list
> Vexim at silverwraith.com
> http://silverwraith.com/mailman/listinfo/vexim
I have maildirs. A little update: Once a upon time a changed servers, 
and then I backed up the db. Then the db had gid/uid of 90. And when I 
imported the db they were still at 90. But when I installed vexim then I 
used uid/gid 8. (Wich is the user mail). So I updated all users to use 
uid/gid 8 today. And I chowned /usr/local/mail/* to mail:mail. And now 
pop/imap does not work at all! I can login to roundcube, but I cannot 
send/recieve any mail. The local clients prompts for passwd.

So in other words, I got the whole setup kinda screwed. But hopefully 
this will eventually sort things out.
And no, chmod -R 1777 * did not help at all.  I will provide some logs 
in a few minutes. But I have to take the dog out for a run:)

-Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://silverwraith.com/pipermail/vexim/attachments/20081130/66e33668/attachment.htm 


More information about the Vexim mailing list