January 11, 2023 1:05 PM, "Wael Karram" <[email protected]> wrote:
> Hello, > Hello, > I tried to look it up online and went also through the mailing list but > couldn't > find what I needed, hence why I'm asking here: > > I am trying to setup a relay on an OpenSMTPd server which should only accept > mail from a specific IP address (possibly also authenticating as a local user) > and then use SRS to forward the email (so long it isn't addressed to the local > server). > What have you tried ? It seems like something very close to the default config: - add srs with the `srs` keyword - add a match rule that uses `from src` - add authentication on `listen` if you want authenticated session, you can also have a `match` rule apply to a specific authenticated user with `from auth`` The smtpd.conf man page has many examples > On another note, is there a way to accept HTML mail with a warning that it > might > be blocked later? > That would require writing a custom filter, you won't have something so specific out of the box
