Nick Read on 11 Oct 2004 15:07:02 -0000 |
Hi, I assume you would enter the script in logrotate.conf but where would you define the mail address for the logs to be sent to? Thanks. --- Nick Read <nick_read_001@yahoo.com> wrote: > Thanks > > I need to keep records of all mail flow through the > gateway so if anyone can recommend a more elegant > way > of doing this would be appreciated. > > Regards > > Nick > --- sean finney <seanius@seanius.net> wrote: > > > hi nick, > > > > On Mon, Oct 11, 2004 at 03:51:54AM -0700, Nick > Read > > wrote: > > > I would like some help please with emailing our > > mail > > > logs to an account. > > > > > > I am running Fedora2 and Sendmail 8.1 > > > > > > I have managed to get the logwatch logs to mail > > out > > > but not sure how to email our maillogs. > > > > assuming you actually have a good reason for > mailing > > mail > > logs, your best bet would be something like: > > > > /var/log/mail.log { > > # rest of your options > > prerotate > > mail -s "mail logs" root < /var/log/mail.log > > endscript > > } > > > > but i'd first ask yourself whether you really need > > those > > mail logs emailed in the first place, as opposed > to > > having some log > > summarizing script run over them. > > > > > > sean > > > > > ATTACHMENT part 2 application/pgp-signature > name=signature.asc > > > > > > _______________________________ > Do you Yahoo!? > Declare Yourself - Register online to vote today! > http://vote.yahoo.com > ___________________________________________________________________________ > Philadelphia Linux Users Group -- > http://www.phillylinux.org > Announcements - > http://lists.phillylinux.org/mailman/listinfo/plug-announce > General Discussion -- > http://lists.phillylinux.org/mailman/listinfo/plug > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|