leahneukirchen / mblaze

Unix utilities to deal with Maildir
Other
447 stars 48 forks source link

Permission denied message in Debian 11 #216

Closed Amooti73 closed 2 years ago

Amooti73 commented 2 years ago

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 commented 2 years ago

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

Can you run sendmail directly as root?

Amooti73 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

Amooti73 commented 2 years ago

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!