Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 16th June 2011, 19:05
vestport4 vestport4 is offline
Junior Member
Join Date: Jun 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Red face Temporary solution until sieve update

After recent updates to dovecot and or postfix around May-June 2011 your email may no longer be working.

First of all back your files up before editing etc. Normally I create directories in "/root" for files I am working on.

for example if I were working on postfix I may do something like:

mkdir /root/postfix-backup
cp /etc/postfix/* /root/postfix-backup

then you are pretty much safe or reasonably safe before proceeding.

Potential issues with this recet email problem are:

spamassassin and amavis may not be running.

If this is the case then one or both of the above 2 may be preventing postfix from accepting mail hence the following postfix error messages in "/var/log/maillog".

status=deferred (temporary failure)
It may also say mail "loops" or "bounces" back to myself" (This may be a config problem or rather over-written .cf file)

What I did was copied older postfix config files back that may have been over-written by the upgrade.


cp /etc/postfix/main.cf~ /etc/postfix/main.cf
cp /etc/postfix/master.cf~ /etc/postfix/master.cf

Your files may differ! Look at dates etc. and copy back older files to the default before things went haywire!

Be sure to set postfix to auto startup ex:

chkconfig --levels 235 sendmail off
chkconfig --levels 235 postfix on
/etc/init.d/sendmail stop
/etc/init.d/postfix start

If incomming mail is stuck in que and not being delivered by dovecot then you probably want to eliminate the "sieve plugin" in: /etc/dovecot.conf

Again, you may need to copy older working config files before things went haywire.

Ex: cp /etc/dovecot.config~ /etc/dovecot.config

then proceed.

First stop dovecot like so:

/etc/init.d/dovecot stop

You can check the queue by doing a:

postqueue -pv

and try to flush it with

postqueue -f

but it may not flush yet until you complete the steps below.

To eliminate the "sieve plugin" in /etc/dovecot.conf just prefix it with a hash mark like so:

#mail_plugins = sieve quota

Make sure dovecot is set to run at startup and re-start like so:

chkconfig --levels 235 dovecot on
/etc/init.d/dovecot start

re-check postqueue

Ex: postqueue pv

if all went well then there are probably no more messages in the que and your squirrelmail, iphone or whatever you use has now received all of your old messages.

You should be all set after completing the above steps but I would re-boot and check one more time after re-boot to confirm that dovecot, postfix, spamassasin, amavis are all still running. If not start at the top again or you may need other resources if you did somehting different than just took yum updates etc. or if you did not save older config files etc.

Most of this has been covered on a few diffierent sites including this one. It took me about a day to sort it all out because as usual when you can't fix it quick sometimes you start grabbing at staws and not keeping everything so focused and methodical. Regardless, I just hope that this helps someone out there fix the problem and save many hours of confusion.

Please post when new "sieve" plugin can be updated with "yum" or specific instructions how to compile. Then you can re-activate "sieve" plugin in /etc/dovecot.conf.

Good Luck!

Reply With Quote
Sponsored Links
Old 29th June 2011, 13:33
Lionheart82 Lionheart82 is offline
Join Date: May 2011
Posts: 40
Thanks: 3
Thanked 4 Times in 4 Posts

Sieve plugin has been upgraded and is working ok.
Just run yum upgrade dovecot-sieve
Reply With Quote


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
installing squirrelmail on Debian with ispconfig3 saco721 Installation/Configuration 18 1st April 2011 18:57
Postfix problem and few questions Gimly Installation/Configuration 12 7th July 2009 17:27
procmail can't write Hellbound General 27 8th June 2009 22:51
postfix, pop3 uvbnserved Server Operation 22 24th May 2009 22:00
localhost postfix/master: fatal: bind port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 18:39

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

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