Monday, 26 November 2012

linux mail, crontab

Sort the internal email settings.

$ sudo dpkg-reconfigure postfix

I managed to tie system mail into mutt and my provider somehow, but forgot how!  :(

(1) local only. 2)  postfix config:    markst.free-online.co.uk, no root address, (ms, localhost.localdomain, localhost), sync force, local networks, 5120000, no local addr extension, all IP protocols. 3) sudo touch /var/mail/ms; sudo chown ms /var/mail/ms.

This may be required for crontab mails to get home....

/var/log/cronlog has details of results.

gkrellm  shows there is mail.  Terminals do not.  On reading with, `mail' the mail is moved to ~/mbox

Add to .bashrc the following and new terminals will display the message.  Not on terminal creation, however:  only after hitting

Test with,

echo "test mail" | mail -s "test mail" $USER


export MAIL=/var/mail/$USER
export MAILCHECK=10


Test with,


echo "test mail" | mail -s "test mail" $USER

========

Then I copied old ~/.fetchmailrc, ~/fetchmailrcFreeonline, ~/.mailcap, ~/.msmtprc, ~/.muttrc

and mutt sprang to life!

No comments:

Post a Comment