08.30
Linux: How to check if my system is sending out emails
By Satish Natarajan
Please check in the file /var/log/maillog. I typically use tail -f /var/log/maillog
Findings, Tips & Tricks
Please check in the file /var/log/maillog. I typically use tail -f /var/log/maillog
Add this to your mysqld section in /etc/my.cnf
[mysqld]
log-slow-queries=/var/log/mysql/mysql-slow.log # where the file is located
long_query_time=1 # 1 sec is too slow
log-queries-not-using-indexes # I want to know which queries are run without indices
Here are the steps to add RPMForge (DAG) to CentOS
If you want to get the entire world of opensource software on your centos machine, you might want to enable support for multiple repositories.
The question is which takes priorities – Aha! that is when yum-priorities come into picture…
Here is how to install and configure
[base], [addons], [updates], [extras] ... priority=1
[centosplus],[contrib] ... priority=2
Third Party Repos such as rpmforge ... priority=N (where N is > 10 and based on your preference)
Use background: url(<image_url>) in CSS.
Looks like IE7 does not support <button></button> tags. So if you want to make a submit or any other button – please using <input type=”button”></input>
If you are using the action_mailer_optional_tls plugin and you want to send mail to a default SMTP server. Here is how the config should look else it throws the did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA error.
# Don’t care if the mailer can’t send
config.action_mailer.raise_delivery_errors = false
require “smtp_tls”
#set delivery method to : smtp, :sendmail or :test
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings= {
:tls => false,
:enable_starttls_auto => false,
:address => “localhost”,
:port => “25″,
:domain => “domain.com”,
}
The reason is that the plugin assumes it is always tls unless it is told not to.
Here is an example as to how you can skin the background
<mx:Style>
.myBackground {
backgroundImage: Embed(”assets/my_background.png”);
backgroundSize: “100%”;
}
</mx:Style>
<mx:HBox styleName=”myBackground” />