#1  
Old 10th December 2009, 12:14
momfer momfer is offline
HowtoForge Supporter
 
Join Date: Sep 2009
Location: Zwolle, the Netherlands
Posts: 11
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via MSN to momfer Send a message via Skype™ to momfer
Default Mailserver not fully functional

So we still have a problem with the mail functions on ISPConfig 3 on openSuSE 11.2 X86_64

the scripts create the dirs in /var/vmail/mailfilters correctly (in our opinion)

/srv/maildirs created , based on another thread in this form
drwxr-xr-x 2 vmail vmail 4096 Dec 1 15:00 maildirs


the logs:

mail queue
Code:
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
482BE55B5 1139 Thu Dec 10 13:20:35 wwwrun@server2.simourix.nl
(temporary failure. Command output: /usr/bin/maildrop: Cannot set my user or group id.)
info2@itsincontrol.nl

Code:
Dec 10 13:20:01 server2 postfix/smtpd[13910]: warning: connect to private/tlsmgr: No such file or directory
Dec 10 13:20:02 server2 postfix/smtpd[13910]: warning: connect to private/tlsmgr: No such file or directory
Dec 10 13:20:02 server2 postfix/smtpd[13910]: warning: problem talking to server private/tlsmgr: No such file or directory
Dec 10 13:20:02 server2 postfix/smtpd[13910]: warning: no entropy for TLS key generation: disabling TLS support
Reply With Quote
Sponsored Links
  #2  
Old 10th December 2009, 13:32
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,461
Thanks: 813
Thanked 5,240 Times in 4,108 Posts
Default

The directory /srv/maildirs are not a valid ispconfig mail directory. The home directory of the vmail user has to be /var/vmail. Please check the settings in /etc/passwd. I guess that you or any software you installed before has created a vmail user in your setup manually before you installed ispond´fig which messed up the mail setup in your system.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 10th December 2009, 13:45
momfer momfer is offline
HowtoForge Supporter
 
Join Date: Sep 2009
Location: Zwolle, the Netherlands
Posts: 11
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via MSN to momfer Send a message via Skype™ to momfer
Default

Hi Till,

Thank you for the input.

As stated, WE created /srv/maildirs by hand (trying to get the stuff working) so no harm done there!

The scripts from ISPconfig create some stuff in /var/vmail:
Code:
server2:/var/vmail # ls -al
total 16
drwxr-xr-x  3 root  root  4096 Nov 30 17:08 .
drwxr-xr-x 16 root  root  4096 Nov 30 17:08 ..
-rw-------  1 vmail vmail 1382 Nov 30 17:08 .mailfilter
drwxr-xr-x  3 root  root  4096 Dec 10 13:10 mailfilters
and in /var/vmail/mailfilters:
Code:
server2:/var/vmail/mailfilters # ls -al
total 12
drwxr-xr-x 3 root  root 4096 Dec 10 13:10 .
drwxr-xr-x 3 root  root 4096 Nov 30 17:08 ..
drwxrwx--- 3 vmail root 4096 Dec 10 13:12 mytestdomain.nl
No mail found in either of these directories.

Appreciate any thoughts on this
Reply With Quote
  #4  
Old 10th December 2009, 14:14
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,461
Thanks: 813
Thanked 5,240 Times in 4,108 Posts
Default

The mail directories are missing. The mailfilter directories have to be empty and they do not contain mails, they are just for additional filter rules.

Post the output of:

grep vmail /etc/passwd

and the content of /var/cvmail/.mailfilter

and make sure that you have not edited the mail path in the ispconfig server settings! The maildir path has to be: /var/vmail/[domain]/[localpart]
and the homedir path has to be: /var/vmail

and undo all manual chnges that you did like creating /srv/maildirs.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 10th December 2009, 14:27
momfer momfer is offline
HowtoForge Supporter
 
Join Date: Sep 2009
Location: Zwolle, the Netherlands
Posts: 11
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via MSN to momfer Send a message via Skype™ to momfer
Default

passwd
Code:
server2:/ # grep vmail /etc/passwd
vmail:x:303:303:maildirs chef:/srv/maildirs:/bin/false
/var/vmail/.mailfilter
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`

#
# 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
  }
}
checked Maildir Path: /var/vmail/[domain]/[localpart]

checked Homedir Path: /var/vmail

I suppose the setting in /etc/passwd is trouble that made us create the /srv/maildirs directory in the first place.

Thanks again!
Reply With Quote
  #6  
Old 10th December 2009, 14:31
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,461
Thanks: 813
Thanked 5,240 Times in 4,108 Posts
Default

The line in /etc/passwd is not from ispconfig. As I guessed in my last post, it was created by another software or person before ispconfig was installed and is not compatible with ispconfig.

The vmail line must look like this:

vmail:x:5000:5000::/home/vmail:/bin/sh

Please correct this and then run:

chown -R vmail:vmail /var/vmail

and then recreate all mail domains and users.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
matrixn (22nd December 2009)
  #7  
Old 10th December 2009, 14:34
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,461
Thanks: 813
Thanked 5,240 Times in 4,108 Posts
Default

And the vmail user uid and gid have to match the uid and gid from the ispconfig server settings.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 10th December 2009, 14:47
momfer momfer is offline
HowtoForge Supporter
 
Join Date: Sep 2009
Location: Zwolle, the Netherlands
Posts: 11
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via MSN to momfer Send a message via Skype™ to momfer
Default

Just to be absolutely shure:

Should it be /home/vmail (as stated) or /var/vmail (my best guess) in the passwd file?
Reply With Quote
  #9  
Old 10th December 2009, 14:50
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,461
Thanks: 813
Thanked 5,240 Times in 4,108 Posts
 
Default

You are right. Should be /var/vmail for all currenmt versions, I copied the line from a old install and the path has been changed since then to /var/vmail
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following 2 Users Say Thank You to till For This Useful Post:
matrixn (22nd December 2009), momfer (10th December 2009)
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
"Relay access denied" when I relay emails from a local mailserver to the main one voltron81 Server Operation 4 8th December 2009 11:31
ISPConfig for a local mailserver, connected with the ISPConfig main mailserver voltron81 Installation/Configuration 12 17th November 2009 13:54
Virtual users... Ubuntu 8.04 spaceuser HOWTO-Related Questions 12 19th June 2008 08:04
Mailserver 554 Permanent Problems Message asyadiqin Server Operation 7 15th November 2007 15:09
Cannot receive emails : DSN: User Unknown shiidii Installation/Configuration 24 22nd September 2006 18:05


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


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