dovecot not sending emails

alex905

Verified User
Joined
Feb 5, 2006
Messages
45
hi i installed dovcot about a year ago and now its not working well. :)


Task 'admin@*****.info - Sending' reported error (0x800CCC67) : ' The server responded: 421 Unexpected failure, please try later'

this is form outlook

Service not available, closing channel
Server replied: 421 Unexpected failure, please try later

this is from squirel mail.

i tried turneing off iptables and resterting the service and the server.

u get these errors in the exim log

Code:
2007-01-26 01:03:20 1HAFUr-0002k5-4J Failed to create spool file /var/spool/exim/input//1HAFUr-0002k5-4J-D: Permission denied

and this is a snipet of my sys maillog

Code:
Jan 26 00:17:17 server spamd[2773]: prefork: select returned error on server filehandle:  
Jan 26 00:42:44 server spamd[8713]: prefork: sysread(7) failed after 300 secs at /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/SpamdForkScaling.pm line 561. 
Jan 26 00:44:26 server spamd[8714]: prefork: sysread(8) failed after 300 secs at /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/SpamdForkScaling.pm line 561. 
Jan 26 00:44:49 server spamd[2773]: Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/SpamdForkScaling.pm line 269. 
Jan 26 00:49:23 server spamd[2773]: prefork: select returned error on server filehandle:  
Jan 26 00:55:35 server spamd[2773]: prefork: child states: II 
Jan 26 01:00:12 server spamd[2773]: prefork: child states: II 
Jan 26 01:01:23 server spamd[2773]: prefork: cannot ping 8714, file handle not defined, child likely to still be processing SIGCHLD handler after killing itself 
Jan 26 01:01:37 server spamd[2773]: prefork: killing failed child 8714 fd=undefined at /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/SpamdForkScaling.pm line 137. 
Jan 26 01:04:00 server spamd[2773]: spamd: handled cleanup of child pid 8714 due to SIGCHLD 
Jan 26 01:23:40 server spamd[2773]: prefork: killed child 8714 
Jan 26 01:50:08 server spamd[2773]: prefork: cannot ping 8713, file handle not defined, child likely to still be processing SIGCHLD handler after killing itself 
Jan 26 02:26:50 server spamd[2773]: prefork: killing failed child 8713 fd=undefined at /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/SpamdForkScaling.pm line 137. 
Jan 26 03:47:40 server spamd[2773]: spamd: handled cleanup of child pid 8713 due to SIGCHLD 
Jan 26 04:59:18 server spamd[2773]: prefork: killed child 8713 
Jan 26 06:48:42 server spamd[2773]: spamd: server successfully spawned child process, pid 12403 
Jan 26 09:30:53 server spamd[2773]: spamd: fork: Cannot allocate memory at /usr/bin/spamd line 834. 
Jan 26 09:31:18 server spamd[12403]: prefork: sysread(7) failed after 300 secs at /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/SpamdForkScaling.pm line 561. 
Jan 26 14:04:38 server dovecot[2592]: Dovecot v1.0.rc15 starting up


i have no idea how to fix this.
 
Code:
Jan 26 14:04:38 server dovecot[2592]: Dovecot v1.0.rc15 starting up

i think this is that latest i will run the update script and see.

i have updated exim and dovcot although i think they were the latest versions and i still ahve the problem.
 
Hey,

Code:
Jan 26 14:04:38 server dovecot[2592]: Dovecot v1.0.rc15 starting up

Dovecot is up to v1.0.rc19 last time I looked.

BTW: It's Exim that sends the mail, not Dovecot...

David
 
now im getting

Code:
Connection refused
Server replied: 111 Can't open SMTP stream.

from squirel mail

and


Code:
Task 'admin@*****' - Sending' reported error (0x80042109) : 'Outlook is unable to connect to your outgoing (SMTP) e-mail server. If you continue to receive this message, contact your server administrator or Internet service provider (ISP).'

from outlook
 
i updtaed exim aswell. what info would you like to know as im not sure what to give
 
Hey,

It's saying it's a permission problem so...

What does:

# ls -l /var/spool

and

# ls -l /var/spool/exim

show?

And just for grins:

# df

David
 
Code:
drwxr-xr-x  2 root   root   4096 Jan 31  2006 anacron
drwx------  3 daemon daemon 4096 Apr 26  2006 at
drwx------  2 root   root   4096 Jan 27 16:08 cron
drwx--x---  3 root   sys    4096 Aug 13 11:16 cups
drwxr-xr-x  6 mail   mail   4096 Dec 30 01:08 exim
drwxr-xr-x  2 root   root   4096 Feb 22  2005 lpd
drwxrwxr-x  2 root   mail   4096 Jan 17 17:08 mail
drwxr-xr-x  2 rpm    rpm    4096 Aug 12 23:01 repackage
drwxr-xr-x  2 root   root   4096 Dec 30 18:23 up2date
drwxrwxrwt  2 root   root   4096 Feb 21  2005 vbox
drwxrwxrwt  9 mail   mail   4096 Apr 24  2006 virtual
Code:
drwxr-x---  2 mail mail   4096 Mar  7  2006 db
drwxr-xr-x  2 root root   4096 Dec 30 01:08 input
drwxr-x---  2 mail mail 352256 Dec 30 00:58 msglog
drwxr-x---  2 mail mail   4096 Dec 30 00:56 scan

just for grins

Code:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                     114307696  58902804  49598404  55% /
/dev/hda1               101086     22521     73346  24% /boot
none                    225460         0    225460   0% /dev/shm
 
drwxr-x--- 2 mail mail 4096 Mar 7 2006 db
drwxr-xr-x 2 root root 4096 Dec 30 01:08 input
drwxr-x--- 2 mail mail 352256 Dec 30 00:58 msglog
drwxr-x--- 2 mail mail 4096 Dec 30 00:56 scan[/CODE]

Your input directory looks like the problem. Only root will be able to write files to that directory and exim runs as mail not root. Try doing this:
Code:
chown mail /var/spool/exim/input
chgrp mail /var/spool/exim/input
chmod 710 /var/spool/exim/input
 
after i updated exim it wont start when i try and install with the update.script thing i get

Code:
make[1]: Entering directory `/usr/local/directadmin/customapache/update/exim-4.66/build-Linux-athlon'
make[2]: Entering directory `/usr/local/directadmin/customapache/update/exim-4.66/build-Linux-athlon/pcre'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/directadmin/customapache/update/exim-4.66/build-Linux-athlon/pcre'

gcc exim_dbmbuild.c
In file included from exim.h:433,
                 from exim_dbmbuild.c:33:
dbstuff.h:103:16: db.h: No such file or directory
In file included from exim.h:433,
                 from exim_dbmbuild.c:33:
dbstuff.h:529: error: syntax error before "DB"
dbstuff.h:529: warning: no semicolon at end of struct or union
dbstuff.h:531: error: syntax error before '}' token
dbstuff.h:531: warning: data definition has no type or storage class
In file included from exim.h:437,
                 from exim_dbmbuild.c:33:
dbfunctions.h:13: error: syntax error before '*' token
dbfunctions.h:14: error: syntax error before '*' token
dbfunctions.h:15: error: syntax error before '*' token
dbfunctions.h:15: error: syntax error before "open_db"
dbfunctions.h:15: warning: data definition has no type or storage class
dbfunctions.h:16: error: syntax error before '*' token
dbfunctions.h:17: error: syntax error before '*' token
dbfunctions.h:18: error: syntax error before '*' token
exim_dbmbuild.c: In function `main':
exim_dbmbuild.c:150: error: `DB' undeclared (first use in this function)
exim_dbmbuild.c:150: error: (Each undeclared identifier is reported only once
exim_dbmbuild.c:150: error: for each function it appears in.)
exim_dbmbuild.c:150: error: `d' undeclared (first use in this function)
exim_dbmbuild.c:151: error: `DBT' undeclared (first use in this function)
exim_dbmbuild.c:151: error: syntax error before "key"
exim_dbmbuild.c:213: error: `DB_HASH' undeclared (first use in this function)
exim_dbmbuild.c:295: error: `content' undeclared (first use in this function)
exim_dbmbuild.c:298: error: `key' undeclared (first use in this function)
exim_dbmbuild.c:298: error: `R_NOOVERWRITE' undeclared (first use in this function)
make[1]: *** [exim_dbmbuild.o] Error 1
make[1]: Leaving directory `/usr/local/directadmin/customapache/update/exim-4.66/build-Linux-athlon'
make: *** [go] Error 2

Installation directory is /usr/sbin


*** /usr/local/directadmin/customapache/update/exim-4.66/build-Linux-athlon/exim does not exist or is empty
*** Have you built Exim successfully?
*** Exim installation failed ***
make: *** [install] Error 1
cp: cannot stat `/usr/sbin/exim-4.66-1': No such file or directory
chmod: cannot access `/usr/sbin/exim': No such file or directory
Shutting down exim: /etc/init.d/exim: line 40: kill: (2781) - No such process

Starting exim: /etc/init.d/exim: line 30: /usr/sbin/exim: No such file or directory



Exim update done

i trid it maully but it dident want to know. and i dont know about any changes i have to make for directadmin.
 
Hey,

I believe you need the "db4-devel" package...

Try:

yum install db4-devel

Then you can try Wael's update script.

Don't forget Toms' post that shows you how to fix the permissions... You might do that first...

David
 
Back
Top