Mailing List Archive

rsyslogd: cannot create '/var/spool/postfix/dev/log': Operation not supported
Hi,

I just replaced syslog with rsyslog. I already had configurations from
Ubuntu which I migrated to FreeBSD12.

When I try to create a socket for Postfix I get

rsyslogd: cannot create '/var/spool/postfix/dev/log': Operation not
supported [v8.2112.0 try https://www.rsyslog.com/e/2176 ]
6884.604846409:main thread : operatingstate.c: osf: MSG cannot create
'/var/spool/postfix/dev/log': pre priv drop activating config
0x800e0b000 for module imklog
6884.630037094:main Q:Reg/w0 : ruleset.c: processBATCH: next msg 2:
<43>1 2022-01-17T17:28:04.608557+01:00 BSDHelmut.charlieroot.de rsyslogd
2027 - - cannot create '/var/spool/postfix/dev/log': Op
6884.643644916:main Q:Reg/w0 : omfile.c: omfile: write to stream,
pData->pStrm 0x801097000, lenBuf 172, strt data Jan 17 17:28:04
BSDHelmut.charlieroot.de rsyslogd[2027] cannot create
'/var/spool/postfix/dev/log': Operation not supported [.v8.
6884.643943136:main Q:Reg/w0 : omfile.c: omfile: write to stream,
pData->pStrm 0x801097400, lenBuf 172, strt data Jan 17 17:28:04
BSDHelmut.charlieroot.de rsyslogd[2027] cannot create
'/var/spool/postfix/dev/log': Operation not supported [.v8.
6884.644270339:main Q:Reg/w0 : omfile.c: omfile: write to stream,
pData->pStrm 0x801097200, lenBuf 172, strt data Jan 17 17:28:04
BSDHelmut.charlieroot.de rsyslogd[2027] cannot create
'/var/spool/postfix/dev/log': Operation not supported [v8.

[helmut@BSDHelmut ~]$ cat /usr/local/etc/rsyslog.conf | grep -v ^#
module(load="immark") # provides --MARK-- message capability
module(load="imuxsock") # provides support for local system logging
module(load="imklog") # kernel logging
include(file="/usr/local/etc/rsyslog.d/*.conf" mode="optional")
[helmut@BSDHelmut ~]$ cat /usr/local/etc/rsyslog.d/40-postfix.conf |
grep -v ^#
$AddUnixListenSocket /var/spool/postfix/dev/log
$FileCreateMode 0644
mail.* /var/log/maillog
& stop
$FileCreateMode 0640
[helmut@BSDHelmut ~]$

Any ideas? /var/spool/postfix/dev exists.

Thank you!

_______________________________________________
rsyslog mailing list
https://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.
Re: rsyslogd: cannot create '/var/spool/postfix/dev/log': Operation not supported [ In reply to ]
Am 17.01.2022 um 17:31 schrieb Helmut Schneider via rsyslog:

> > I just replaced syslog with rsyslog. I already had configurations
> > from Ubuntu which I migrated to FreeBSD12.
> >
> > When I try to create a socket for Postfix I get
> >
> > rsyslogd: cannot create '/var/spool/postfix/dev/log': Operation not
> > supported [v8.2112.0 try https://www.rsyslog.com/e/2176 ]
[...]
> > [helmut@BSDHelmut ~]$
> >
> > Any ideas? /var/spool/postfix/dev exists.

...but is not the default socket location on FreeBSD. Here it is
var/run/log. So

$AddUnixListenSocket /var/spool/postfix/var/run/log

is correct.

Sorry for the noise.

_______________________________________________
rsyslog mailing list
https://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.