I have a backup script written in php. It uses tar commands to back up an entire domain then Rmail to send the file to a single email account for storage.
Everything works correctly if I test with just a single directory, but doesn't email when tarring the entire domain. This leads me to believe that the sendmail has a limitation on the attachment size. I haven't found any way to set this size in the Rmail script (unless I'm just over-looking it.)
I don't have the access needed to edit the sendmail.cf suggested in other solutions I found and this same thing will be done on a couple dozen domains scattered on different hosts.
Anyone have any suggestions on either breaking the tar into smaller files or a way to increase the attachment size allowed through Rmail? I'll include the rmail.php file here in case it helps.
And the code attached is what tars the domain files from a backup directory.
system("tar cvf $filepath ../");