Gentoo Archives: gentoo-user

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