libera/#devuan/ Wednesday, 2022-10-19

tux12i don't think so ham5urg because that file also exists on debian systems.00:03
ham5urgtux12, yeah, looks like a higher level managing instance of ifupdown.00:04
tux12# Configuration for networking init script being run during the boot sequence // says the first comment in the file00:05
Guest31hi im new to Devuan . i couldnt find Devuan Chimera's default system init. What is it?07:09
Guest31is it sysvinit07:09
onefangCorrect.07:10
Guest31ty07:10
WonkaSetting up polkitd (121+compat0.1-6devuan1) ...17:06
WonkaFailed to open 'polkitd.conf', ignoring: No such file or directory17:06
Wonkadebian's polkitd_121+compat0.1-6_amd64.deb contains /usr/lib/sysusers.d/polkitd.conf, polkitd_121+compat0.1-6devuan1_amd64.deb doesn't.17:07
u-amarsh04I had this problem Wonka17:07
WonkaI have systemd-standalone-sysusers installed, that's why it fails17:07
Wonkait's a dependency of stunnel4...17:07
u-amarsh04yes, I found the same thing17:07
Wonkawithout systemd-standalone-sysusers it would work17:08
u-amarsh04for the same reason because I had stunnel installed17:08
Wonkalikely fix: don't throw that file out17:08
u-amarsh04https://bugs.devuan.org/cgi/bugreport.cgi?bug=71717:08
Wonkaah, nice.17:10
WonkaI extracted the polkitd.conf from polkitd_121+compat0.1-6_amd64.deb, ran 'dpkg --configure -a', and it worked.17:10
u-amarsh04I was a bit mystified why systemd-standalone-sysusers was not mentioned in the dependencies of polkitd even as a suggests/enhanced by17:12
WonkaI have no idea if changing the postinst script to unconditionally act as if systemd-sysusers was absent wouldn't be a good fix too...17:16
Wonkabut using it while not providing the necessary config file is certainly wrong :)17:16
u-amarsh04it also struck me that the code path in the postinstallation script which used the program from systemd-standalone-sysusers actually worked17:19
u-amarsh04I have several bugs opened against exim4 in Debian for not properly documenting /etc/mailname17:20
u-amarsh04I figured by documenting the issue in the bug reports at least other people would find my solution17:21
u-amarsh04"localhost" without the quotes is a valid /etc/mailname entry17:21
u-amarsh04correction, the code path in the installation script used if systemd-sysusers was found wasn't properly tested17:25
Wonkayep17:27
fatalerrorshi everyone21:40
fatalerrorsi need help on something i thought was a common practice and can't find anything using search engines, even evil one21:42
fatalerrorsi need to create a postfix configuration for local network only to send all mails received by local network server *@*.domain.net to a public mail server with address system@domain.net21:44
amesserfatalerrors, so relay only?22:15
fatalerrorsamesser: yes22:17
amesseryou could setup a transport_map to do this is. in your main.cf add something like "transport_maps = hash:/ets/postfix/transport"22:17
fatalerrorsthe relay can only receive system mail from local network22:17
amesserthen create /etc/postfix/transport with content:22:17
amesser.domain.net smtp:[<my-mail-server-address-here>]22:18
amesserrun postmap /etc/postfix/transport22:18
amesserthat should be enough. postfix will consult this file to choose a transport for destination address. ah, i see you'll need rewrite also.22:19
amesserhmm.22:19
fatalerrorsrewrite?22:23
fatalerrorsi don't know that22:23
fatalerrorsis it like rewriting the sender address?22:23
amessernot sure what your public mail server will accept. At least the envelope of the mails must be changed to "system@domain.net"22:24
amesserI think you can resolf thie by having another hash map for postfix option "virtual_alias_maps"22:25
fatalerrorsyes the public mail server will not accept anything else for security/spam reason, this is what caused my trouble on the first place22:25
fatalerrorscause the previous mail server was not secure enough22:26
fatalerrorsso my home made servers was rejected, but i could influence to adopt mailcow:dockerized insted of gmail or microsoft22:28
fatalerrorsit was hard fight22:28
amesserSo then you need two steps. First your mail envelope and headers need to be rewritten such that "To" becomes "system@domain.net"22:28
fatalerrorsyes exactly22:28
fatalerrorsbut i don't know how to do22:29
amesserI think this could be achieved using "recipient_canonical_maps" in postfix22:29
fatalerrorsok i'll look forward22:29
amesserJust create a hashmap for this like above. See https://www.postfix.org/canonical.5.html for the map format most likely one line.22:33
amesserAnother thing to do this could also be: https://www.postfix.org/ADDRESS_REWRITING_README.html#generic22:33
fatalerrorsthanks i read a lot of usefull things thanks to you amesser22:38
amesserhappy to help22:39
fatalerrorsthank you that's exactly what i missed22:39
fatalerrorssearch engines sucks ;)22:40
amesseryes, i tend to crawl through "man postconf" by hand. A lot of possibilities, however.22:41

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!