public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
@ 2011-12-13 21:40 Tanstaafl
  0 siblings, 0 replies; 22+ messages in thread
From: Tanstaafl @ 2011-12-13 21:40 UTC (permalink / raw
  To: gentoo-user

Hi all,

Ok, this is also on this new hosted VM...

I need help getting portage to email me emerge logs using SASL auth on a 
remote host using ssmtp...

I found this thread that has me almost there (I think):

http://www.gossamer-threads.com/lists/gentoo/user/217567?do=post_view_threaded#217567

But it doesn't seem to be using SASL auth, because the attempt is being 
blocked by my server client_access rule (which comes *after* 
permit_sasl_authenticated)...

Here's what I have in make.conf (after reading the above thread):

PORTAGE_ELOG_MAILURI="root@user:password mail.myserver.com:100587"

and in ssmtpd.conf:

root=postmaster
mailhub=mail.myserver.com:587
AuthUser=<username>
AuthPass=<password>
UseSTARTTLS=YES

And here is the error I'm currently getting:

!!! An error occurred while trying to send logmail:
{'root@username:password': (554, '5.7.1 
<li66-207.members.linode.com[74.207.224.207]>: Client host rejected: 
Access denied')}

Anyone have any ideas?

Thanks,

Charles



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
       [not found] <i7Ioy-7Uy-29@gated-at.bofh.it>
@ 2011-12-13 22:42 ` Leho Kraav
  2011-12-14 11:43   ` Tanstaafl
  0 siblings, 1 reply; 22+ messages in thread
From: Leho Kraav @ 2011-12-13 22:42 UTC (permalink / raw
  To: linux.gentoo.user; +Cc: gentoo-user

i would first of all suggest dropping ssmtp and going with nullmailer. if ssmtp fails for any reason it will lose your emails. nullmailer has queue capability.



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
  2011-12-13 22:42 ` [gentoo-user] Need help getting portage to email me emerge logs using ssmtp Leho Kraav
@ 2011-12-14 11:43   ` Tanstaafl
  2011-12-14 12:05     ` Tanstaafl
  0 siblings, 1 reply; 22+ messages in thread
From: Tanstaafl @ 2011-12-14 11:43 UTC (permalink / raw
  To: gentoo-user

On 2011-12-13 5:42 PM, Leho Kraav <leho@kraav.com> wrote:
> i would first of all suggest dropping ssmtp and going with
> nullmailer. if ssmtp fails for any reason it will lose your emails.
> nullmailer has queue capability.

Sounds good, I'll give it a shot (emerging now)...

Is there a decent HowTo on getting it up and running? The manpage was 
full of technical stuff but I didn't see anmy clearcut examples of 
getting it actually running and being used as the systems default mta 
for sending messages.

Thanks!



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
  2011-12-14 11:43   ` Tanstaafl
@ 2011-12-14 12:05     ` Tanstaafl
  2011-12-14 12:16       ` Pandu Poluan
  2011-12-14 12:17       ` Neil Bothwick
  0 siblings, 2 replies; 22+ messages in thread
From: Tanstaafl @ 2011-12-14 12:05 UTC (permalink / raw
  To: gentoo-user

On 2011-12-14 6:43 AM, Tanstaafl <tanstaafl@libertytrek.org> wrote:
> On 2011-12-13 5:42 PM, Leho Kraav <leho@kraav.com> wrote:
>> i would first of all suggest dropping ssmtp and going with
>> nullmailer. if ssmtp fails for any reason it will lose your emails.
>> nullmailer has queue capability.

> Sounds good, I'll give it a shot (emerging now)...

Ok, emerged, did emerge --config nullmailer, added:

# A nonstandard SMTP server setup:
# someotherserver.domain.com smtp --port=2525
mail.myserver.com smtp --port=587 --user=<user> --pass=<pass>

to /etc/nullmailer/remotes, and added it to default runlevel.

When starting manually I get the following warning:

li66-207 nullmailer # /etc/init.d/nullmailer start
  * Starting nullmailer ...      [ ok ]
  * WARNING: -c/--chuid is deprecated and will be removed in the future, 
please use -u/--user instead 

li66-207 nullmailer #

Checking the init script, I see:

start() {
         checkconfig
         ebegin "Starting nullmailer"
         cd /var/nullmailer
         start-stop-daemon --start --quiet --chuid ${USER}:${GROUP} \
                           --exec ${DAEMON} -- ${ARGS}
         eend $?
}

Should I change this? Ianap, so don't really feel comfortable just 
changing it without confirming first...

Thanks again...



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
  2011-12-14 12:05     ` Tanstaafl
@ 2011-12-14 12:16       ` Pandu Poluan
  2011-12-14 12:25         ` Tanstaafl
  2011-12-14 12:17       ` Neil Bothwick
  1 sibling, 1 reply; 22+ messages in thread
From: Pandu Poluan @ 2011-12-14 12:16 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1521 bytes --]

On Dec 14, 2011 7:08 PM, "Tanstaafl" <tanstaafl@libertytrek.org> wrote:
>
> On 2011-12-14 6:43 AM, Tanstaafl <tanstaafl@libertytrek.org> wrote:
>>
>> On 2011-12-13 5:42 PM, Leho Kraav <leho@kraav.com> wrote:
>>>
>>> i would first of all suggest dropping ssmtp and going with
>>> nullmailer. if ssmtp fails for any reason it will lose your emails.
>>> nullmailer has queue capability.
>
>
>> Sounds good, I'll give it a shot (emerging now)...
>
>
> Ok, emerged, did emerge --config nullmailer, added:
>
> # A nonstandard SMTP server setup:
> # someotherserver.domain.com smtp --port=2525
> mail.myserver.com smtp --port=587 --user=<user> --pass=<pass>
>
> to /etc/nullmailer/remotes, and added it to default runlevel.
>
> When starting manually I get the following warning:
>
> li66-207 nullmailer # /etc/init.d/nullmailer start
>  * Starting nullmailer ...      [ ok ]
>  * WARNING: -c/--chuid is deprecated and will be removed in the future,
please use -u/--user instead
> li66-207 nullmailer #
>
> Checking the init script, I see:
>
> start() {
>        checkconfig
>        ebegin "Starting nullmailer"
>        cd /var/nullmailer
>        start-stop-daemon --start --quiet --chuid ${USER}:${GROUP} \
>                          --exec ${DAEMON} -- ${ARGS}
>        eend $?
> }
>
> Should I change this? Ianap, so don't really feel comfortable just
changing it without confirming first...
>
> Thanks again...
>

Don't.

Just file a bug, and let the maintainer take care of it.

It's *still* supported currently.

Rgds,

[-- Attachment #2: Type: text/html, Size: 2268 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
  2011-12-14 12:05     ` Tanstaafl
  2011-12-14 12:16       ` Pandu Poluan
@ 2011-12-14 12:17       ` Neil Bothwick
  2011-12-14 12:28         ` Pandu Poluan
  1 sibling, 1 reply; 22+ messages in thread
From: Neil Bothwick @ 2011-12-14 12:17 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 541 bytes --]

On Wed, 14 Dec 2011 07:05:12 -0500, Tanstaafl wrote:

> When starting manually I get the following warning:
> 
> li66-207 nullmailer # /etc/init.d/nullmailer start
>   * Starting nullmailer ...      [ ok ]
>   * WARNING: -c/--chuid is deprecated and will be removed in the
> future, please use -u/--user instead 

Ignore it, it is only a deprecation warning. IMO these warnings shouldn't
be displayed to normal users by default, they are intended for devs.


-- 
Neil Bothwick

Walk softly and carry a fully charged phazer.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
  2011-12-14 12:16       ` Pandu Poluan
@ 2011-12-14 12:25         ` Tanstaafl
  2011-12-14 13:00           ` Tanstaafl
  0 siblings, 1 reply; 22+ messages in thread
From: Tanstaafl @ 2011-12-14 12:25 UTC (permalink / raw
  To: gentoo-user

On 2011-12-14 7:16 AM, Pandu Poluan <pandu@poluan.info> wrote:
>> Should I change this? Ianap, so don't really feel comfortable just
>> changing it without confirming first...

> Don't.
>
> Just file a bug, and let the maintainer take care of it.
>
> It's *still* supported currently.

Will do...

But, I noticed I was still getting the same error after unmerging ssmtp 
and emerging nullmailer, and /etc/ssmtp still exists... so apparently it 
is still trying to use ssmtp somehow?

I moved the /etc/ssmtp dir (temporarily, until I figure this out) to my 
home directory, and set PORTAGE_ELOG_MAILURI= back to its default 
(commented it out), and now I'm getting this error:

!!! A network error occurred while trying to send logmail:
[Errno 111] Connection refused
Sure you configured PORTAGE_ELOG_MAILURI correctly?

How do I tell the system to use nullmailer?



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
  2011-12-14 12:17       ` Neil Bothwick
@ 2011-12-14 12:28         ` Pandu Poluan
  2011-12-14 14:42           ` Neil Bothwick
  0 siblings, 1 reply; 22+ messages in thread
From: Pandu Poluan @ 2011-12-14 12:28 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 628 bytes --]

On Dec 14, 2011 7:22 PM, "Neil Bothwick" <neil@digimed.co.uk> wrote:
>
> On Wed, 14 Dec 2011 07:05:12 -0500, Tanstaafl wrote:
>
> > When starting manually I get the following warning:
> >
> > li66-207 nullmailer # /etc/init.d/nullmailer start
> >   * Starting nullmailer ...      [ ok ]
> >   * WARNING: -c/--chuid is deprecated and will be removed in the
> > future, please use -u/--user instead
>
> Ignore it, it is only a deprecation warning. IMO these warnings shouldn't
> be displayed to normal users by default, they are intended for devs.
>
>

... or for normal users so that the normal users will file a bug. :-)

Rgds,

[-- Attachment #2: Type: text/html, Size: 858 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
  2011-12-14 12:25         ` Tanstaafl
@ 2011-12-14 13:00           ` Tanstaafl
  2011-12-14 13:05             ` Tanstaafl
  0 siblings, 1 reply; 22+ messages in thread
From: Tanstaafl @ 2011-12-14 13:00 UTC (permalink / raw
  To: gentoo-user

On 2011-12-14 7:25 AM, Tanstaafl <tanstaafl@libertytrek.org> wrote:
> !!! A network error occurred while trying to send logmail:
> [Errno 111] Connection refused
> Sure you configured PORTAGE_ELOG_MAILURI correctly?

Ok, finally figured out why I wasn't seeing any errors in the main log...

Here is the error in the main log:

Dec 14 07:58:17 li66-207 nullmailer[27759]: Starting delivery: protocol: 
smtp host: mail.myserver.com file: 1323867377.8321
Dec 14 07:58:17 li66-207 nullmailer[13029]: smtp: Failed: 530 5.7.0 Must 
issue a STARTTLS command first
Dec 14 07:58:17 li66-207 nullmailer[27759]: Sending failed:  Permanent 
error in sending the message
Dec 14 07:58:17 li66-207 nullmailer[27759]: Delivery complete, 1 
message(s) remain.

So... does nullmailer even support STARTTLS?



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
  2011-12-14 13:00           ` Tanstaafl
@ 2011-12-14 13:05             ` Tanstaafl
  2011-12-14 15:29               ` Tanstaafl
  0 siblings, 1 reply; 22+ messages in thread
From: Tanstaafl @ 2011-12-14 13:05 UTC (permalink / raw
  To: gentoo-user

On 2011-12-14 8:00 AM, Tanstaafl <tanstaafl@libertytrek.org> wrote:
> So... does nullmailer even support STARTTLS?

Crap, apparently not...

http://untroubled.org/nullmailer/TODO

back to square one...



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
  2011-12-14 12:28         ` Pandu Poluan
@ 2011-12-14 14:42           ` Neil Bothwick
  0 siblings, 0 replies; 22+ messages in thread
From: Neil Bothwick @ 2011-12-14 14:42 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 562 bytes --]

On Wed, 14 Dec 2011 19:28:33 +0700, Pandu Poluan wrote:

> > Ignore it, it is only a deprecation warning. IMO these warnings
> > shouldn't be displayed to normal users by default, they are intended
> > for devs.

> ... or for normal users so that the normal users will file a bug. :-)

After they have asked about it on mailing lists and forums for the
umpteenth time. The package devs and arch testers should see those
messages, it's only a deprecation notice not an error.


-- 
Neil Bothwick

Windows - From the people who brought you EDLIN!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
  2011-12-14 13:05             ` Tanstaafl
@ 2011-12-14 15:29               ` Tanstaafl
  2011-12-14 20:29                 ` Tanstaafl
  0 siblings, 1 reply; 22+ messages in thread
From: Tanstaafl @ 2011-12-14 15:29 UTC (permalink / raw
  To: gentoo-user

On 2011-12-14 8:05 AM, Tanstaafl <tanstaafl@libertytrek.org> wrote:
> On 2011-12-14 8:00 AM, Tanstaafl <tanstaafl@libertytrek.org> wrote:
>> So... does nullmailer even support STARTTLS?
>
> Crap, apparently not...
>
> http://untroubled.org/nullmailer/TODO
>
> back to square one...

Ok, found msmtp, which does support STARTTLS, and still can't get this 
working... I really hope I don't have to resort to installing postfix 
just to get simple outbound mail running...

I've removed nullmailer (had to manually kill the still running process 
and delete the /etc/nullmailer dir for it too), and installed and 
configged msmtp, and it is still not working...

I also did reset PORTAGE_ELOG_MAILURI= to default (commented it out).

li66-207 ~ # msmtp --serverinfo
SMTP server at smtp.myserver.com (smtp.myserver.com [70.43.81.99]), port 
587:
     smtp.myserver.com ESMTP Postfix
Capabilities:
     SIZE 30720000:
         Maximum message size is 30720000 bytes = 29.30 MiB
     PIPELINING:
         Support for command grouping for faster transmission
     ETRN:
         Support for RMQS (Remote Message Queue Starting)
     DSN:
         Support for Delivery Status Notifications
     STARTTLS:
         Support for TLS encryption via the STARTTLS command
This server might advertise more or other capabilities when TLS is active.
li66-207 ~ #

So, it is talking successfully to my relayhost here in the office, but 
I'm still getting this ordinary error:

!!! A network error occurred while trying to send logmail:
[Errno 111] Connection refused
Sure you configured PORTAGE_ELOG_MAILURI correctly?

and NOTHING in/var/log/messages...

Hope someone has an idea...



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
  2011-12-14 15:29               ` Tanstaafl
@ 2011-12-14 20:29                 ` Tanstaafl
  2011-12-14 20:59                   ` Urs Schutz
                                     ` (2 more replies)
  0 siblings, 3 replies; 22+ messages in thread
From: Tanstaafl @ 2011-12-14 20:29 UTC (permalink / raw
  To: gentoo-user

On 2011-12-14 10:29 AM, Tanstaafl <tanstaafl@libertytrek.org> wrote:
> !!! A network error occurred while trying to send logmail:
> [Errno 111] Connection refused
> Sure you configured PORTAGE_ELOG_MAILURI correctly?
>
> and NOTHING in/var/log/messages...

Ok, so, I now have more info so hopefully some kind soul will take pity 
on me and provide the clue-stick...

I can confirm that sending email from the commandline now works:

li66-207 ~ # echo "This is a test e-mail..." | mail -s "Test e-mail" 
admin@myserver.com
li66-207 ~ #

I received the email.

But, I'm still getting the same error as above when portage tries to 
email me the emerge logs.

How do I tell portage to simply use the 'mail' command?



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
  2011-12-14 20:29                 ` Tanstaafl
@ 2011-12-14 20:59                   ` Urs Schutz
  2011-12-14 21:09                     ` Tanstaafl
  2011-12-14 21:09                   ` Neil Bothwick
  2011-12-14 22:09                   ` Neil Bothwick
  2 siblings, 1 reply; 22+ messages in thread
From: Urs Schutz @ 2011-12-14 20:59 UTC (permalink / raw
  To: gentoo-user

On Wed, 14 Dec 2011 15:29:44 -0500
Tanstaafl <tanstaafl@libertytrek.org> wrote:

> On 2011-12-14 10:29 AM, Tanstaafl
> <tanstaafl@libertytrek.org> wrote:
> > !!! A network error occurred while trying to send
> > logmail: [Errno 111] Connection refused
> > Sure you configured PORTAGE_ELOG_MAILURI correctly?
> >
> > and NOTHING in/var/log/messages...
> 
> Ok, so, I now have more info so hopefully some kind soul
> will take pity on me and provide the clue-stick...
> 
> I can confirm that sending email from the commandline now
> works:
> 
> li66-207 ~ # echo "This is a test e-mail..." | mail -s
> "Test e-mail" admin@myserver.com
> li66-207 ~ #
> 

Did you send this as user? What about sending this from
the root account?

Urs



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
  2011-12-14 20:59                   ` Urs Schutz
@ 2011-12-14 21:09                     ` Tanstaafl
  0 siblings, 0 replies; 22+ messages in thread
From: Tanstaafl @ 2011-12-14 21:09 UTC (permalink / raw
  To: gentoo-user

On 2011-12-14 3:59 PM, Urs Schutz <u.schutz@bluewin.ch> wrote:
> Did you send this as user? What about sending this from
> the root account?

I sent it from root... maybe that's the problem?



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
  2011-12-14 20:29                 ` Tanstaafl
  2011-12-14 20:59                   ` Urs Schutz
@ 2011-12-14 21:09                   ` Neil Bothwick
  2011-12-14 21:30                     ` Tanstaafl
  2011-12-14 22:19                     ` Alex Schuster
  2011-12-14 22:09                   ` Neil Bothwick
  2 siblings, 2 replies; 22+ messages in thread
From: Neil Bothwick @ 2011-12-14 21:09 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 463 bytes --]

On Wed, 14 Dec 2011 15:29:44 -0500, Tanstaafl wrote:

> I can confirm that sending email from the commandline now works:

> How do I tell portage to simply use the 'mail' command?

AFAIR there used to be an option for this, but it's not in the docs. Have
you tried

PORTAGE_ELOG_MAILURI="user@address localhost"

Or leave MAILURI unset in which case it will deliver to root@localhost.


-- 
Neil Bothwick

Top Oxymorons Number 4: Diet ice cream

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
  2011-12-14 21:09                   ` Neil Bothwick
@ 2011-12-14 21:30                     ` Tanstaafl
  2011-12-14 22:19                     ` Alex Schuster
  1 sibling, 0 replies; 22+ messages in thread
From: Tanstaafl @ 2011-12-14 21:30 UTC (permalink / raw
  To: gentoo-user

On 2011-12-14 4:09 PM, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Wed, 14 Dec 2011 15:29:44 -0500, Tanstaafl wrote:
>
>> I can confirm that sending email from the commandline now works:
>
>> How do I tell portage to simply use the 'mail' command?
>
> AFAIR there used to be an option for this, but it's not in the docs. Have
> you tried
>
> PORTAGE_ELOG_MAILURI="user@address localhost"
>
> Or leave MAILURI unset in which case it will deliver to root@localhost.

Yep, that's how it is set now...

I'm stumped...



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
  2011-12-14 20:29                 ` Tanstaafl
  2011-12-14 20:59                   ` Urs Schutz
  2011-12-14 21:09                   ` Neil Bothwick
@ 2011-12-14 22:09                   ` Neil Bothwick
  2011-12-15 12:21                     ` Tanstaafl
  2 siblings, 1 reply; 22+ messages in thread
From: Neil Bothwick @ 2011-12-14 22:09 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 569 bytes --]

On Wed, 14 Dec 2011 15:29:44 -0500, Tanstaafl wrote:

> How do I tell portage to simply use the 'mail' command?

You don't, you tell it to use sendmail

From make.conf.example:

mailserver: smtp server that should be used to deliver the mail
(defaults to localhost) alternatively this can also be a the path to a
sendmail binary if you don't want to use smtp 

Try PORTAGE_ELOG_MAILURI="you@home /usr/sbin/sendmail"

This will use ssmtp's sendmail, which you already have working.


-- 
Neil Bothwick

This is the day for firm decisions! Or is it?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
  2011-12-14 21:09                   ` Neil Bothwick
  2011-12-14 21:30                     ` Tanstaafl
@ 2011-12-14 22:19                     ` Alex Schuster
  1 sibling, 0 replies; 22+ messages in thread
From: Alex Schuster @ 2011-12-14 22:19 UTC (permalink / raw
  To: gentoo-user

Neil Bothwick writes:

> On Wed, 14 Dec 2011 15:29:44 -0500, Tanstaafl wrote:
> 
>> I can confirm that sending email from the commandline now works:
> 
>> How do I tell portage to simply use the 'mail' command?
> 
> AFAIR there used to be an option for this, but it's not in the docs.
> Have you tried
> 
> PORTAGE_ELOG_MAILURI="user@address localhost"
> 
> Or leave MAILURI unset in which case it will deliver to
> root@localhost.

What about
PORTAGE_ELOG_COMMAND="cat '\${LOGFILE}' | mail -s 'ebuild log for
\${PACKAGE}' user@address"

Doesn't seem to work here, though. Even if I set PORTAGE_ELOG_SYSTEM to
"custom" and PORTAGE_ELOG_COMMAND to an existing script, it is not being
called.

	Wonko



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
  2011-12-14 22:09                   ` Neil Bothwick
@ 2011-12-15 12:21                     ` Tanstaafl
  2011-12-15 12:57                       ` Tanstaafl
  0 siblings, 1 reply; 22+ messages in thread
From: Tanstaafl @ 2011-12-15 12:21 UTC (permalink / raw
  To: gentoo-user

On 2011-12-14 5:09 PM, Neil Bothwick <neil@digimed.co.uk> wrote:
> Try PORTAGE_ELOG_MAILURI="you@home /usr/sbin/sendmail"

Bingo!

I guess I didn't/don't fully understand what needs to go here...

I received the message, but it comes 'from' 'portage@localhost'... 
how/where can I change this from address?

Thanks Neil!



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
  2011-12-15 12:21                     ` Tanstaafl
@ 2011-12-15 12:57                       ` Tanstaafl
  0 siblings, 0 replies; 22+ messages in thread
From: Tanstaafl @ 2011-12-15 12:57 UTC (permalink / raw
  To: gentoo-user

On 2011-12-15 7:21 AM, Tanstaafl <tanstaafl@libertytrek.org> wrote:
> I received the message, but it comes 'from' 'portage@localhost'...
> how/where can I change this from address?

Never mind, found it:

PORTAGE_ELOG_MAILFROM="myaddress.example"

Thanks again Neil!



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
       [not found]               ` <i7Z61-2AY-3@gated-at.bofh.it>
@ 2011-12-16 16:32                 ` Indi
  0 siblings, 0 replies; 22+ messages in thread
From: Indi @ 2011-12-16 16:32 UTC (permalink / raw
  To: gentoo-user

On Wed, Dec 14, 2011 at 04:40:01PM +0100, Tanstaafl wrote:
> 
> Hope someone has an idea...

You could try esmtp; Always seems to work for me when the others fail. 
Haven't tried what you're pursuing, but surely it can be made to work
fairly easily...

-- 
caveat utilitor
♫ ❤ ♫ ❤ ♫ ❤ ♫ ❤ 



^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2011-12-16 16:34 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <i7Ioy-7Uy-29@gated-at.bofh.it>
2011-12-13 22:42 ` [gentoo-user] Need help getting portage to email me emerge logs using ssmtp Leho Kraav
2011-12-14 11:43   ` Tanstaafl
2011-12-14 12:05     ` Tanstaafl
2011-12-14 12:16       ` Pandu Poluan
2011-12-14 12:25         ` Tanstaafl
2011-12-14 13:00           ` Tanstaafl
2011-12-14 13:05             ` Tanstaafl
2011-12-14 15:29               ` Tanstaafl
2011-12-14 20:29                 ` Tanstaafl
2011-12-14 20:59                   ` Urs Schutz
2011-12-14 21:09                     ` Tanstaafl
2011-12-14 21:09                   ` Neil Bothwick
2011-12-14 21:30                     ` Tanstaafl
2011-12-14 22:19                     ` Alex Schuster
2011-12-14 22:09                   ` Neil Bothwick
2011-12-15 12:21                     ` Tanstaafl
2011-12-15 12:57                       ` Tanstaafl
2011-12-14 12:17       ` Neil Bothwick
2011-12-14 12:28         ` Pandu Poluan
2011-12-14 14:42           ` Neil Bothwick
     [not found] <i7JkB-137-15@gated-at.bofh.it>
     [not found] ` <i7JkB-137-13@gated-at.bofh.it>
     [not found]   ` <i7Vvr-4Tn-1@gated-at.bofh.it>
     [not found]     ` <i7VON-5AP-19@gated-at.bofh.it>
     [not found]       ` <i7VYt-5Oh-5@gated-at.bofh.it>
     [not found]         ` <i7W8a-61I-15@gated-at.bofh.it>
     [not found]           ` <i7WKS-79V-17@gated-at.bofh.it>
     [not found]             ` <i7WKS-79V-15@gated-at.bofh.it>
     [not found]               ` <i7Z61-2AY-3@gated-at.bofh.it>
2011-12-16 16:32                 ` Indi
2011-12-13 21:40 Tanstaafl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox