Debian Postfix v2 to v3 notes – including postmulti setup

Upgrading postfix configurations from Jessie to Stretch was ‘challenging‘  (my blog) it works but required manual startup rather than auto start on boot. Systemd being an annoyance and with the zoos config deemed bad or not as trendy as some newer configs i had to setup postmulti and learn systems syntax to auto start it

postfix upgrade-configuration resulted in these changes to already working postfix configurations (one per directory)

Upgrading Postfix

Editing /etc/postfix/master.cf, adding missing entry for postscreen TCP service
Editing /etc/postfix/master.cf, adding missing entry for smtpd unix-domain service
Editing /etc/postfix/master.cf, adding missing entry for dnsblog unix-domain service
Editing /etc/postfix/master.cf, adding missing entry for tlsproxy unix-domain service

Note: the following files or directories still exist but are no
longer part of Postfix:

/etc/postfix/postfix-script /etc/postfix/post-install
/usr/share/doc/postfix/QMQP_README

COMPATIBILITY: editing /etc/postfix/main.cf, setting
inet_protocols=ipv4. Specify inet_protocols explicitly if you want
to enable IPv6. In a future release

Version 2 issues

chroot issues your be doing a lot of as – does not mean n

submission inet n – – – – smtpd

to

submission inet n – n – – smtpd

I left my unrooted as i did not want to fight battles with sasl sockets and milters.

New features for v3

Quick Mail Queueing Protocol is i think something to do with 628 setting in master.cf that has been commented for years.  Quite what it does is still a mystery.

Postmulti

Meant copying directories and moving them as postmulti likes /etc/postfix-1 /etc/postfix-2  rather than /etc/postfix/1.  As an obliging ape did that inited the settings in /etc/postfix (different to postfix-1 etc) and imported with postmulti -I postfox1 -G mta

postmult works to start postmulti -p start|stop|reload|status

the systemd config changed on debian stretch to do it via group rather than the broken example in postfix@.service

i used a variant of

postmutli -g mta -p start

Rather than postmutli  -i %i -p eatbanana

I got friendly with postmulti first rather than wonder why the fuck systemd was doing what it was doing.

So it kind of works – i really should recreate my postfix config of over ten years but it is a lot of work and is spammer proof and a lot of other features that a new instance of postmutli mostly have.

systemctl status postfix
● postfix.service – Postfix Mail Transport Agent (instance )
Loaded: loaded (/lib/systemd/system/postfix.service; enabled; vendor preset:
Active: active (running) since x BST; x ago
Docs: man:postfix(1)
Process: 15310 ExecStop=/usr/sbin/postmulti -g mta -p stop (code=exited, status=0/SUCCESS)
Process: 15669 ExecStart=/usr/sbin/postmulti -g mta -p start (code=exited, status=0/SUCCESS)
Process: 15609 ExecStartPre=/usr/lib/postfix/configure-instance.sh (code=exited, status=0/SUCCESS)
Main PID: 2255 (code=exited, status=0/SUCCESS)
Tasks: 14 (limit: 4915)
CGroup: /system.slice/postfix.service
├─15753 /usr/lib/postfix/sbin/master -w
├─15755 pickup -l -t fifo -u
├─15756 qmgr -l -t fifo -u
├─15836 /usr/lib/postfix/sbin/master -w
├─15837 pickup -l -t fifo -u
├─15838 qmgr -l -t fifo -u
├─15916 /usr/lib/postfix/sbin/master -w
├─15917 pickup -l -t fifo -u
├─15918 qmgr -l -t fifo -u
├─15996 /usr/lib/postfix/sbin/master -w
├─15997 pickup -l -t fifo -u
├─15998 qmgr -l -t fifo -u
├─16151 tlsmgr -l -t unix -u
└─16307 tlsmgr -l -t unix -u

Jul 11 11:03:01 mail2 postfix-x/smtpd[*]:

I managed to send mail to gmail and the existing config plus upgrades appears to sign and validate n dkim and spf.

Being bananas in the falklands some wit from systemd will probably overwrite my systemd posfix service file in the future just to make my life enjoyable as i am no expert with this limiting software and put it in the wrong place.

On a plus note i have a backup of my older postfix configs – who says systemd has good points*#

*this is called sarcasm

One response

  1. Pingback: Running debian stretch thoughts | Bananas in the Falklands

by golly but...

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s