Quote:
Originally posted by gdelaney
I have SuSE9 running sendmail 8.12.10 Is there any way to setup the mail queues or sendmail to forward mail under 2MB big and queue the larger mail till a set time when a cron or something can send it on its way?
|
One way to achieve this is to run sendmail in "queue only" mode. (see deliveryMode option). Write a script to scan for big files and move it to a different directory (say /var/spool/mybigfilequeue).
Run two cron jobs to process the directories (/var/spool/mqueue and /var/spool/mybigfilequeue) at your specified times using "-q". See sendmail doc.
There might be a simpler way. Try asking in sendmail forum. You might get a reply from the guru (claus assman)