Re: [Fedora] Sendmail's 2GiB limit?



Ashley M. Kirchner wrote:
That was easier said than done. Once I recompiled sysklogd and
installed the new binary, restarted and all that jazz, when I tried to
start sendmail back up (with the >2 GiB file in place) I got this:

> service sendmail start
Starting sendmail: 451 4.0.0 cannot open /var/log/sm-mta: File too large


If I'm not mistaken, those error codes are sendmail's. *sigh*

Now I have to write another script just to work in conjunction with
logrotate and rotate twice a month. At the end of the month, take both
files and cat them together and then zip it up. This is just stupid in
my opinion.

Well, the problem has more to do with how libc is written, and with
the default size of things like int in C on a 32 bit machine. It is
not an easy fix. I leave it to someone else to explain the
performance hit you would take trying to change it everywhere.

Now, as far as getting logrotate to rotate the mail logs more often,
you remove /var/log/maillog from /etc/logrotate.d/syslog and create
your own entry just for that log file. You may want to consider
rotating based on size, or rotate daily/weekly, and use the dateext
option to date when the logs were created. If you go this route,
don't forget to increase the rotate count in your maillog rule.

I used to have a call logging program that would rotate logs daily,
with month/day extension, and then a monthly backup that would
bundle the daily backups into a monthly archive, and remove the
daily logs. If you are going to archives the logs, it can be handy
to be able to grab the logs for a specific day. I know, you can use
grep to grab matching dates, but if the logs are large, then having
smaller files to work with can be handy.

Mikkel
--

Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: linking a dir
    ... MM> Unless you're specifying it at boot, ... MM> Alternatively, if your logs are rotated by newsyslog, you could keep ... as the scripts rotate them automatically.. ... IMAPS server which has its bin, doc, and man dirs under /opt ...
    (freebsd-questions)
  • Re: Apache Rotate Logs and Log Rotate.
    ... Rotate logs makes a new log every ... The newsyslog software is part of FreeBSD's base system, ...
    (freebsd-questions)
  • Re: [SLE] confirming logrotate has occured
    ... I have to rotate those, ... > well as the firewall logs, ... create 640 root root ... I have done 'man logrotate' & the ...
    (SuSE)
  • [SUMMARY] rotating squid logs using logadm
    ... Though Bill did not directly give me the answer he pointed out ... The logs get copied and truncated. ... After that I tell squid to rotate the logs ...
    (SunManagers)
  • [opensuse] logrotate and crontab
    ... I've been having a look on how crontab is setup on default Suse 9.2/10.0/10.1 servers, ... it's important for me because i want to schedule sarg at 2 pm and i want to be sure that i always run logrotate (to rotate squid logs) exactly might. ...
    (SuSE)