LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Gentoo (https://www.linuxquestions.org/questions/gentoo-87/)
-   -   Sendmail service doesn't send logs to my email about emerge (https://www.linuxquestions.org/questions/gentoo-87/sendmail-service-doesnt-send-logs-to-my-email-about-emerge-4175695959/)

George528 06-03-2021 07:19 AM

Sendmail service doesn't send logs to my email about emerge
 
I am looking to configure a sendmail for portage so it will notify me about whats going on.
I installed mail-mta/opensmtpd package and followed these instrucions: https://wiki.gentoo.org/wiki/Portage...ing_for_e-mail

i modified these accordingly:

Code:

PORTAGE_ELOG_SYSTEM="mail"
# First the mail-to address, then the SMTP server
PORTAGE_ELOG_MAILURI="my_email@gmail.com /usr/sbin/sendmail"
PORTAGE_ELOG_MAILFROM="portage@$satellite.example.com"
PORTAGE_ELOG_MAILSUBJECT="\${PACKAGE} is \${ACTION} on \${HOST}"

now when i emerge for example pciutils, it doesnt send any logs in email.
am i missing something?

P.S "satellite" is my hostname

bathory 06-04-2021 07:21 AM

Quote:

now when i emerge for example pciutils, it doesnt send any logs in email.
am i missing something?
Check mail logs for errors.
I'm not familiar with gentoo, but mail related logs are usually written in /var/log/mail or /var/log/maillog


All times are GMT -5. The time now is 08:31 PM.