Hello, On Sun, 05 May 2013, Marcus Meissner wrote:
On Sun, May 05, 2013 at 04:37:22PM +0200, David Haller wrote:
On Sun, 05 May 2013, Marcus Meissner wrote:
On Sun, May 05, 2013 at 02:45:12PM +0200, David Haller wrote:
... and you can always alias a 'sudo /usr/sbin/sendmail -q' to e.g. 'sm'.
Don't forget the corresponding entry in /etc/sudoers.
sudo is not needed.
For flushing the (postfix or sendmail) queue via 'sendmail -q' when you have setup either to "defer" sending mails? I'll test that with this mail. Calling it on an empty queue (with postfix) does return an exitstatus of 0... [..]
Some other sendmail operations are not possible as user, there you need sudo / su.
And I think (or soonish thought), that flushing the queue is (was) one of those.
Yes, that one probably needs root rights. (didnt check)
Apparently, one does _not_ need root rights to flush the postfix queue via '/usr/sbin/sendmail -q'. As I've just tested. And I don't think I've configured postfix in that way (and definitely not sudo). I'd call that a bug in postfix. I'm _quite_ sure it was not possible to flush the queue with sendmail without root privileges (or unless it was/is configurable in sendmail somewhere, with that beast, you can configure almost anything, right?) I'm to pished to bug, but here's what I just did as a user: - wrote the mail and sent it with mutt ==== ~/.mutt/dnh_opensuse.cf ==== set sendmail="/usr/sbin/sendmail -fdnh@opensuse.org" ==== - mailq mail queued (deferred) - /usr/sbin/sendmail -q - mailq mail sent I'll recheck on sending this mail. -dnh -- "And 1.1.81 is officially BugFree(tm), so if you receive any bug-reports on it, you know they are just evil lies." -- Linus Torvalds -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org