I used to use FreeBSD ports in all related server job. I don’t remember what ports that might behave strangely in my mail server until I remember last portupgrade job. I upgrade dovecot to latest version. I think if I downgrade dovecot ports I’ll get my stable mail server back
Here’s my steps to downgrade dovecot ports : ( similar way applicable to other FreeBSD ports)
1. Find out installed dovecot version :
mail2# pkg_info | grep dovecot
dovecot-1.0.13_1 Secure and compact IMAP and POP3 servers
2. Install portdowngrade (use ports) and execute portdowngrade after rehash.
I took freebsdanoncvs@anoncvs.FreeBSD.org as cvs server from here :
mail2# portdowngrade dovecot -s freebsdanoncvs@anoncvs.FreeBSD.org:/home/ncvs
portdowngrade 0.6 by Heiner Eichmann
Please note, that nothing is changed in the ports tree
unless it is explicitly permitted in step 6!
Seeking port dovecot …
Found several matches:
Please choose one: 1
Downgrading port: mail/dovecot
Step 1: Checking out port from CVS repository
CVS root directory: freebsdanoncvs@anoncvs.FreeBSD.org:/home/ncvs
The authenticity of host ‘anoncvs.freebsd.org (128.46.xxx.46)’ can’t be established.
DSA key fingerprint is 52:02:38:1a:2f:a8:71:d3:f5:83:93:8d:aa:00:6f:65.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘anoncvs.freebsd.org’ (DSA) to the list of known hosts
Step 2: Reading the port history from the CVS repository
Step 3: Analyzing the port history from the CVS repository
Step 4: Load port version numbers and present results
Keys: <space> : next page d : details
p : previous page
<enter> : leave presentation and downdgrade if wanted
number date portversion comment
1 2008/04/10 09:45:22 unknown – Fix login shell for dovecot user
2 2008/03/10 02:39:09 unknown – Update mail/dovecot to dovecot-1.0.13, fixing a serious security issue.
3 2008/03/05 23:58:09 unknown – Update to 1.0.12
4 2007/12/30 09:35:48 unknown Update to 1.0.10.
5 2007/12/12 20:50:30 unknown Update to 1.0.9.
6 2007/12/11 19:27:04 unknown Update to 1.0.8.
7 2007/10/30 01:02:00 unknown Update to 1.0.7.
8 2007/10/28 22:24:05 unknown Update to 1.0.6.
9 2007/10/03 23:34:14 unknown Remove support for OSVERSION < 5
10 2007/09/10 07:35:06 unknown Update to 1.0.5, this is a bugfix release.
11 2007/08/05 15:54:21 unknown Update to 1.0.3.
12 2007/07/17 10:32:08 unknown Upgrade to 1.0.2.
13 2007/06/18 19:05:51 unknown Update to 1.0.1 (bugfix)
14 2007/04/14 01:46:51 unknown Update to 1.0.0.
15 2007/04/01 10:23:07 unknown Update to 1.0.r29
16 2007/03/28 20:59:38 unknown – Set NOPORTDOCS
17 2007/03/24 14:46:31 unknown – Update to 1.0.r28
18 2007/03/15 07:21:58 unknown Fix build when vpopmail support is enabled.
19 2007/03/15 00:38:04 unknown – Update to latest release, dovecot-1.0.rc27.
20 2007/03/09 11:26:25 unknown – Update to 1.0.r26
22 2007/03/01 00:59:34 unknown – Update to latest release, dovecot-1.0.rc24.
36 2006/07/24 16:29:10 unknown Update to dovecot-1.0.rc2, see
37 2006/06/19 16:19:24 unknown Update to dovecot-1.0.b9.
38 2006/05/27 22:27:52 unknown – It fixes the the C89 alignment issue encountered when compiling with
Total lines: 92. Command:
No. 2, I choose that version where I think thats version is satisfy me
Total lines: 92. Command:Enter version number to show details from: 2
- Update mail/dovecot to dovecot-1.0.13, fixing a serious security issue.
- Changelog: http://dovecot.org/list/dovecot-news/2008-March/000065.html
Submitted by: Robin Breathe <email@example.com> (maintainer)
Press a key
Followed by press Enter
Total lines: 92. Command:
Enter version number to change port to (0: exit): 2
Step 5: Checking out choosen date of the port from the CVS repository
Step 6: Modifying the port
at : 2008/03/10 02:39:09
Type ‘yes’ to bring the port to the state of the date above
or ‘no’ to exit without changing anything. Note, that this only changes
the port, not the installed software! yes or no:
The port has been set to the selected version. Install it if you wish.
If you have portupgrade installed, you should run
now, to see the changes in the ports database. In any case
portupgrade -f dovecot
will install the changed port. Note: if you run cvsup, the port
is changed back to the choosen label!
3. Portdowngrade successfully changed dovecot to 1.0.13
Checking dovecot content.
mail2# cd /usr/ports/mail/dovecot
mail2# ee Makefile
# New ports collection makefile for: dovecot
# Date created: 12/08/2002
# Whom: Dominic Marks <firstname.lastname@example.org>
# $FreeBSD: ports/mail/dovecot/Makefile,v 1.82 2008/03/10 02:39:09 beech Exp $
CATEGORIES= mail ipv6
Great, I just need to issue ‘make reinstall’ to get dovecot 1.0.13.