[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

local and remove mail delivery

From: Remco van 't Veer
Subject: local and remove mail delivery
Date: Tue, 02 Jan 2024 15:19:00 +0100
User-agent: mu4e 1.10.8; emacs 29.1


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

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

  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; 

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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]