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

Permission denied message in Debian 11 #216

Closed
Amooti73 opened this issue Oct 25, 2021 · 5 comments
Closed

Permission denied message in Debian 11 #216

Amooti73 opened this issue Oct 25, 2021 · 5 comments

Comments

@Amooti73
Copy link

This is not really an mblaze issue, I would say. A search for "sendmail permission denied" brings quite a few results, none of which are specific to mblaze nor to Debian, except that it does not seem to happen with Ubuntu. However, I thought I would just report this challenge. I also then switched to dma to see if that might work, but the permission denied message persisted.

I was unable to find a solution within my "technical capacity". I just made a rather crude work around that would allow me to use mcom and mrep as a root user.

When one is root, then $HOME=/root, so, sorry, but I hacked the mcom script to replace $HOME with /home/user (/home/john in my case) and also placed an export statement in /root/.bashrc to so that $MBLAZE points to /home/user/.mblaze

Things worked in Debian 10, but...

I'm sure there are more "elegant" ways to handle this!

@leahneukirchen
Copy link
Owner

It's not clear to me what you are doing nor what fails exactly.

Can you run sendmail directly as root?

@Amooti73
Copy link
Author

Amooti73 commented Oct 25, 2021

What fails is sending! That is after composing the email in vim and saving it, the mail program gives and error message when one tries to actually send the message.

img-2021-10-25-175757

I have attached a screenshot from my terminal. I hope it is readable!

I am able to send a message with mcom as root, but mrep needs to access the sequence and that required me to export the MBLAZE variable in /root/.bashrc

I don't know if I have clarified things at all!

@Amooti73
Copy link
Author

Just a small addition is that after configuring either sendmail or dma, I am able to send mail from the command line using "mail" and without root access. No error there!

@Amooti73
Copy link
Author

Just a quick note that when I set Sendmail in .mblaze/profile equal to mail, the problem disappears.

@Amooti73
Copy link
Author

Amooti73 commented Nov 6, 2021

All was going well as mentioned in my post from last week until I tried sending an email to a large number of recipients and I was confronted by this error with dma. So, today I returned to sendmail which does not have the limitation that dma has. I left my .mblaze/profile alone with the "Sendmail: mail" setting and that's OK. I could send an email to about 100 recipients without any error.

Thanks!

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

2 participants