From: Remco van 't Veer <remco@remworks.net>
To: help-guix@gnu.org
Subject: local and remove mail delivery
Date: Tue, 02 Jan 2024 15:19:00 +0100 [thread overview]
Message-ID: <87zfxnu8bv.fsf@remworks.net> (raw)
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
next reply other threads:[~2024-01-02 14:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-02 14:19 Remco van 't Veer [this message]
2024-01-02 16:52 ` local and remove mail delivery 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zfxnu8bv.fsf@remworks.net \
--to=remco@remworks.net \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).