I am using the mail command that comes with OMV (Debian?) and it seems to miss the Attachment flag.
Usually Linux mail command comes with this flag
but in OMV's mail [-A] doesnt work and instead shows this:
I am using the mail command that comes with OMV (Debian?) and it seems to miss the Attachment flag.
Usually Linux mail command comes with this flag
but in OMV's mail [-A] doesnt work and instead shows this:
Openmediavault uses Postfix
I use s-nail to send mails with attachements.
s-nail(1) — s-nail — Debian bullseye — Debian Manpages
e.g.
echo "rsync finished. Find output attached" | s-nail -s "rsync finished" -a "/var/log/rsync.txt" MyPersonal@mail.com
However, mail should work as well with -A
QuoteHowever, mail should work as well with -A
Thats what I thought but that option doesn't exist on OMV's mail
I also cannot find a version number.
"man mail" also shows no option for attachments.
MAIL(1) BSD General Commands Manual MAIL(1)
NAME
mail, mailx, Mail — send and receive mail
SYNOPSIS
mail [-dEIinv] [-a header] [-b bcc-addr] [-c cc-addr] [-r from-addr] [-s subject] [--] to-addr ...
mail [-dEIiNnv] -f [file]
mail [-dEIiNnv] [-u user]
DESCRIPTION
mail is an intelligent mail processing system which has a command syntax reminiscent of ed(1) with lines replaced
by messages.
Display More
QuoteI use s-nail to send mails with attachements.
Thanks macom
s-nail works well, although s-nail -r "sender@domain.net" does not show the correct sender. This always gets overwritten by the sender-email configured in OMV's Notification settings.
How is it possible to use s-nail with "-r" ?
Don't know, sorry. Never tried to change the sender mail address.
Don’t have an account yet? Register yourself now and be a part of our community!