home   |   about us   |   our network   |   services   |   affiliates   |   contact
 
Services
» Web Hosting
» Reseller Hosting
» Dedicated Servers
» Windows/ASP.net Hosting
» Managed Web Hosting
» Server Security / Auditing
» Remote Backup / Storage
» Linux VDS
» Windows VDS
 
Support
» Support Desk
» Client Login
» Forums
» FAQs
» Help Files
» Acceptable Use Policy
» Client Testimonials
» Blog
 
Tutorials
» Dedicated Server Tutorial
» Website Optimization
» Search Engine Optimization
» Web Hosting Tutorials
» Web Programming Tutorials
» Networking Tutorials
» Virtual Server Tutorials
» Resources

The Crucial Blog

May 22, 2009

How to install Sendmail on a new server?

yum install sendmail

If you are getting the following error in /var/log/maillog while sending an email
————————–
Dec 4 09:01:28 servername sendmail[12467]: iA4H1SCV012467: to=whoever@domain.com, ctladdr=whatever
(whatever/groupid), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30059, relay=[127.0.0.1]
[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
——————————-

1) Make sure that 127.0.0.1 is listed in /etc//access and /etc/hosts.

2) In the file /etc/mail/sendmail.mc comment out the line below by prepending it with ‘dnl”,like

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

3 Rebuild sendmail.cf

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

4)Restart sendmail

service sendmail restart

While rebuilding, some times we may encounter the following error:
=======================
/etc/mail/sendmail.mc:10: m4: cannot open `/usr/share/sendmail-cf/m4/cf.m4′: No such file or directory
======================
Then

>> yum install sendmail-cf

After that repeat, step 3 and 4. Now try to send mail using “mail -v” and it should work fine.

Thanks Gopi for this article!

Tags: , ,

Filed under: Uncategorized by — aaron @ 12:44 am


Leave a Reply



     

Quick Links: Debian Dedicated Servers, Direct Deposit Hosting, Unmetered Dedicated Servers, Virtual Dedicated Servers, Windows Server Management, High Traffic Web Hosting - Load Balanced Clusters, Windows 2008 Server Virtual Dedicated Servers