Postfix Errors on n...
 
Notifications
Clear all

Postfix Errors on new 26 install

3 Posts
3 Users
1 Reactions
218 Views
(@itsupport)
New Member
Joined: 1 month ago
Posts: 1
Topic starter  

Has anyone encountered this error showing in the logs a few times every second.

2026-07-23T05:10:50.995126+00:00 mail postfix/postqueue[850008]: fatal: inet_addr_local[getifaddrs]: getifaddrs: Address family not supported by protocol
2026-07-23T05:10:51.003555+00:00 mail postfix/postqueue[850011]: fatal: inet_addr_local[getifaddrs]: getifaddrs: Address family not supported by protocol

This is a brand new install on Ubuntu Server 24. It does not appear to be causing any problems yet, but I would prefer no fatal errors in the logs by default.


   
Quote
(@sharif)
Honorable Member Admin
Joined: 4 years ago
Posts: 966
 

@itsupport

Hi,

I noticed this too. From my initial understanding, these logs come from the stats service (carbonio-stats), not from mail delivery. On 26.6.0, carbonio-stats blocks something postqueue needs to read the network interfaces, so it keeps failing and retrying. 

Could you please try this:

  • Create /etc/systemd/system/carbonio-stats.service.d/10-netlink.conf with:
    [Service]
    RestrictAddressFamilies=
    RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK
    SupplementaryGroups=postdrop
  • systemctl daemon-reload
  • systemctl restart carbonio-stats.service

Meanwhile, I will try to dig deeper and discuss this issue with the devs.

Thanks!


   
ReplyQuote
(@abalamut)
New Member
Joined: 5 days ago
Posts: 4
 

I can confirm that this issue is still present on a fresh Carbonio CE installation on Ubuntu 24.04.

The error is repeatedly generated by zmstat-mtaqueue running inside carbonio-stats.service:

postfix/postqueue: fatal: inet_addr_local[getifaddrs]: getifaddrs: Address family not supported by protocol

The MTA itself is working correctly, and running mailq manually as the zextras user works without any error:

$ su - zextras -c 'mailq'
Mail queue is empty

The problem is caused by the systemd sandbox configuration of carbonio-stats.service.

The packaged unit currently contains:

RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX

and does not provide the postdrop supplementary group.

We applied the following systemd override:

 removed link 

[Service]
RestrictAddressFamilies=
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK
SupplementaryGroups=postdrop

followed by:

systemctl daemon-reload
systemctl restart carbonio-stats.service

After the restart, the effective configuration is:

SupplementaryGroups=postdrop
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX

and the recurring getifaddrs / postqueue fatal errors completely disappear.

zmstat-mtaqueue continues to work normally:

zmstat mtaqueue.csv: timestamp, KBytes, requests
...
0, 0

So the workaround suggested above is confirmed to solve the problem.

We are currently migrating several independent Zimbra servers to Carbonio CE, all using Ubuntu 24.04, so this is likely to affect every new installation using the same packaged carbonio-stats.service.

Could you please include this fix upstream in the Carbonio package, so that administrators do not need to maintain a local systemd override?

In particular, the packaged carbonio-stats.service should probably include:

RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK
SupplementaryGroups=postdrop

Thank you.


   
Sharif reacted
ReplyQuote