Re: upgrading 10.04 based mail server

2017-05-09 Thread Kristian Rink
Hi Simos, *;

Am Dienstag, den 09.05.2017, 09:20 +0300 schrieb Simos Xenitellis:
> 
> 
> It will probably help you to test using LXD containers,
> https://stgraber.org/2016/03/11/lxd-2-0-blog-post-series-012/
> There are images in there for 12.04 (still present), 14.04, 16.04,
> 16.10, 17.04, so you can pick and choose
> which version to launch, and it gets launched in a few seconds.
> 

That's another interesting approach. Actually for the apps we deploy on
our own we are used to using docker by now, but I never checked that
for the MX. Maybe it'll make things a bit easier. :)

Cheers and thanks,
Kristian

-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: upgrading 10.04 based mail server

2017-05-09 Thread Kristian Rink
Hi Andreas, *;

and first, thanks a bunch for your comments on that. First off, yes, I
am aware I'm about to move a way from a *very* old version of the
system; yet the complexity of the setup so far made upgrade pretty much
an unfeasible task. But at some point it has to be done I guess... ;)


Am Montag, den 08.05.2017, 12:48 -0300 schrieb Andreas Hasenack:
>
> One suggestion for you to investigate would be to deploy a current
> ubuntu alongside that existing server and try to sync one thing at a
> time:
> - copy the IMAP mailboxes over to the new cyrus
> - dump & reload the mysql db
> - copy postfix config over, adjust
> 

That's a valid point... Thanks for the hint - to be honest I wasn't so
far even thinking about that, even though it seems pretty obvious while
taking a closer look. By now my idea was to completely rebuild the
configuration with less technical overhead (which, however, I never
managed to do simply because it's not trivial). 

I'll see how far I can get this way and eventually get back here in
case of any Ubuntu related questions; so far the main "beast" to tame
seems cyrus imapd... ;)

Thanks again and all the best,
Kristian

-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: upgrading 10.04 based mail server

2017-05-08 Thread Simos Xenitellis
On Mon, May 8, 2017 at 3:14 PM, Kristian Rink  wrote:
> Folks;
>
> I'm again looking into finally upgrading our Ubuntu 10.04 based e-mail
> server. Tried this several times in the past and (repeatedly) failed;
> that's why I gave up on it yet in the end we need to get away from
> 10.04 at some point.
>
> Here's my setup: The VM includes cyrus imapd, postfix, a local mysql
> database hosting virtual aliases all along with postfix-mysql and local
> user accounts. Obviously, this system is critical for our business,
> transports > 5k messages per day and has a spool of roughly 500g of
> mail in shared IMAP boxes, as well as a modestly complex set of cyrus
> ACLs controlling access to the IMAP boxes. Completely setting this
> beast up all anew is tough and risky and as it generally works, I just
> wanted to do a step-by-step dist-upgrade of the base system to the most
> recent version.
>
> Unfortunately, this doesn't really work well due to a couple of changes
> especially in cyrus-imapd. Has anyone successfully dist-upgraded such a
> setup and can share some hints, tips, ideas with me on how to get it
> done well?
>

It looks like a complex set up, so when upgrading it, you would need
to partition the task in small pieces,
and test that each upgraded piece works. All these on a test server,
and make sure that all work before flipping the switch.
For example, you can test first that the mail spool works with a newer
imapd to read email.

It will probably help you to test using LXD containers,
https://stgraber.org/2016/03/11/lxd-2-0-blog-post-series-012/
There are images in there for 12.04 (still present), 14.04, 16.04,
16.10, 17.04, so you can pick and choose
which version to launch, and it gets launched in a few seconds.
You can take snapshots of the current state of the container, so when
something newer fails,
you can fallback to the previous good state and continue trying other options.

Simos

-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: upgrading 10.04 based mail server

2017-05-08 Thread Andreas Hasenack
On Mon, May 8, 2017 at 12:48 PM, Andreas Hasenack 
wrote:

> On Mon, May 8, 2017 at 9:14 AM, Kristian Rink  wrote:
>
>>
>> Unfortunately, this doesn't really work well due to a couple of changes
>> especially in cyrus-imapd. Has anyone successfully dist-upgraded such a
>> setup and can share some hints, tips, ideas with me on how to get it
>> done well?
>>
>>
> One suggestion for you to investigate would be to deploy a current ubuntu
> alongside that existing server and try to sync one thing at a time:
> - copy the IMAP mailboxes over to the new cyrus
>

Copy using imap, I meant, not a filesystem copy.
-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Re: upgrading 10.04 based mail server

2017-05-08 Thread Andreas Hasenack
On Mon, May 8, 2017 at 9:14 AM, Kristian Rink  wrote:

>
> Unfortunately, this doesn't really work well due to a couple of changes
> especially in cyrus-imapd. Has anyone successfully dist-upgraded such a
> setup and can share some hints, tips, ideas with me on how to get it
> done well?
>
>
One suggestion for you to investigate would be to deploy a current ubuntu
alongside that existing server and try to sync one thing at a time:
- copy the IMAP mailboxes over to the new cyrus
- dump & reload the mysql db
- copy postfix config over, adjust

Then you can also experiment with this new server with one or two clients
and see how it goes, and get experience with the changes since 10.04.

I think a dist-upgrade or do-release-upgrade will have undefined results.
-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Re: upgrading 10.04 based mail server

2017-05-08 Thread Nish Aravamudan
Hi Kristian,

On 08.05.2017 [14:14:15 +0200], Kristian Rink wrote:
> Folks;
> 
> I'm again looking into finally upgrading our Ubuntu 10.04 based e-mail
> server. Tried this several times in the past and (repeatedly) failed;
> that's why I gave up on it yet in the end we need to get away from
> 10.04 at some point. 

>From 10.04 (eol for ... 2 years?) to what release? 12.04? (which is now
EOL?)

-Nish

-- 
Nishanth Aravamudan
Ubuntu Server
Canonical Ltd

-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam