From: Lonnie A. <li...@lo...> - 2019-05-30 19:56:45
|
> On May 30, 2019, at 2:04 PM, Bill Lewis <wr...@gm...> wrote: > > On 5/30/2019 2:31 PM, Lonnie Abelbeck wrote: >>> Lonnie, >>> >>> Using this command as a test: >>> >>> echo "C*Net call from 1234567" | mail -v -r "bi...@wr..." -s "C*Net call from 1234567" "bi...@wr..." >>> >>> I'm getting this error from a server a friend hosts for me: >>> >>> msmtp: envelope from address ro...@wr... not accepted by the server >>> msmtp: server message: 553 5.3.0 <ro...@wr...>... Not a valid email address >>> >>> Is there a way to change the username 'root' in the email address 'ro...@wr...' AstLinux sends to the server? >>> >>> Thanks, >>> Bill >> You can define the SMTP_FROM rc.conf variable to change that IIRC. >> >> Using the Network tab, near the bottom, click ... >> -- >> Advanced Configuration: >> >> User System Variables: {Edit User Variables} >> -- >> then define something like: >> >> SMTP_FROM="bi...@wr..." >> >> Apply the change by clicking ... {Reload/Restart} [Restart SMTP Mail] _x_ Confirm >> >> Lonnie >> >> > Lonnie, > > That variable appears to do the same thing as the -r in my mail command. > > So I'm getting the same error back from the server. > > Bill Just tried this myself, and when setting SMTP_FROM the ro...@ex... got replaced with the SMTP_FROM value. Lonnie |