Difference between revisions of "Short Notes on Linux Administration"
From PaskvilWiki
(Created page with "=== Reset Compiz to Default Settings === gconftool-2 --recursive-unset /apps/compiz and restart.") |
|||
Line 3: | Line 3: | ||
gconftool-2 --recursive-unset /apps/compiz | gconftool-2 --recursive-unset /apps/compiz | ||
and restart. | and restart. | ||
+ | |||
+ | === Enable and Start <tt>sendmail</tt> === | ||
+ | |||
+ | 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 <tt>sendmail</tt> 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 <tt>sendmail</tt> over <tt>mail</tt> is that the ''from'' address need not be a valid email address... well... advantage? |
Revision as of 01:18, 24 July 2011
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?