unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* local and remove mail delivery
@ 2024-01-02 14:19 Remco van 't Veer
  2024-01-02 16:52 ` Felix Lechner via
  0 siblings, 1 reply; 5+ messages in thread
From: Remco van 't Veer @ 2024-01-02 14:19 UTC (permalink / raw)
  To: help-guix

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-01-03 13:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-02 14:19 local and remove mail delivery Remco van 't Veer
2024-01-02 16:52 ` Felix Lechner via
2024-01-02 18:11   ` Remco van 't Veer
2024-01-02 18:21     ` Felix Lechner via
2024-01-03 13:37       ` Remco van 't Veer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).