Вопрос по email, linux – linux mail
14

Error: User Rate Limit Exceeded

 mail -s "here is a log file" "[email protected]" < log/logfile.log

Error: User Rate Limit Exceeded

User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Error: User Rate Limit Exceeded

User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64

Error: User Rate Limit Exceededman mail ...

NAME
       mailx - send and receive Internet mail

SYNOPSIS
       mailx [-BDdEFintv~] [-s subject] [-a attachment ] [-c cc-addr] [-b bcc-addr] [-r from-addr] [-h hops]
              [-A account] [-S variable[=value]] to-addr . . .

Error: User Rate Limit ExceededContent-Type: text/plain?

Ваш Ответ

5   ответов
3

Error: User Rate Limit Exceeded

sudo yum -y install bsd-mailx
sudo alternatives --set mail /usr/bin/bsd-mailx

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

sudo alternatives --display mail

Error: User Rate Limit Exceeded

sudo rpm -qa *mailx
2

LC_NAME=fr_FR.UTF-8
LC_ALL=fr_FR.UTF-8
Error: User Rate Limit Exceededen_US.UTF-8
3

sudo apt-get install bsd-mailx 
sudo apt-get remove heirloom-mailx

Error: User Rate Limit ExceededheirloomError: User Rate Limit ExceededmanError: User Rate Limit ExceededmailxError: User Rate Limit Exceededmailx -VError: User Rate Limit Exceeded
11

MIME TYPES

Otherwise, or if the filename has no extension, the content types text/plain or application/octet-stream are used, the first for text or international text files, the second for any file that contains formatting char‐ acters other than newlines and horizontal tabulators.

application/octet-stream

Including the log file as an attachment (using -a) instead of the main message body, and set up your ~/.mime.types file to identify *.log files as text/plain. Filter out control characters using something like tr.

Use another MUA such as mutt to send the mail. In fact, you could just craft a message yourself and send it directly to sendmail:

(
  echo To: [email protected]
  echo From: [email protected]
  echo Subject: a logfile
  echo
  cat logfile.log
) | sendmail -t
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded KCD
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded KCD
Error: User Rate Limit ExceededstringsError: User Rate Limit Exceeded
8

cat -v log/logfile.log | mail -s "here is a log file" "[email protected]"

.

Error: User Rate Limit Exceeded

Похожие вопросы