Posts Tagged ‘Qmail’

Cause and solution for Qmail sent error “Requested action aborted: error in processing Server replied: 451 qq temporary problem (#4.3.0)”

Friday, October 28th, 2011

One of the qmail servers I manage today has started returning strange errors in Squirrel webmail and via POP3/IMAP connections with Thunderbird.

What was rather strange is if the email doesn’t contain a link to a webpage or and attachment, e.g. mail consists of just plain text the mail was sent properly, if not however it failed to sent with an error message of:

Requested action aborted: error in processing Server replied: 451 qq temporary problem (#4.3.0)

After looking up in the logs and some quick search in Google, I come across some online threads reporting that the whole issues are caused by malfunction of the qmail-scanner.pl (script checking mail for viruses).

After a close examination on what is happening I found out /usr/sbin/clamd was not running at all?!
Then I remembered a bit earlier I applied some updates on the server with apt-get update && apt-get upgrade , some of the packages which were updated were exactly clamav-daemon and clamav-freshclam .
Hence, the reason for the error:

451 qq temporary problem (#4.3.0)

was pretty obvious qmail-scanner.pl which is using the clamd daemon to check incoming and outgoing mail for viruses failed to respond, so any mail which contained any content which needed to go through clamd for a check and returned back to qmail-scanner.pl did not make it and therefore qmail returned the weird error message.
Apparently for some reason apparently the earlier update of clamav-daemon failed to properly restart, the init script /etc/init.d/clamav-daemon .

Following fix was very simple all I had to do is launch clamav-daemon again:

linux:~# /etc/inid.d/clamav-daemon restart

Afterwards the error is gone and all mails worked just fine 😉

How to fix clamd “ERROR: LOCAL: Socket file /tmp/clamd.socket is in use by another process.”

Monday, May 23rd, 2011

One of the Qmail server installations I’m taking care of’s clamd antivirus process started loading the system heavily.
After a bit of log reading and investigation I’ve found the following error in my /var/log/clamd/current

@400000004dda1e1815cf03f4 ERROR: LOCAL: Socket file /tmp/clamd.socket is in use by another process.

I’ve noticed in my process list that actually I do have two processes clamd :

11608 ? Sl 0:05 /usr/local/sbin/clamd
11632 ? S 0:00 /usr/bin/multilog t /var/log/clamd
16013 ? Sl 0:06 /usr/local/sbin/clamd

It appeared that for some weird reason one of the clamd process was failing to connect constantly to the clam server socket /tmp/clamd.socket and each time it tried to connect and failed to connect to the socket the system gets about 5% of extra load …

Resolving the issues was a piece of cake, all I had to do is stop the clamd server delete the /tmp/clamd.socket and relaunch the clamd server.

Here is exactly the commands I issued:

debian:~# cd /service/
debian:/service# svc -a clamd
debian:/service# svc -h clamd
debian:/service# svc -d clamd
debian:/service# rm -f /tmp/clamd.socket
debian:/service# svc -u clamd

Afterwards the clamd extra load went out and in /var/log/clamd/current I can see clamd loads fine without errors, e.g.:

Listening daemon: PID: 16013
MaxQueue set to: 150
No stats for Database check - forcing reload
Reading databases from /usr/local/share/clamav
Database correctly reloaded (966822 signatures)
SelfCheck: Database status OK.
...

Qmail Adventures

Thursday, December 21st, 2006

Yesterday I started migrating from old bad configured sendmail to qmail.
Today. I spent 5 hours in the college, fighting with one qmail server.
Almost everything is setupped now. Except that qmail-scanner doesn’t work
properly for some misterious reason. All the time when I try to deliver
message to the box I get this err. :”qq temporary problem”. I’ve tried
everything I can think of Googled around but bad luck.
I’m still feeling Lost. In the afternoon I felt really bad.
Some Demons tried to torment me, I started having the problem
with hard breathing for some time. Praise the Lord. God helped me.
I’m really feeling Lost most of the time. I hope God will deliver me
and set me on a good way. This is my only hope.
5 more minutes and I’m going to bed.

Praise the Lord. HalleluYah.

Qmail Toaster on CentOS 5

Tuesday, March 3rd, 2009

One of the companies I work for has just recentlypurchased 2 new servers. The machines came bundledwith CentOS “yikes”. I wasn’t happy about thefact the servers came up with this s*itty OS.Though there wasn’t a chance to change the OS,the guys in Sofia lacked the competence and the timeto roll on a FreeBSD or Gnu/Debian installation.Therefore I had to live with it and start administering2 new servers running CentOS. Most of the things withthe install and updates went fine with CentOS’s softwaremanagement software “yum”. I had to install apache+php+mysqland a mail server. I experienced some problems during installingof the qmail toaster on one of the servers. The others ran fine.The problematic qmail install was on a machine with 8G of memory.I have never before installed qmail on a 8G box. So I haveto take the time to play with the soft limits and adjust theright maximum allowed memory to be allocated.However thanks to God all went fine in general with the installation ofthe boxes. The Support in Neterra couldn’t bring up one of the serversonline. So they had connected the machine in a local network withthe machine which was already up, so I accessed the server andthanksfully with God’s grace and guidance I fixed the problematicmachine to be viewable/accesible from the internet. I couldn’tget it what exactly caused the problem but I suspect it wassomething related with the CentOS’s firewall poicies. Actuallythe problematic machine missed the /etc/sysconfig/iptables fileso I copied that file from the server which was already accesiblefrom the net. I also changed a bit of other stuff on the server,though I couldn’t specificly remember what else I changed.Eventually I have the new machine which is going to be a futurehost of different.bg online.The other machine is going to host another domain which is alreadyonline prize.bg .This days I feel quite okay, thanks to God almighty whose mercytowards me is immensly big! Glory be to you Oh God, Oh Holy of Holiest, Holy Trinity!END—–

A fix for problem with FreeBSD php pcre & qmail installation

Wednesday, July 22nd, 2009

Few weeks ago I came around a problem with the php installed on my FreeBSD box seems like a shitty error occured when I tried to install squirrelmail as well as joomla. The following Warning message showed up every time I tried to access some of the scripts of the aforementioned ones.
“[Thu Jun 11 20:39:15 2009] [error] [client xxx.xxx.xxx.xxx] PHP Warning: preg_replace() [function.preg-replace]: Internal pcre_fullinfo() error -3 in somefile.php on line 169[Thu Jun 11 20:39:15 2009] [error] [client xxx.xxx.xxx.xxx] PHP Warning: preg_match() [function.preg-replace]: Internal pcre_fullinfo() error -3 in somefile.php on line 275″
I looked for a solution and it seemed the solution was as simple as adding “-with-pcre-regex=yes” to the Makefile of /usr/ports/lang/php5 a recompile and hooray pcre works correctly! Another problem I faced was with a qmail+vpopmail installation which seemed not to recognize the existence of some email addresses in the vpopmail installation. The cause for that was that my /var/qmail/control/locals was containing the name contained also in /var/qmail/control/virtualdomains. Simply removing the domain from locals and restarting qmail did the trick.Apart from all that I remembered an interesting website which you might find interesting to visit, a video from it was suggested by Sha’nar (Hope he had a safe journey to God). Here is thewebsiteisdown itself. Yes this days I’m mostly bored and in a spiritual roaming … Anyways thanks and glory be to God for his mercies on me.END—–