Hi

[2024-09-12 19:33] Aly Dharshi <aly.dhar...@edmonton.ca>
> Hello OpenSMTPD Gurus,
>
> It’s been a very long time since I’ve had to do mail server work. However,
> I have been working on implementing opensmtpd and I am running into a weird
> issue.
>
> I am using:
>
> 1. Oracle Linux 9.4
> 2. OpenSMTPD 7.5.0p0 from Oracle’s EPEL repo
> 3. Default user and group of smtpd:smtpd
> 4. Using sssd+AD and getent passwd username returns a valid entry.
>
> When I ask opensmtpd to perform a deliver to a Maildir lifted from the
> default configs I get an error message where the system can’t find my home
> directory and says it can’t stat it. I can get you a proper error in the AM.

The exact error would help.

> But if I run smtpd in the foreground as root the deliver takes place
> flawlessly. If I ask smtpd as the user in (3) above to deliver to a mbox it
> works fine.

I don't get what you meen with "as the user in (3)". OpenSMTPD must run
as root and has some helper user for special porposes. By default the
delivery (mda) is run as the recipient user. Also to better understand
what you do: can you share your config?

> I see the systemd file has a set of read and write directories and am not
> sure if that has something to do with it or not.

The maildir delivery method writes to $HOME/Maildir by default. If your
systemd service file disallowes this it obviolus fails. Specify a
different directory might help.

A bit more general, considering your other mail asking about ldap:
I would asume this gives a bit bigger setup wher in the end the users
access there mails only via IMAP/Webmail. In this case I would recommend
to deliver via lmtp to something like dovecot. This gives you a bit more
flexibility about where you store the users mail and allows some
features (like sieve).

Philipp

> I have more questions that I will fire off in a different set of
> emails/threads. Thanks so so much.
>
> Cheers,
>
> ASD.
>
>
>
>
>
> ---
>
> [image: Edmonton-signature-RGB.jpg]
>
> Aly Dharshi B.Sc., RHCE
>
> Communications Design Specialist
>
> ETS Technical Services
>
> CITY OPERATIONS | TRANSIT
>
>
> Meeting Booking Link https://calendar.app.google/eTj5cU9rJFYUTqNM6
>
>
> 780-619-1585 MOBILE
>
>
>
> City of Edmonton
>
> DL MacDonald Transit Yards
>
> ROW Building
>
> 13304 50A Street
>
> Edmonton AB T5A 4P6
>
> All information contained in this email post is proprietary to the City of
> Edmonton, confidential and intended only for the addressed recipient. If
> you have received this post in error, please disregard the contents, inform
> the sender of the misdirection, and remove it from your system. The
> copying, dissemination or distribution of this email, if misdirected, is
> strictly prohibited.
>
> -- 
> *The contents of this message and any attachment(s) are confidential, 
> proprietary to the City of Edmonton, and are intended only for the 
> addressed recipient. If you have received this in error, please disregard 
> the contents, inform the sender of the misdirection, and remove it from 
> your system. The copying, dissemination, or distribution of this message, 
> if misdirected, is strictly prohibited.*

Reply via email to