[Server-devel] Postfix vs ssmtp conflict on XS 0.6
aschoolf at gmail.com
Thu Jan 28 22:15:25 EST 2010
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.
recipient=example at example.com
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
rm -rf /root/squid
Since I know this is a crappy script, you won't hurt my feelings if you
point out how awful it is.
On Thu, Jan 28, 2010 at 7:49 PM, Martin Langhoff
<martin.langhoff at gmail.com>wrote:
> On Thu, Jan 28, 2010 at 7:35 PM, Anna <aschoolf at gmail.com> wrote:
> > On a test XS 0.6 box, I installed ssmtp and set up Gmail as the smtp
> > (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
> > run into unexpected issues? Sometimes the XS is kinda weird about stuff
> > like that.
> We're weird, true. But removing postfix is ok.
> martin.langhoff at gmail.com
> martin at 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Server-devel