LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-18-2011, 11:40 PM   #1
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Rep: Reputation: 16
Sendmail server


Hi friends,

When i start sendmail service i got like this erro.

Shutting down sendmail: [FAILED]
Starting sendmail: sendmail: usage: sendmail [ -t ] [ -fsender ] [ -Fname ] [ -bp ] [ -bs ] [ arg ... ]
[FAILED]
Starting sm-client: sendmail: illegal option -- L
sendmail: usage: sendmail [ -t ] [ -fsender ] [ -Fname ] [ -bp ] [ -bs ] [ arg ... ]
[FAILED]

Previously qmail is running. now i configured sendmail. i am using centos5.2
Thanks for any solutions.
 
Old 01-19-2011, 12:40 AM   #2
A.Thyssen
Member
 
Registered: May 2006
Location: Brisbane, Australia
Distribution: linux
Posts: 153

Rep: Reputation: 44
It probably means sendmail was not installed!

Install it THEN uninstall the other mail handler.
 
Old 01-19-2011, 02:51 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,800

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
You are still running the sendmail replacement that comes with qmail. Check the symlink
Code:
ls -l /usr/sbin/sendmail
and change it to point to the actual sendmail (iirc in Centos it's /etc/alternatives/mta)
Or uninstall qmail and reinstall sendmail

Regards
 
Old 01-19-2011, 05:16 PM   #4
A.Thyssen
Member
 
Registered: May 2006
Location: Brisbane, Australia
Distribution: linux
Posts: 153

Rep: Reputation: 44
Make sure you install sendmail first, then uninstall qmail
If you don't you will get dependency hell!
 
Old 01-19-2011, 11:02 PM   #5
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
sendmail server

Quote:
Originally Posted by A.Thyssen View Post
Make sure you install sendmail first, then uninstall qmail
If you don't you will get dependency hell!
Thanks for the reply.

I install qmail and install sendmail rpms.
now i restart sendmail service nothing i will get.
just i got prompt aganin. no logs i cant find. strange.
Please help me how to sorted out this.
 
Old 01-19-2011, 11:41 PM   #6
A.Thyssen
Member
 
Registered: May 2006
Location: Brisbane, Australia
Distribution: linux
Posts: 153

Rep: Reputation: 44
uninstall qmail now.

Also sendmail by default is not set up to recieve mail from a remote system, only local mail which it will then remotely send.

To change this you also need the sendmail-cf package
edit the "/etc/mail/sendmail.mc" file, and run "make" in that directory.
 
Old 01-19-2011, 11:53 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,374

Rep: Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383
Use the 'alternatives' cmd http://shriikant.blogspot.com/2009/0...hel-based.html and also see Chap 23 http://www.linuxtopia.org/online_boo...ion/index.html
In particular, see this note re enabling sendmail to send/recv outside the box it's on
Quote:
The default sendmail.cf file does not allow Sendmail to accept network connections from any host other than the local computer. To configure Sendmail as a server for other clients, edit the /etc/mail/sendmail.mc file, and either change the address specified in the Addr= option of the DAEMON_OPTIONS directive from 127.0.0.1 to the IP address of an active network device or comment out the DAEMON_OPTIONS directive all together by placing dnl at the beginning of the line. When finished, regenerate /etc/mail/sendmail.cf by executing the following command:

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to transfer Exachnage server to Sendmail server mail4vijay Linux - General 3 12-02-2009 08:09 PM
connecting sendmail server to Exchange server 2k3 amit_kalipur Linux - Server 0 06-11-2009 08:40 AM
How to configure a sendmail server to act as a relay server deep_jyotsingh Linux - Server 1 07-30-2008 11:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration