New answers tagged sendmail
Try with the following uuencode <old-filename> <New filename> |mailx -s <filename> mailid
Usually, neither Postfix nor Sendmail are in charge of the location of users' mailboxes. Both of them hand off local mail delivery to a local delivery agent and it is the local delivery agent that is responsible for knowing the location and format of users' mailboxes. In your case, since you are using Dovecot with Maildir folders located in each user's home ...
Create a tarball of the directory first: tar -cvf attachments.tar.gz <directory> Then send that file: uuencode /path/attachments.tar.gz | sendmail -s "subject" user@domain
Top 50 recent answers are included