CRON has emailed me the extract below :May 12 04:27:54 rpi postfix/smtpd[9343]: NOQUEUE: reject: RCPT fromunknown[95.211.213.214]: 504 5.5.2 <WIN-HBAL58UG0JH>: Helo command rejected: needfully-qualified hostname; from=<admin@goodservers.com> to=<holly.jihad@gmail.com>proto=ESMTP helo=<WIN-HBAL58UG0JH>May 12 04:27:54 rpi postfix/smtpd[9345]: NOQUEUE: reject: RCPT fromunknown[95.211.213.214]: 504 5.5.2 <WIN-HBAL58UG0JH>: Helo command rejected: needfully-qualified hostname; from=<admin@goodservers.com> to=<holly.jihad@gmail.com>proto=ESMTP helo=<WIN-HBAL58UG0JH>May 12 04:27:54 rpi postfix/smtpd[9343]: NOQUEUE: reject: RCPT fromunknown[95.211.213.214]: 504 5.5.2 <WIN-HBAL58UG0JH>: Helo command rejected: needfully-qualified hostname; from=<admin@goodservers.com> to=<holly.jihad@gmail.com>proto=ESMTP helo=<WIN-HBAL58UG0JH>It was split unto multiple lines, for every entry like above, it made viewing the email somewhat harder. Is it possible to prevent these newlines?The CRON job is simply a command :muhammad@rpi ~ $ cat /etc/cron.daily/mail-important-logs #!/bin/sh# filter out useful logs and email mecat /var/log/mail.log | grep reject
how to prevent cron job email splitting into multiple lines
cron;email;postfix;smtp
dhag was on the right lines. It was squirrelmail wrapping the lines, when I exported the email it had no wrapping. Later I found a setting under options, which when I set really high took away the wrapping for my cron job logs.But this has the side effect that now all your emails are not wrapped up to that limit, unless the sender has manual new lines inserted.