Hi, > I want to add rule, which will use Google SMTP server to relay only > these emails, in which I use from as n...@company.com (@company.com)
accept sender "n...@company.com" for any relay via \ tls+auth://foo...@googlesmtpserver.com:587 \ auth <secrets> verify > Like > mail -r n...@company.com > -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://foo...@googlesmtpserver.com:587 \ as "n...@company.com" \ auth <secrets> verify # cat relaynames n...@company.com name name@hostname # cat secrets foobar n...@company.com:Password -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org