Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save_config_enc.sh sends email as root #22

Open
CV8R opened this issue Aug 17, 2022 · 2 comments
Open

save_config_enc.sh sends email as root #22

CV8R opened this issue Aug 17, 2022 · 2 comments

Comments

@CV8R
Copy link

CV8R commented Aug 17, 2022

Hi, found that save_config_enc.sh sends as root which means email ends up in spam.

Deleted From: root on line 133 to below appears to have done the trick.

printf '%s\n' "To: ${email} Subject: ${subject} Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=\"$mime_boundary\" --${mime_boundary} Content-Type: text/plain; charset=\"US-ASCII\" Content-Transfer-Encoding: 7bit Content-Disposition: inline ${savestatus} Server: ${freenashostname} Version: ${freenasversion} File: ${fnconfigdest} "

@PhilZ-cwm6
Copy link

PhilZ-cwm6 commented Aug 18, 2022

I think you could simply replace From: root by a valid email like "From: myemail@domain.com". Else, most providers detect it as spam

@Spearfoot
Copy link
Owner

On my older FreeNAS 11.2-U8 systems, FreeNAS transmits root email using the account credentials I set up on System->Email So the mail I receive doesn't have 'root' as the sender -- it has the email account username instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants