LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 06-03-2021, 07:19 AM   #1
George528
Member
 
Registered: May 2021
Location: Moldova
Distribution: Arch, Debian
Posts: 95

Rep: Reputation: 2
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

Last edited by George528; 06-03-2021 at 07:21 AM.
 
Old 06-04-2021, 07:21 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
  


Reply

Tags
email, emerge, mail, portage, sendmail



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Back up logs file and create a script showing the backed up logs and the running logs Billy_6052 Programming 5 12-13-2014 02:32 AM
How to send my all logs from ubuntu send email to me DeSouffle Linux - Networking 1 12-21-2013 04:15 AM
Perl email::send.. how to send the email? hawk__0 Programming 6 12-24-2009 01:53 PM
python: can't open file 'emerge\bin\emerge.py' Virtuality Programming 5 01-30-2008 01:23 PM
emerge errors during emerge -u world busbarn Linux - Distributions 6 04-23-2003 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration