On 05/04/2013 10:06 PM, John Bennett wrote:
Trying to setup a couple of scripts, which part of the results are to send an email as a non-root user. Have setup postfix, and as root (sudo sendmail.....) can send a basic email through my ISPs mail server successfully.
If I try and send as a non-root user, get: "Absolute path to 'sendmail' is '/usr/sbin/sendmail', so running it may require superuser privileges (eg. root)." How can I (safely and securely, without opening up anything undesirable), set this up so a standard user can send? Thanks.
You don't invoke sendmail, try using python http://docs.python.org/2/library/email-examples.html or ruby http://www.tutorialspoint.com/ruby/ruby_sending_email.htm I am assuming your scripts are written in some sane language (shell is explictly excluded from "sane" in year 2013 :-P) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org