Ensure posfix is installed before creating main.cf file.