Hello
After updating debian i have little truble with postfix service "postmulti"
varibles, i think that this varible "%i" are not recoginzed correctly
when start postfix
i try also multiple version to add " ' " so that the %i can by
recognize, and after adding
"configure-instance.sh postfix/" this will mount the main.cf but what
the other
commands "configure-instance.sh postfix/" dont recognize this!?
thanks - Mauri
main.cf
multi_instance_enable = yes
# systemctl status postfix@-.service
● postfix@-.service - Postfix Mail Transport Agent (instance -)
Loaded: loaded (/lib/systemd/system/postfix@-.service; enabled;
vendor preset: enabled)
Active: active (running) since Wed 2023-01-11 19:25:28 CET; 4s ago
Docs: man:postfix(1)
Process: 4966 ExecStartPre=/usr/lib/postfix/configure-instance.sh -
(code=exited, status=0/SUCCESS)
Process: 5281 ExecStart=/usr/sbin/postmulti -i - -p start
(code=exited, status=0/SUCCESS)
Tasks: 3 (limit: 2358)
Memory: 6.3M
CGroup: /system.slice/system-postfix.slice/postfix@-.service
├─5514 /usr/lib/postfix/sbin/master -w
├─5515 pickup -l -t unix -u
└─5516 qmgr -l -t unix -u
Jan 11 19:25:25 nmail systemd[1]: Starting Postfix Mail Transport Agent
(instance -)...
Jan 11 19:25:28 nmail postfix/postfix-script[5512]: starting the Postfix
mail system
Jan 11 19:25:28 nmail postfix/master[5514]: daemon started -- version
3.4.23, configuration /etc/postfix
Jan 11 19:25:28 nmail systemd[1]: Started Postfix Mail Transport Agent
(instance -).
# cat postfix@-.service
[Unit]
Description=Postfix Mail Transport Agent (instance %i)
Documentation=man:postfix(1)
PartOf=postfix@-.service
Before=postfix@-.service
ReloadPropagatedFrom=postfix@-.service
After=network-online.target nss-lookup.target
Wants=network-online.target
[Service]
Type=forking
GuessMainPID=no
ExecStartPre=/usr/lib/postfix/configure-instance.sh %i
ExecStart=/usr/sbin/postmulti -i %i -p start
ExecStop=/usr/sbin/postmulti -i %i -p stop
ExecReload=/usr/sbin/postmulti -i %i -p reload
[Install]
WantedBy=multi-user.target