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 28th October 2009, 15:53
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default Maildrop error: Unable to open filter file, errno=13

Hi guys,
Is 15 minutes that my email server, realized with ISPConfig and roundcube, is not working properly.

In the mail.log file I can see:
Code:
 maildrop[4182]: Unable to open filter file, errno=13.
...
status=deferred (temporary failure. Command output: /usr/bin/maildrop: Unable to open filter file, errno=13.
Do you know what is going on?
I tried to reboot the server and also just postfix, but nothing happen...
Thanks

Michele
Reply With Quote
Sponsored Links
  #2  
Old 28th October 2009, 16:04
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,509
Thanks: 815
Thanked 5,268 Times in 4,130 Posts
Default

Please check if there is a .mailfilter file in /var/vmail or /home/vmail depending on where your emails are stored.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 28th October 2009, 16:20
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

Thanks Till for your answer.
I've a master-master replication of dbispconfig (just the tables regarding the email) and /var/vmail.
It was working fine.
Now from the main server I've this problem, but if I switch off it, the other server is working without problem.

In both servers I've .mailfilter, the same file in both and with this permission:
-rw------- 1 root root 1710 2009-10-28 10:26 .mailfilter

The .mailfilter anyway is this one:
Code:
#
# Import variables
#

LOGNAME=tolower("$LOGNAME")
EXTENSION="$1"
RECIPIENT=tolower("$2")
USER=tolower("$3")
HOST=tolower("$4")
SENDER="$5"
DEFAULT="/var/vmail/$HOST/$USER/."

# Workaround for broken tolower function in some current fedora releases

if(!$USER)
{
  USER=$3
}
if(!$HOST)
{
  HOST=$4
}

if ( "$EXTENSION" ne "" )
{
  DELIMITER="+"
}

if (!$SENDER)
{
  SENDER = "<>"
}

#
# Autocreate maildir, if not existant
#

`test -e /var/vmail/$HOST`
if ( $RETURNCODE != 0 )
{
  `mkdir /var/vmail/$HOST`
}

`test -e /var/vmail/$HOST/$USER`
if ( $RETURNCODE != 0 )
{
  `maildirmake /var/vmail/$HOST/$USER`
  `chmod -R 0700 /var/vmail/$HOST`
}

# Check if the user has a autoresponder enabled

`test -f /var/vmail/mailfilters/$HOST/$USER/.autoresponder`
if ( $RETURNCODE == 0 )
{
  include "/var/vmail/mailfilters/$HOST/$USER/.autoresponder"
}
# Create a mailsize file
`echo $SIZE >> /var/vmail/$HOST/$USER/ispconfig_mailsize`


# Move SPAM to junk
`test -e /var/vmail/$HOST/$USER/.Junk`
if ( $RETURNCODE != 0 )
{
  `maildirmake -f Junk /var/vmail/$HOST/$USER`
  `chmod -R 0700 /var/vmail/$HOST/$USER/.Junk`
  `echo INBOX.Junk >> /var/vmail/$HOST/$USER/courierimapsubscribed`
}
if (/^Subject:.*\*\*\*SPAM\*\*\*/:h)
{
to /var/vmail/$HOST/$USER/.Junk/
}




#
# Test if the user has his own maildrop include,
# if not available, check if $DEFAULT is set
# (newer maildrop get's that from the DB and updates
# it) and deliver or fail temporarily if not available
#

`test -f /var/vmail/mailfilters/$HOST/$USER/.mailfilter`
if ( $RETURNCODE == 0 )
{
  include "/var/vmail/mailfilters/$HOST/$USER/.mailfilter"
}
else
{
  if ( "$DEFAULT" ne "" )
  {
    to "$DEFAULT"
  }
  else
  {
    EXITCODE=75
    exit
  }
}
Suggestions?

thanks
Michele
Reply With Quote
  #4  
Old 28th October 2009, 17:48
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

maybe is a stupid thing, but after taht I edited this file /var/www/ispconfig/mail/lib/lang/en_mail_user.lng I started to have problems.

But anyway I came back to the old file and I still have this problem...
Reply With Quote
  #5  
Old 28th October 2009, 18:08
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

I'm just realize that into the mail.log, once that I reboot the server, I can see this error:
Code:
spamd[2258]: dns: sendto() failed: Operation not permitted at /usr/share/perl5/Mail/SpamAssassin/DnsResolver.pm line 395.
Reply With Quote
  #6  
Old 29th October 2009, 09:01
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,509
Thanks: 815
Thanked 5,268 Times in 4,130 Posts
Default

Editing the .lng file is not related to your problems.

The spamd error is a different problem too.

Do you have the problem with all accounts or just one?

Please post the content of the postfix master.cf and the output of:

ls -la /var/vmail/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 29th October 2009, 10:45
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

Hi Till,
It's look like a problem for all my accounts.
The postfix of master.cf is:
Code:
#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd
#submission inet n       -       -       -       -       smtpd
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps     inet  n       -       -       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       -       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       -       -       -       smtp
        -o smtp_fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix  -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}


amavis unix - - - - 2 smtp
        -o smtp_data_done_timeout=1200
        -o smtp_send_xforward_command=yes

127.0.0.1:10025 inet n - - - - smtpd
        -o content_filter=
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o smtpd_restriction_classes=
        -o smtpd_client_restrictions=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks=127.0.0.0/8
        -o strict_rfc821_envelopes=yes
        -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
        -o smtpd_bind_address=127.0.0.1
And the output of ls -la /var/vmail/ is:
Code:
drwxr-xr-x 15 vmail vmail   4096 2009-10-28 16:28 .
drwxr-xr-x 15 root  root     150 2009-10-27 15:48 ..
-rw-r--r--  1 root  root     220 2009-10-27 17:37 .bash_logout
-rw-r--r--  1 vmail vmail   3116 2009-10-27 17:37 .bashrc
-rw-------  1 root  root    1710 2009-10-28 16:27 .mailfilter
drwxr-xr-x  3 root  root    4096 2009-10-28 14:06 mailfilters
-rw-r--r--  1 root  root     675 2009-10-27 17:37 .profile
drwx------  3 vmail vmail   4096 2009-10-28 14:54 domains
Reply With Quote
  #8  
Old 29th October 2009, 10:48
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

And the errors that I have when I reboot the server are:

Code:
Oct 29 09:27:43 srv3 spamd[2221]: logger: removing stderr method
Oct 29 09:27:44 srv3 spamd[2271]: dns: sendto() failed: Operation not permitted at /usr/share/perl5/Mail/SpamAssassin/DnsResolver.pm line 395.
Oct 29 09:27:46 srv3 authdaemond: modules="authmysql", daemons=5
Oct 29 09:27:46 srv3 authdaemond: Installing libauthmysql
Oct 29 09:27:46 srv3 authdaemond: Installation complete: authmysql
Oct 29 09:27:47 srv3 postfix/master[2944]: daemon started -- version 2.5.5, configuration /etc/postfix
Oct 29 09:27:48 srv3 postfix/qmgr[2961]: 259542528: from=<michele@xxxx.com>, size=1381, nrcpt=1 (queue active)
Oct 29 09:27:48 srv3 spamd[2271]: spamd: server started on port 783/tcp (running version 3.2.5)
Oct 29 09:27:48 srv3 spamd[2271]: spamd: server pid: 2271
Oct 29 09:27:48 srv3 spamd[2271]: spamd: server successfully spawned child process, pid 3014
Oct 29 09:27:48 srv3 spamd[2271]: spamd: server successfully spawned child process, pid 3015
Oct 29 09:27:48 srv3 spamd[2271]: prefork: child states: II
Oct 29 09:27:48 srv3 maildrop[2991]: Unable to open filter file, errno=13.
Thanks

Michele
Reply With Quote
  #9  
Old 29th October 2009, 10:48
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,509
Thanks: 815
Thanked 5,268 Times in 4,130 Posts
Default

Please run:

chown vmail:vmail /var/vmail/.mailfilter
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 29th October 2009, 11:07
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
 
Default

Thanks Till, now the emails are working.
Unfortunately I still have this error:
Code:
spamd[2263]: dns: sendto() failed: Operation not permitted at /usr/share/perl5/Mail/SpamAssassin/DnsResolver.pm line 395.
Any idea?

Anyway it's strange because it was working fine till yesterday morning and the other server (the replication) don't have this problem...

Thanks
Michele
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
All my mail is going to /var/mail/vmail _sluimers_ Installation/Configuration 21 10th January 2011 13:21
High on Lenny - Lvm Mount Problem Serverman Technical 1 23rd June 2009 16:26
libWand.so.10 error Taxick Installation/Configuration 8 3rd May 2009 01:27
Mail System doesnt work! crichton Installation/Configuration 3 17th September 2007 23:49
spamassasin/clamAV not working Daisy Installation/Configuration 32 15th February 2007 00:09


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


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