Hi,

> I want to add rule, which will use Google SMTP server to relay only
> these emails, in which I use from as [email protected] (@company.com)

accept sender "[email protected]" for any relay via \
        tls+auth://[email protected]:587 \
        auth <secrets> verify


> Like
> mail -r [email protected]
>      -r from-addr
>              Use from-addr as the from address in the message and envelope.
>              Overrides any from options in the startup files.
> 
> 
> I'm not sure, how to replace local with something from local domain
> "@company.com"

Maybe like this:

accept sender <relaynames> for any relay via \
        tls+auth://[email protected]:587 \
        as "[email protected]" \
        auth <secrets> verify

# cat relaynames
[email protected]
name
name@hostname

# cat secrets
foobar  [email protected]:Password

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

Reply via email to