Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd July 2012, 04:00
jbd123 jbd123 is offline
Junior Member
 
Join Date: Jul 2012
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
Default New install - Dovecot deliver -> Amavis (permission denied)

Hi there

I've just installed ISPConfig 3 on a system that had a mail service without a control panel managing mail (bunch of scripts that handled that, history etc).

Everything with install has gone very well, there was an issue with the uid:gid for vmail but I fixed that easily. Mail is being delivered & sent OK.

It's an Ubuntu 10.04 LTS setup. Postfix / Dovecot / SA and ClamAV. I followed the instructions for the perfect server setup but prefer Dovecot over Courier.

One problem, in the mail.err log I can see errors appearing relating to Amavis. I understand that Amavis sits between Postfix /Dovecot and various mail filters.

The error:
Jul 1 11:00:02 servername dovecot: deliver(amavis): mkdir(/var/vmail//amavis/Maildir/cur) failed: Permission denied (euid=113(amavis) egid=115(amavis) missing +w perm: /var/vmail/)

I can see why the permission errors are happening as /var/vmail is owned by vmail and it looks like the user trying to mkdir is amavis. From the look of the logs, the errors happen in multiples of 5 minute blocks to the second but not every 5 minutes.

My questions are:
1. Why is the user amavis trying to mkdir within /var/vmail
2. What's missing in the "/var/vmail//amavis" path - I'm assuming this should be /var/vmail/domain.name/mailbox/amavis/Maildir/cur ? - somewhere along the line the domain and mailbox is being lost.


Any help would be much appreciated. I'm not in the habit of creating +w permissions so I'd rather find a fix further upstream, espec since part of the path is missing.


Thanks!
Reply With Quote
Sponsored Links
  #2  
Old 2nd July 2012, 10:14
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,395
Thanks: 833
Thanked 5,492 Times in 4,323 Posts
Default

Seems as if dovecot deliver is running under a wrong username on your setup. Deliver ahs to be run under user vmail and not under user amavis.

Quote:
2. What's missing in the "/var/vmail//amavis" path - I'm assuming this should be /var/vmail/domain.name/mailbox/amavis/Maildir/cur ? - somewhere along the line the domain and mailbox is being lost.
Most likely your master.cf file is wrong and still contains some settings from your old setup. The dovecot deliver line has to be:

Code:
dovecot   unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop}
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 6th July 2012, 04:06
jbd123 jbd123 is offline
Junior Member
 
Join Date: Jul 2012
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

Hi Till

Thanks, I think the problem was a /etc/spamassassin/local.cf was only readable by root. When I changed this, amavis started behaving better.

Thanks again.

James
Reply With Quote
Reply

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
Permission Denied Christovampaynes Installation/Configuration 8 11th April 2012 15:31
link my domain to my server, impossible! 007007 Installation/Configuration 7 17th January 2012 13:59
Dovecot fails to deliver to all mail clients zwelabantu Server Operation 8 26th June 2009 12:17
Dovecot fails to deliver to all mail clients zwelabantu Installation/Configuration 3 19th June 2009 16:57
very slow domain setting loading Hellbound General 8 2nd January 2008 22:17


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


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