Re: [Server-devel] Postfix vs ssmtp conflict on XS 0.6

2010-01-29 Thread Martin Langhoff
On Thu, Jan 28, 2010 at 10:15 PM, Anna  wrote:
> Thanks, Martin!  I was hoping it would be OK.  Sometimes I never know what's
> going to break when I start messing with things.

:-)

> This hacky, crappy, inelegant script sends the recipient a simple email with

I sometimes use a similarly inelegant one called biabam. And I've
spotted another one in the fedora repo (can't recall the name now)
that is perl based.

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Postfix vs ssmtp conflict on XS 0.6

2010-01-28 Thread Anna
Thanks, Martin!  I was hoping it would be OK.  Sometimes I never know what's
going to break when I start messing with things.

I uninstalled postfix, installed and configured ssmtp for gmail, edited the
mail group for root (requires reboot), installed mutt with no further
configuration (the simple mail command doesn't handle attachments), and
downloaded and installed the sarg rpm (it's not in the repos).

This hacky, crappy, inelegant script sends the recipient a simple email with
the daily squid access report.  I tested it in crontab just to make sure.
The files are in zip archive for the Windows folks.  They do have to unzip
it and manage to open the index.html file.  But if folks want to see where
the kids are going on the internetz, this seems like an easy way to provide
that data right in their inboxes.

#!/bin/bash
recipient=exam...@example.com
today='date +%0e-%m-%Y';
mkdir /root/squid
sarg -l /var/log/squid/access.log -o /root/squid -z -d $today
zip -r internetlog.zip squid/
echo "This is the Internet activity log for $HOSTNAME" |mutt -a
internetlog.zip -s "$HOSTNAME Internet Log" $recipient
#Cleanup
rm -rf /root/squid
exit

Since I know this is a crappy script, you won't hurt my feelings if you
point out how awful it is.

Anna Schoolfield
Birmingham

On Thu, Jan 28, 2010 at 7:49 PM, Martin Langhoff
wrote:

> On Thu, Jan 28, 2010 at 7:35 PM, Anna  wrote:
> > On a test XS 0.6 box, I installed ssmtp and set up Gmail as the smtp
> server
> > (which is dead simple, btw).  In order to send mail, I had to uninstall
> > postfix, otherwise I got this error message:
> >
> > postdrop: warning: unable to look up public/pickup: No such file or
> > directory
>
> You can have them both installed, (Fedora/RedHat are very good at
> avoiding rpm conflicts) but I am sure that if you have them both
> *running* with default configs they'll conflict over port 25 and
> various other things.
>
> So yes, uninstallign postfix is recommended. Probably disabling it is
> enough (chkconfig --level 345 postfix off).
>
> > Is it going to break anything having uninstalled postfix or will I
> otherwise
> > run into unexpected issues?  Sometimes the XS is kinda weird about stuff
> > like that.
>
> We're weird, true. But removing postfix is ok.
>
> cheers,
>
>
> m
> --
>  martin.langh...@gmail.com
>  mar...@laptop.org -- School Server Architect
>  - ask interesting questions
>  - don't get distracted with shiny stuff  - working code first
>  - http://wiki.laptop.org/go/User:Martinlanghoff
>
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Postfix vs ssmtp conflict on XS 0.6

2010-01-28 Thread Martin Langhoff
On Thu, Jan 28, 2010 at 7:35 PM, Anna  wrote:
> On a test XS 0.6 box, I installed ssmtp and set up Gmail as the smtp server
> (which is dead simple, btw).  In order to send mail, I had to uninstall
> postfix, otherwise I got this error message:
>
> postdrop: warning: unable to look up public/pickup: No such file or
> directory

You can have them both installed, (Fedora/RedHat are very good at
avoiding rpm conflicts) but I am sure that if you have them both
*running* with default configs they'll conflict over port 25 and
various other things.

So yes, uninstallign postfix is recommended. Probably disabling it is
enough (chkconfig --level 345 postfix off).

> Is it going to break anything having uninstalled postfix or will I otherwise
> run into unexpected issues?  Sometimes the XS is kinda weird about stuff
> like that.

We're weird, true. But removing postfix is ok.

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


[Server-devel] Postfix vs ssmtp conflict on XS 0.6

2010-01-28 Thread Anna
On a test XS 0.6 box, I installed ssmtp and set up Gmail as the smtp server
(which is dead simple, btw).  In order to send mail, I had to uninstall
postfix, otherwise I got this error message:

postdrop: warning: unable to look up public/pickup: No such file or
directory

Is it going to break anything having uninstalled postfix or will I otherwise
run into unexpected issues?  Sometimes the XS is kinda weird about stuff
like that.

Anna Schoolfield
Birmingham
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel