From: Bill L. <wr...@gm...> - 2019-05-30 20:40:53
|
The error from the server: 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 I'm not sure if that parses as: the envelope the server received from the address ro...@wr... or: the From: address for the msg Because the -r option to the 'mail' command does set the From: header and that doesn't affect the error. Bill On 5/30/2019 3:56 PM, Lonnie Abelbeck wrote: > >> 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 > > > |