On October 31, 2018 5:31:44 PM EDT, "Paul B. Henson" <[hidden email]> wrote:
>I just upgraded to OpenBSD 6.4, and I'm trying to figure out how to do
>this with the new syntax:
>accept from local for any relay via smtp://smtp.domain.com as
>This would rewrite the outbound message to masquerade as being from the
>TLD rather than a specific machine. Right now I've got:
>action local_relay relay host smtp.domain.com
>match from local for any action local_relay
>But this doesn't do the rewriting. The only thing I see in the man page
>talks about 'senders <users> [masquerade]' which seems to be for
>Am I missing something obvious?
On Wed, Oct 31, 2018 at 08:07:09PM -0400, TronDD wrote:
> Mail-from in the action options, I believe.
Ah, yes; that seems to work, thanks. The previous implementation was
If the as parameter is specified, smtpd(8) will rewrite
the sender advertised in the SMTP session. address may
be a user, a domain prefixed with `@', or an email
address, causing smtpd(8) to rewrite the user-part, the
domain-part, or the entire address, respectively.
whereas this just said:
Use mailaddr as the MAIL FROM address within the SMTP
It wasn't clear it would do the same rewriting functionality, I thought
at first it just took a single email address.