> On 27 Aug 2015, at 17:27, Donovan Watteau <[email protected]> wrote:
> 
> Hi,
> 
> I'm configuring OpenSMTPD 5.7.1p1 on Debian 7.8.
> 
> I'm looking for something like this:
> 
>  # Use this when "From: [email protected]" is set:
>  accept for any relay via $myrelay
>  # Keep default relay in all other cases:
>  accept for any relay
> 
> So, having read smtpd.conf(5), I thought "sender" would be what I'm looking 
> for:
> 
>  accept sender "[email protected]" for any relay via $myrelay
>  accept for any relay

sender expects a table(5) not a single address.

> Unfortunately, my email is never relayed through $myrelay, although
> "From: [email protected]" is set.  Am I misunderstanding what "sender" is
> about?
> 
> Then I looked at filter-regex(8) in OpenSMTPD-extras, but I didn't any
> documentation telling me how to use filter-regex(8) from
> smtpd.conf(5).  parse.y is a bit rough.

filter-regex can only accept or block messages (based on regex). 
It can not rewrite or change the relay destination, thus will not help you in 
this case.

> Could you shed some light on this?  Thank you.
> 
> -- 
> You received this mail because you are subscribed to [email protected]
> To unsubscribe, send a mail to: [email protected]
> 


--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to