How do I configure sendmail to relay outbound email under Linux?

  • Install prerequisite packages:
yum -y install sendmail-cf
  • Open the configuration file /etc/mail/sendmail.mc for editing
  • Locate the section below and uncomment the SMART_HOST line:
dnl # Uncomment and edit the following line if your outgoing mail needs to
dnl # be sent out through an external mail server:
dnl #
dnl define(`SMART_HOST', `smtp.your.provider')dnl
  • Configure appropriately, like below:
define(`SMART_HOST', `mail.corporatedomain.net')dnl
  • Apply the changes and refresh sendmail:
make -C /etc/mail/
service sendmail reload

How do I configure my Linux server to automatically apply software updates?

You Red Hat Enterprise Linux server may already be configured to automatically apply security and bug fix updates via Red Hat Network. To verify:

grep do_update /etc/yum/yum-updatesd.conf
service yum-updatesd status

If the output doesn’t show that updates are enabled and yum-updatesd is running, enable automatic updates with the following commands:

cp /etc/yum/yum-updatesd.conf /etc/yum/yum-updatesd.conf.`date +%Y%m%d.%H%M%S`
sed -i 's/do_update = no/do_update = yes/g' /etc/yum/yum-updatesd.conf
sed -i 's/do_download = no/do_download = yes/g' /etc/yum/yum-updatesd.conf
sed -i 's/do_download_deps = no/do_download_deps = yes/g' /etc/yum/yum-updatesd.conf
service yum-updatesd restart
You will need to reboot to apply any disruptive software updates, such as kernel updates. Automatically updating the kernel may require drivers not provided by Red Hat to be rebuilt.

How do I forward root’s mail to another email address?

It may be useful to create an alias for the root user’s email address, so that another user or group of users receives important system messages.

  • Open the /etc/aliases file for editing
vim /etc/aliases
  • Append a line to the bottom redirecting mail to an external email address
root:           dawit. gebru @epicor.com
  • Refresh the aliases database
newaliases

Can I use my Linux server as a network print server?

The Eclipse database server running Red Hat Enterprise Linux certainly has the capability to function as a print server for the rest of your network, however most Eclipse customers choose to use integrate both their domain controller and print server duties on the Windows platform.

Eclipse Support will provide assistance with any issues printing from Eclipse, but we support for general network printing issues is not covered under the Eclipse support contract. If you choose to use the RHEL server as a print server and require support, the best contact would be your RHEL support provider:

There is handy reference information on setting up and managing print queues in the Red Hat System Administration Guide.