Short Notes on Linux Administration

From PaskvilWiki
Revision as of 01:18, 24 July 2011 by Admin (Talk | contribs)

Jump to: navigation, search

Reset Compiz to Default Settings

gconftool-2 --recursive-unset /apps/compiz

and restart.

Enable and Start sendmail

If you're getting "stat=Deferred: Connection refused by [127.0.0.1]" log messages from sendmail, try adding the following line to your /etc/mail/sendmail.mc file:

DAEMON_OPTIONS(`Port=smtp, Addr=127.0.0.1, Name=MTA')

under the "General defines" section.

Also, make sure the sendmail daemon is running:

ps aux | grep sendmail

If not, run it using

sendmail -bd -q1m

where -q parameter chooses how often the email queue's new messages should be processed (here, every minute).

To test if this all works, use

echo -e "Subject: Hello\nTesting the mailer..." | sendmail -f test@test.com myrealaddress@mail.com

The advantage of sendmail over mail is that the from address need not be a valid email address... well... advantage?