Friday, July 4, 2008

Fedora 9: Smart Host Sendmail HowTo

Sendmail can be configured to send emails directly to destination host or email server. However, network traffic congestion, email destination location, and connectivity rate sometimes affect and tend to fail a successful email delivery.

Medium and large type of private networks are traditionally behind a firewall. This type of network usually sends emails directly to internal destination host and if all fails, elects a smart host, which is located outside their firewall, as their smart host email server to send emails to mostly external destination hosts. Having a smart host and gateway email server, relieves a lot of failing factors from sending emails directly from source to external destination host.

Sendmail provides a quick and simple method of configuring a smart host. Here's a quick run down on how to configure your sendmail to act as smart host.

Configure Sendmail as Smart Host


Minimum Requirements

1. Fedora or Linux Box
2. Existing and Working Sendmail Setup
3 .Existing DNS Setup
Configuration Steps for Sendmail as Smart Host

To create a smart host from your sendmail, backup and edit your sendmail conf file

# vi /etc/mail/sendmail.cdf

Look for sendmail directive line similar below and modify it

dnl define(`SMART_HOST', `smtp.your.provider')dnl

Simply replace 'smtp.your.provider' with your email gateway server and remove the starting and ending 'dnl' words from the line . The new sendmail smart host directive will look like

define(`SMART_HOST', `you-smtp.your.provider')

Save and exit.

Recompile sendmail configuration file

# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

Restart sendmail daemon service

# service sendmail restart

When an email failed to be delivered, sendmail smart host will act as a fallback failover mechanism on sending failed emails from local sendmail source to smart host STMP server then going to email destination server.

Happy Independence Day

We're taking the day off to celebrate the US Independence Day holiday. We intend to reflect on traditional American values such as freedom of speech and religion, fairness, justice, respect for the rule of law, the right to pursue happiness, standing up for the underdog, and taking responsibility for one's actions. We suggest other US residents do the same, and hold their elected leaders to the same if not higher standards. Then we suggest everyone have a barbecue and watch some fireworks.

..


Complete Story

Happy Independence Day

We're taking the day off to celebrate the US Independence Day holiday. We intend to reflect on traditional American values such as freedom of speech and religion, fairness, justice, respect for the rule of law, the right to pursue happiness, standing up for the underdog, and taking responsibility for one's actions. We suggest other US residents do the same, and hold their elected leaders to the same if not higher standards. Then we suggest everyone have a barbecue and watch some fireworks.

..


Complete Story

Garmin Nav devices run Gnome Linux

Garmin has posted Linux source code for its Nuvi 8xx and Nuvi 5xxx-series GPS navigation devices. The Nuvi 8xx offers a 4.3-inch, 480x272 display, and appears to be based on a Marvell PXA-3xx processor, Gnome Mobile Linux, and GeoClue location technology...


Complete Story

Flash 10-beta2 Linux

Flash Player 10 beta 2 was released on 7/2/2008 and includes new features and bug fixes...


Complete Story

Garmin Nav devices run Gnome Linux

Garmin has posted Linux source code for its Nuvi 8xx and Nuvi 5xxx-series GPS navigation devices. The Nuvi 8xx offers a 4.3-inch, 480x272 display, and appears to be based on a Marvell PXA-3xx processor, Gnome Mobile Linux, and GeoClue location technology...


Complete Story

Flash 10-beta2 Linux

Flash Player 10 beta 2 was released on 7/2/2008 and includes new features and bug fixes...


Complete Story

Invitrogen buys into Novell's SUSE Linux

Invitrogen is a billion-dollar supplier to pharmaceutical and biotechnology companies, with 4,700 employees worldwide and a history of supplying many of the world's leading laboratories in groundbreaking research like the discovery of the AIDS virus.

Complete Story

Invitrogen buys into Novell's SUSE Linux

Invitrogen is a billion-dollar supplier to pharmaceutical and biotechnology companies, with 4,700 employees worldwide and a history of supplying many of the world's leading laboratories in groundbreaking research like the discovery of the AIDS virus.

Complete Story

Fedora 9: Wordpress Install HowTo


WordPress is a state-of-the-art publishing platform with a focus on aesthetics, web standards, and usability. WordPress is both free and priceless at the same time.


More simply, WordPress is what you use when you want to work with your blogging software, not fight it.

If your desktop is currently being powered by Fedora, here's a run down how to install the latest stable release of Wordpress for Fedora OS.

Fedora 9: Wordpress Installation

Basic Requirements:

1. Fedora 9 OS

2. Existing MySQL server

3. Internet Connectivity

You can install Wordpress from one of Fedora repo using yum . As root, install wordpress like so

# yum -y install wordpress

Yum downloads around 1.2MB of wordpress rpm package file. The rpm package installs wordpress and its configuration files to the following folders

/etc/wordpress/

/usr/share/wordpress/

Wordpress Configuration Setup

Backup your original wordpress conf file and modify /etc/wordpress/wp-config.php to suit your current MySQL access setup.

define('DB_NAME', 'putyourdbnamehere'); // The name of the database
define('DB_USER', 'usernamehere'); // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value

Wordpress Database Creation

1. Make sure your MySQL daemon service is currently running. If your MySQL server is not currently running, simply start MySQL service like so

# service mysqld start

2. Log on to your MySQL to create a database for Wordpress

# mysql -u your-sql-username -pyour-sql-password

3. Create your Wordpress database

mysql> create database putyourdbnamehere;

For successul database creation, you should be seeing similar lines like

Query OK, 1 row affected (0.01 sec)

4. Then, quit from MySQL

mysql> quit

5. Make sure your Apache HTTP sevice is up and running. If not,

# service httpd start

6. Browse your Wordpress and point your browser to http:/your-ip-address/wordpress and start blogging from your desktop.

Wordpress Troubleshooting

1. The default wordpress URL is currently /wordpress, that is http://your-ip-address/wordpress. To change the default wordpress URL, simply backup and modify your /etc/http/conf.d/wordpress.conf file that contains the following lines of directives.

Alias /wordpress /usr/share/wordpress

<Directory /usr/share/wordpress>
AllowOverride Options
</Directory>
Save after any directive changes and restart Apache HTTP service. Try to browse your wordpress URL again.

2. If you encounter "Error establishing database connection", simply make sure that your wordpress database has been created and your MySQL service is up and running.

If same problem persists, make sure that the line from /etc/wordpress/wp-config.php following the variable word DB_NAME is the same database name that you have recently created. Confirm also that your MySQL username and password is typed correctly.

# service mysqld start

Then try to browse your wordpress URL site again.

Successful Wordpress Installation

If all goes well, you should be seeing your first step image similar below

Wordpress


Simply proceed with the instructions shown from your wordpress URL similar to the image shown above.

Completion of Wordpress installation can be easily done using the wizard type of installation from your box HTTP URL.

To read more, visit wordpress.org

Related Post:

Plone CMS Installation on Fedora

Microsoft rebuilds open source Sandcastle

Microsoft is apparently serious about its efforts to adhere to the letter of the Open Source Definition and is now set to relaunch its Sandcastle effort as a result. Nearly a month ago Microsoft pulled the Sandcastle project from its CodePlex site because it was listed as being open source (under the OSI approved Ms-PL) when in fact it wasn't because it didn't adhere to the licensing terms of open source. Sandcastle which is a documentation compiler for managed class libraries did not have source code open and available for download.

Read from Source

Microsoft rebuilds open source Sandcastle

Microsoft is apparently serious about its efforts to adhere to the letter of the Open Source Definition and is now set to relaunch its Sandcastle effort as a result. Nearly a month ago Microsoft pulled the Sandcastle project from its CodePlex site because it was listed as being open source (under the OSI approved Ms-PL) when in fact it wasn't because it didn't adhere to the licensing terms of open source. Sandcastle which is a documentation compiler for managed class libraries did not have source code open and available for download.

Read from Source

Why I Dumped Beryl for Metacity

(Review) - For a number of reasons, I have opted to leave my cube spinning days behind me, as it just did nothing for me. Certain applications ran poorly in Beryl, and while no fault should be placed on its development, I was finding myself booting into Metacity more and more for my GNOME desktop.

Complete Article

Why I Dumped Beryl for Metacity

(Review) - For a number of reasons, I have opted to leave my cube spinning days behind me, as it just did nothing for me. Certain applications ran poorly in Beryl, and while no fault should be placed on its development, I was finding myself booting into Metacity more and more for my GNOME desktop.

Complete Article

Microsoft "endorses" Linux?

Bravo for interoperability. But Microsoft gets paid to put Novell, Red Hat, etc. out of business. That is its fiduciary duty. The minute Novell starts cutting into Microsoft's profits is the minute that Microsoft's "endorsement" disappears.

Complete Story

Microsoft "endorses" Linux?

Bravo for interoperability. But Microsoft gets paid to put Novell, Red Hat, etc. out of business. That is its fiduciary duty. The minute Novell starts cutting into Microsoft's profits is the minute that Microsoft's "endorsement" disappears.

Complete Story

Thursday, July 3, 2008

Wanted Non-Swimmer as Lifeguard

This may seem a bizarre title but this is effectively what has happened today when a BECTA contract, to set up an open source community in the schools sector, was awarded to a company with no open source experience. What is even more bizarre is that they were chosen over companies with deep open source experience. No-Swimmer over Ian Thorpe type of choice.

..


Complete Story

EU pushes open-source standard as 'smart business'

Today the EU called on member governments to use open source:



..


Complete Story

Why Linspire Should Drop Linspire

(Column) - Do you see what is happening here? Whether or not Linspire understands what is going on, Canonical is prepping to pick-up where Linspire left off. It will be a new means of software distribution, but bundled in a much more widely used distribution of Linux.


For the Love of Humanity, Let It Go. In light of an upcoming interview I'm doing with Linspire's new CEO, I want to be as kind as possible: stop trying to be a distribution company. They could completely drop the hassles of promoting the Linspire OS by becoming "CNR, Inc." Linspire's CNR could become their exclusive focus and truly serve the Linux community with more choices, not another Microsoft supported distribution of Linux. After further consideration, continuing to support Freespire, while remaining unattached to it might work in the long-term, however. The distro, while not as popular as other distributions, does have its own market share, and thus far Linspire appears to be happy with this.


On the flip side of this, however, once Linspire finally releases restricted media codecs 'legally' (US Law) to American Ubuntu users via CNR, there will be little reason for American Linux OEMs to bother at all with Freespire. I'm not trying to be unfair, but it is only logical. Freespire's two saving graces are CNR and legal access to restricted media codecs. I used Linspire personally for over two years, so I'm not talking as some Linux fanatic looking to initiate a flame war. I'm being completely honest.



Complete Story

OpenMoko FreeRunner Linux phone to launch on July 4

OpenMoko has announced plans to launch the Linux-based FreeRunner mobile phone on July 4. The highly-anticipated open source handset will be distributed through OpenMoko's web-based store and will begin shipping on July 7. The FreeRunner will also be available from several vendors in Europe and India...


Complete Story

Playable demo of first Blender Open Game released!

Blender's first open game, codename "Apricot" and featuring the characters from Blender's open movie "Big Buck Bunny", is making great strides forward, with the first playable demo now released to the public...


Complete Story

9 Web browsers for Linux

Firefox is a great web browser, there is absolutely no argument about that. However those of us who are using linux long enough have went by quite well without it, and some still do. In the spirit of linux and open source (not so much for opera), it is only fair that we are aware of alternate options for linux browsers out there. Here is an attempt to list some of the linux browsers actively developed and updated. This list is not comprehensive, most of these browsers are not exclusive to linux OS; and because most modern browsers use gecko engine and evolved from mozilla/netscape some of them have familiar layouts. If I missed out any popular browser do let me know in your comments

Complete Story

Fedora 9: Quick Sendmail MTA Setup

Long before the decades of email servers begun, a postman's job is highly critical on delivering postal mails, not to consider those old transportation means to travel those postal mails and deliveries across the country and states. Technology is continuously evolving.

Gone were the days on spending almost the whole day configuring a linux server to act as a production email server gateway considering those old time efforts of gathering a widely dispersed and missing library module dependencies for a successful email server source codes compilation. Those days are over.

Now, here's a quick post on how to basically setup your Fedora 9 desktop to simply act as your email server gateway to internet world. If you wish to setup an email server using Sendmail as your MTA, read on.

Fedora 9: Sendmail Server Quick Setup

Basic requirements:

1. Fedora Linux OS

2. Configured and working DNS setting

3. Internet connectivity

Sendmail Installation Steps

Install sendmail rpm package via yum

# yum -y install sendmail

The above command install all required sendmail files. All vital sendmail configuration files are mostly installed to /etc/mail/ .

Starting Sendmail Daemon Service

By default configuration setup, sendmail is being run as root to port 25 of your host's localhost (127.0.0.1) interface. Considering you have a working DNS setup and a routing public IP address facing the internet, you should be able to send emails going to outside world using sendmail MTA from your localhost interface.

However, this type of default setup accepts email connections only from your host's localhost port 25 and does not accept any incoming email connections nor any email relays from outside world and not even from other PCs near your email server box.

I just could not accept the fact why Yahoo mail servers could not accept incoming emails from this type of sendmail default setup, while other servers including GMail accepts incoming emails originally relayed and queued from this type of default sendmail setup. Perhaps, Yahoo concludes that replying from that email would be incomplete and useless then.

Starting Sendmail MTA

# service sendmail start

As long as you have a routing public IP address facing the internet, a working DNS setup with proper hostname configuration, and without any local firewall restrictions, sendmail should start successfully and you should be able to send emails going to outside world.

Normally, if you have a non-routing IP address or you have only localhost as your active interface, your sendmail should just queue up and fail on sending emails to internet world.

Sendmail Service Verification

# telnet localhost 25

A telnet to locahost port 25 should give you current sendmail package version and your email box name like so

220 your.hostname.box ESMTP Sendmail 8.14.2/8.14.2;

* hit Control + ] to quit

Checking Sendmail Process

# ps -ef | grep sendmail

# ps -axuw | grep sendmail

Enable Sendmail Between Reboots

# chkconfig sendmail on

Checking Sendmail Queued Mails

# mailq

Sending Sendmail Test Email

# mail -s "Subject"  username@gmail.com

test

.

Alternatively, to send a test email from CLI

# echo "email body" | mail -s "Test Root Email" root@localhost

Monitoring Sendmail Log Activity

# tailf /var/log/maillog

Sendmail Log Rotation

# vi /etc/logrotate.d/syslog

HTH

Speaking UNIX: Just a few clicks

Edit the command-line like an expert

The way you interface with a computer is changing constantly. Operating systems that once started as a command line-only interface have moved to a graphical front end. Sometimes, however, moving away from the building blocks that made the operating system isn't necessarily a step in the right direction. More often than not, moving toward a graphical user interface (GUI) means losing functionality; in addition, users become less inclined to learn more of the computer they’re working with. Thankfully the AIX operating system—like other UNIX® and Linux® systems—has kept to what's important: the stability, functionality, and robustness of a computer's operating system.

The various UNIX and Linux vendors have kept a strong grasp of the importance behind the CLI of an operating system. But for reasons of automation, making computing easier for users, or something else, users have either forgotten or never learned the ins and outs of the CLI. This article sheds some light on the CLI for those users who haven't touched it much or for those who may need a little nudge to remember why it's so important to administration, development, and general UNIX computing.

See Full Story

Linux-based cell phone drops July 4

The Openmoko Neo Freerunner, a Linux-based cell phone that “will help enable ubiquitous computing in the 21st century,” will be on sale starting July 4, with shipping to begin July 7.

According to company specs, the phone utilizes GNU/Linux and comes with core software for dialing, SMS and recording contacts.  Openmoko will supplement these features with periodic downloads beginning with a software suite that takes full advantage of the phone’s hardware platform.

Complete Story

Ten tips for securing Linux desktops

Out of the box, a Linux desktop is far more secure than most others.

However, this level of security is not necessarily attained through typical security-focused software or techniques. Sometimes, the easiest means to security are those that are the easiest to forget.

You might find these suggestions to be pure common sense, but maybe you'll see a means of security you never thought of before. If you're a new Linux user, these tips are a great place to start to ensure that your Linux experience is a good one.

Complete Story

How to write a thorough review of a Linux distribution

I have never written a review of a Linux distribution, but I've read more than I can count, and many of them have been maddeningly incomplete and not worth the time it took to read them. Here's a list of items you need to talk about in order to write a thorough review, covering every aspect of the distribution from the initial download to the final recommendation and everything in between.

..


Complete Story

OpenOffice.org extension will add PDF editing

Easy PDF editing is coming to OpenOffice.org, but you'll have to be patient for a few months. Recently posted to the OpenOffice.org Extensions site, the Sun PDF Import extension (SPI) is only in beta, and only works with recent developer builds of OpenOffice.org 3.0, which is scheduled for September release. Right now, the quality of the final release is anybody's guess, but the beta's capabilities fall squarely in the middle of the available PDF import tools.

..


Complete Story

Graphics board vendor touts faster Linux drivers

AMD has released faster new ATI Catalyst drivers for Linux customers of its ATI FireGL professional graphics cards. The 8.49.7 Linux driver provides 33 percent faster OpenGL performance than the previous driver, claims the company...


Complete Story

10 Best Hacking and Security Software Tools for Linux

Linux is a hacker’s dream computer operating system. It supports tons of tools and utilities for cracking passwords, scanning network vulnerabilities, and detecting possible intrusions. I have here a collection of 10 of the best hacking and security software tools for Linux...


Complete Story

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy