Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
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 ♫ ❤ ♫ ❤ ♫ ❤ ♫ ❤
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-15 7:21 AM, Tanstaafl 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!
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-14 5:09 PM, Neil Bothwick 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!
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
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
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
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? signature.asc Description: PGP signature
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-14 4:09 PM, Neil Bothwick 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...
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
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 signature.asc Description: PGP signature
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-14 3:59 PM, Urs Schutz 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?
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On Wed, 14 Dec 2011 15:29:44 -0500 Tanstaafl wrote: > On 2011-12-14 10:29 AM, Tanstaafl > 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" ad...@myserver.com > li66-207 ~ # > Did you send this as user? What about sending this from the root account? Urs
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-14 10:29 AM, Tanstaafl 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" ad...@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?
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-14 8:05 AM, Tanstaafl wrote: On 2011-12-14 8:00 AM, Tanstaafl 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 3072: Maximum message size is 3072 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...
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
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! signature.asc Description: PGP signature
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-14 8:00 AM, Tanstaafl wrote: So... does nullmailer even support STARTTLS? Crap, apparently not... http://untroubled.org/nullmailer/TODO back to square one...
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-14 7:25 AM, Tanstaafl 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?
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On Dec 14, 2011 7:22 PM, "Neil Bothwick" 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,
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-14 7:16 AM, Pandu Poluan 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?
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
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. signature.asc Description: PGP signature
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On Dec 14, 2011 7:08 PM, "Tanstaafl" wrote: > > On 2011-12-14 6:43 AM, Tanstaafl wrote: >> >> On 2011-12-13 5:42 PM, Leho Kraav 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= --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,
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-14 6:43 AM, Tanstaafl wrote: On 2011-12-13 5:42 PM, Leho Kraav 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= --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...
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-13 5:42 PM, Leho Kraav 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!
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
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.
[gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
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= AuthPass= 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 : Client host rejected: Access denied')} Anyone have any ideas? Thanks, Charles