A packaging machine for sealing a packaging container having a lid and a tray comprising an upper part and a lower part arranged vertically moveable against each other, at least three vertical pins mounted on springs for opening a packaging container by lifting the lid off of the tray, evacuating mechanism for exchanging gas within the packaging container and sealing mechanism for sealing the lid to the tray.