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: richard.pieri at gmail.com (Rich Pieri)
- Date: Sat, 23 Jan 2021 18:15:49 -0500
- In-reply-to: <4cc2af64-2953-6f4b-3a08-aae94cc0f193@thekramers.net>
- References: <4cc2af64-2953-6f4b-3a08-aae94cc0f193@thekramers.net>
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. -- Rich Pieri
- Follow-Ups:
- [Discuss] send email from script as non-root
- From: david at thekramers.net (David Kramer)
- [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
- Prev by Date: [Discuss] send email from script as non-root
- Next by Date: [Discuss] Elasticsearch and Kibana are now business risks (switches to SSPL license)
- Previous by thread: [Discuss] send email from script as non-root
- Next by thread: [Discuss] send email from script as non-root
- Index(es):