> On Sep 18, 2024, at 16:55, jrmu <j...@ircnow.org> wrote:
> 
> Greetings,
> 
> I recall someone asked this before, but I forgot the answer:
> 
> What is the best method for keeping the password file for opensmtpd in
> sync with /etc/master.passwd? I would like the email passwords to be
> identical with the shell account passwords, if possible.

In your smtpd.conf, create a table:
table users passed:/etc/passwd

Then in your rules, something like:
listen on all port submission tls-require \
  pki example.com \
  hostname example.com \
  auth <users>
action "hosted" maildir junk userbase <users>
action "outbound" relay helo example.com
match from any for domain <domains> action "hosted"
match from any auth for any action "outbound"
match for any action "outbound"

(This is an edited snippet from my own smtpd.conf. The `domains` table contains 
those domains the server handles mail for .)

> 
> --
> jrmu
> IRCNow (https://ircnow.org)

Cheers,
– Robert

Reply via email to