Hi, I am trying to get local (and remote through .forward and aliases, using fastmail as relay) mail delivery to work on a server for (rottlog etc) but I am stuck and hoping somebody can share some config.scm snippets to get it to work.
My journey so far: The found rottlog service expects mailutils to be in a working state which it isn't out of the box. When sending mail it tries to launch /usr/sbin/sendmail which obviously does not exist. So I added the opensmtp service: (service opensmtpd-service-type (opensmtpd-configuration)) and setup a mailrc file with: set sendmail=sendmail:/run/current-system/profile/sbin/sendmail Now using mailutils "mail" command mail gets accepted but never delivered. date | mail -s test me In maillog I see messages like: Jan 2 13:48:26 localhost smtpd[665]: 16e9792116d40b8b mda delivery evpid=8bd03460af848da7 from=<me@localhost> to=<me@localhost> rcpt=<me@localhost> user=me delay=5m result=TempFail stat=Error (terminated; timeout) And after a while: Jan 2 14:59:25 localhost lockspool: /var/mail/me.lock: Permission denied So I looked at the opensmtpd service definitions and found out executables are setgid to the smtpq group to gain some privileges so I chgrp-ed the /var/mail directory to smtpq and did chmod g+rwx on it but without effect. Maybe lockspool (which is in libexec) also needs to be setgid but I have not clue on how to do that since it's in libexec. I also tried exim briefly, it did not work with the default configuration and writing exim config is rather off putting. Anybody solve the above or got mailutils to work (and receive rottlog mails) via a different route? Cheers, Remco