BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] send email from script as non-root
- Subject: [Discuss] send email from script as non-root
- From: david at thekramers.net (David Kramer)
- Date: Sat, 23 Jan 2021 19:49:57 -0500
- In-reply-to: <600cae26.1c69fb81.87ca8.6a4e@mx.google.com>
- References: <4cc2af64-2953-6f4b-3a08-aae94cc0f193@thekramers.net> <600cae26.1c69fb81.87ca8.6a4e@mx.google.com>
OK it didn't seem safe to me to have files in /etc/postfix to be world readable, but if that's how it's supposed to be, I will do that. Thanks. On 1/23/21 6:15 PM, Rich Pieri wrote: > On Sat, 23 Jan 2021 16:39:08 -0500 > David Kramer <david at thekramers.net> wrote: > >> send-mail: fatal: open /etc/postfix/main.cf: Permission denied >> Can't send mail: sendmail process failed with error code 75 >> If I make /etc/postfix o+rx? and make main.cf readable, it just fails >> on some other file in that directory, and I feel this path is going >> in an unsafe direction, so I made /etc/postfix 750 again. > You were on the right track. /etc/postfix needs to be root:root mode > 755. All files in this directory need to be readable by the postfix > user. Depending on your distribution, files need to be either root:root > mode 644 or root:postfix mode 640. >
- Follow-Ups:
- [Discuss] send email from script as non-root
- From: dbarrett at blazemonger.com (Daniel Barrett)
- [Discuss] send email from script as non-root
- References:
- [Discuss] send email from script as non-root
- From: david at thekramers.net (David Kramer)
- [Discuss] send email from script as non-root
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] send email from script as non-root
- Prev by Date: [Discuss] Elasticsearch and Kibana are now business risks (switches to SSPL license)
- Next by Date: [Discuss] html lock
- Previous by thread: [Discuss] send email from script as non-root
- Next by thread: [Discuss] send email from script as non-root
- Index(es):