Gentoo Archives: gentoo-user

From: Michael Sullivan <michael@××××××××××××.com>
To: gentoo-user <gentoo-user@l.g.o>
Subject: [gentoo-user] Need help configuribng PORTAGE_ELOG_MAILURI
Date: Thu, 06 Sep 2007 14:09:25
Message-Id: 1189086960.4783.4.camel@camille.espersunited.com
1 I have a small LAN with three PCs. One PC runs exim, but the other two
2 use ssmtp. On the two that don't use exim I frequently see errors
3 similar to the following when portage tries to send mail:
4
5 camille etc # glsa-check -m 200610-14
6 Traceback (most recent call last):
7 File "/usr/bin/glsa-check", line 316, in ?
8 portage_mail.send_mail(glsaconfig, mymessage)
9 File "/usr/lib/portage/pym/portage_mail.py", line 87, in send_mail
10 raise portage_exception.PortageException("!!! A network error
11 occured while trying to send logmail:\n"+str(e)+"\nSure you configured
12 PORTAGE_ELOG_MAILURI correctly?")
13 portage_exception.PortageException: !!! A network error occured while
14 trying to send logmail:
15 (111, 'Connection refused')
16 Sure you configured PORTAGE_ELOG_MAILURI correctly?
17
18
19 Here's my make.conf:
20
21 camille etc # cat /etc/make.conf
22 # These settings were set by the catalyst build script that
23 automatically built this stage
24 # Please consult /etc/make.conf.example for a more detailed example
25 CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
26 CHOST="i686-pc-linux-gnu"
27 CXXFLAGS="${CFLAGS}"
28 MAKEOPTS="-j2"
29 USE="asterisk dbus ctype session zaptel ivtv kerberos gphoto2 pcre
30 mode-owner -firefox seamonkey -mozilla candy apache2 oss apm alsa arts
31 avi berkdb bitmap-fonts cdr crypt cups doc encode fortran f77 foomaticdb
32 gdbm gif gpm gnome gstreamer gtk gtk2 imlib jpeg kde libg++ libwww mad
33 mikmod motif mpeg ncurses nls oggvorbis pam pdf lib png ppds python qt
34 quicktime readline samba sasl sdl threads nntp spell ssl svga tcltk tcpd
35 truetype usb X xml xml2 xmms xv zlib x86 imap offensive java mysql
36 examples mmx mmx2 perl divx4linux real mmxext audiofile nas snmp hal
37 unicode guile slp tidy dvd dvdr dvdread flash glut new-login
38 browserplugin nsplugin bzip2 win32codecs v4l v4l2 ruby sql lirc mythtv
39 dvb ffmpeg userlocales php -debug jack jack-tempfs portaudio
40 bash-completion bind-mysql joystick cli cgi ftp dba nptl nptlonly
41 libclamav syslog jikes mpm-leader ithreads nautilus tcl expat"
42 GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo"
43 FEATURES="keepwork nostrip buildpkg fixpackages parallel-fetch
44 -collision-protect emerge -va1 $(qfile -qC /usr/lib/cups /etc/cups | sed
45 "s:net-print/cups$::")
46 "
47 PKGDIR=/usr/portage-packages/camille
48 ALSA_CARDS="hda-intel"
49 PORT_LOGDIR="/var/log/portage-logs"
50 PORTDIR_OVERLAY="/usr/local/portage"
51 #PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /usr/local/portage/berkano-overlay"
52 LINGUAS="en fr es"
53 PORTAGE_ELOG_CLASSES="warn error log"
54 PORTAGE_ELOG_SYSTEM="save mail"
55 PORTAGE_ELOG_MAILFROM="root@××××××××××××.com"
56 DISTCC_DIR="${PORTAGE_TMPDIR}/.distcc"
57 PORTAGE_RSYNC_EXTRA_OPTS="--human-readable"
58 #PORTAGE_ELOG_MAILURI="root@×××××××××××××××××.com
59 root:CENSORED@×××××××××××××××××.com:25"
60
61 Here's my /etc/ssmtp/revaliases:
62 camille etc # cat /etc/ssmtp/revaliases
63 # sSMTP aliases
64 #
65 # Format: local_account:outgoing_address:mailhub
66 #
67 # Example: root:your_login@××××.domain:mailhub.your.domain[:port]
68 # where [:port] is an optional port number that defaults to 25.
69 #
70 michael:michael@××××××××××××××××××××.com:baby.espersunited.com
71 root:root@××××××××××××××××××××.com:baby.espersunited.com
72 postmaster:root@××××××××××××××××××××.com:baby.espersunited.com
73 portage:root@××××××××××××××××××××.com:baby.espersunited.com
74
75 And my ssmtp.conf:
76
77 camille etc # cat /etc/ssmtp/ssmtp.conf
78 #
79 # /etc/ssmtp.conf -- a config file for sSMTP sendmail.
80 #
81
82 # The person who gets all mail for userids < 1000
83 # Make this empty to disable rewriting.
84 root=postmaster@×××××××××××××××××.com
85
86 # The place where the mail goes. The actual machine name is required
87 # no MX records are consulted. Commonly mailhosts are named
88 mail.domain.com
89 # The example will fit if you are in domain.com and your mailhub is so
90 named.
91 mailhub=baby.espersunited.com
92
93 # Example for SMTP port number 2525
94 # mailhub=mail.your.domain:2525
95 # Example for SMTP port number 25 (Standard/RFC)
96 # mailhub=mail.your.domain
97 # Example for SSL encrypted connection
98 # mailhub=mail.your.domain:465
99
100 # Where will the mail seem to come from?
101 rewriteDomain=camille.espersunited.com
102
103 # The full hostname
104 camille.espersunited.com
105
106 # Gentoo bug #47562
107 # Commenting the following line will force ssmtp to figure
108 # out the hostname itself.
109
110 #hostname=<username>@camille.espersunited.com
111
112 # Set this to never rewrite the "From:" line (unless not given) and to
113 # use that address in the "from line" of the envelope.
114 #FromLineOverride=YES
115
116 # Use SSL/TLS to send secure messages to server.
117 #UseTLS=YES
118
119 # Use SSL/TLS certificate to authenticate against smtp host.
120 #UseTLSCert=YES
121
122 # Use this RSA certificate.
123 #TLSCert=/etc/ssl/certs/ssmtp.pem
124
125 What am I doing wrong?
126
127
128
129
130 --
131 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Need help configuribng PORTAGE_ELOG_MAILURI Michael Sullivan <msulli1355@×××××.com>