LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-04-2011, 07:12 PM   #1
sachin_shetty
Member
 
Registered: Jul 2006
Posts: 40

Rep: Reputation: 15
Sendmail unable to start "throwing Error Messeges"


Hi Guys;

I am very new to sendmail and I have tried all the way to configure the send mail but not succeeded with it.

Server info


Linux host.domain.com 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:53:09 EST 2011 i686 i686 i386 GNU/Linux

sendmail build /version

Name : sendmail Relocations: (not relocatable)
Version : 8.13.8 Vendor: CentOS
Release : 8.el5 Build Date: Wed 31 Mar 2010 12:49:54 AM EDT
Install Date: Mon 04 Apr 2011 11:16:16 PM EDT Build Host: builder10.centos.org
Group : System Environment/Daemons Source RPM: sendmail-8.13.8-8.el5.src.rpm
Size : 1370810 License: Sendmail
Signature : DSA/SHA1, Mon 26 Apr 2010 04:00:39 PM EDT, Key ID a8a447dce8562897
Summary : A widely used Mail Transport Agent (MTA).
Description :

ps -ef |grep sendmail
smmsp 8756 1 0 06:23 ? 00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
root 29520 7765 0 07:08 pts/1 00:00:00 grep sendmail


/var/log/maillog

Apr 5 06:55:04 samba sendmail[27870]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 155: readcf: map virtuser: class hash not available
Apr 5 06:55:04 samba sendmail[27870]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 160: readcf: map access: class hash not available
Apr 5 06:56:23 samba sendmail[28040]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 152: readcf: map mailertable: class hash not available


when I am trying to start the sendmail serving its throwing the error



Starting sendmail: 554 5.0.0 /etc/mail/sendmail.cf: line 152: readcf: map mailertable: class hash not available
554 5.0.0 /etc/mail/sendmail.cf: line 155: readcf: map virtuser: class hash not available
554 5.0.0 /etc/mail/sendmail.cf: line 160: readcf: map access: class hash not available
Warning: Option: AuthOptions requires SASL support (-DSASL)
[FAILED]


Could someone please help me to solve this issues. I would e ever greatful to them
 
Old 04-04-2011, 09:19 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It looks like you've enabled the mailertable, virtusertable and access databases but haven't created the hash files. Assuming your sendmail directory for these files is /etc/mail, try the following:
Code:
makemap -v hash /etc/mail/access < /etc/mail/access
makemap -v hash /etc/mail/mailertable < /etc/mail/mailertable
makemap -v hash /etc/mail/virtusertable < /etc/mail/virtusertable
That should create the files /etc/mail/access.db, /etc/mail/mailertable.db and /etc/mail/virtusertable.db
 
Old 04-05-2011, 11:25 AM   #3
sachin_shetty
Member
 
Registered: Jul 2006
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks for the help

I ran all the makemap but one of the makemap reported error

makemap -v hash /etc/mail/access < /etc/mail/access
key=`connect:localhost.localdomain', val=`RELAY'
key=`connect:localhost', val=`RELAY'
key=`connect:127.0.0.1', val=`RELAY'

so i have tried to create newaliases so that is even throwed error
newaliases
Warning: Option: AuthOptions requires SASL support (-DSASL)
Cannot rebuild aliases: no database format defined
Cannot create database for alias file /etc/aliases

my maillog reported this error

NOQUEUE: SYSERR(root): Cannot create database for alias file /etc/aliases
Apr 5 23:22:24 samba sendmail[6870]: p363MOIr006870: from=nagios, size=358, class=0, nrcpts=3, msgid=<201104060322.p363MOIr006870@samba.aitcc.com>, relay=nagios@localhost
Apr 5 23:22:24 samba sendmail[6871]: p363MO7H006871: SYSERR(root): rewrite: map access not found

this is the error when i sending mail to some one

mail -v sachin.s@esoftech.com
Subject: test mail
test mail
.
Cc:
sachin.s@esoftech.com... Connecting to [127.0.0.1] via relay...
554 5.3.0 rewrite: map access not found
>>> QUIT
554 5.3.0 rewrite: map access not found
Closing connection to [127.0.0.1]
 
Old 04-05-2011, 02:27 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Have you made changes to your sendmail.cf file that aren't supported by your sendmail binary? The SASL error sounds like you're trying to use SASL support but it isn't compiled in. What is the output of the following command please?
Code:
# grep AuthOptions /etc/mail/sendmail.cf
O AuthOptions=A p y
Can you also check whether you have SASL support with this?
Code:
# sendmail -d0.1 -bv root
 
Old 04-05-2011, 03:15 PM   #5
sachin_shetty
Member
 
Registered: Jul 2006
Posts: 40

Original Poster
Rep: Reputation: 15
grep AuthOptions /etc/mail/sendmail.cf
O AuthOptions=A
[root@samba ~]# sendmail -d0.1 -bv root
Version 8.13.8
Compiled with: DNSMAP LOG MATCHGECOS MILTER MIME7TO8 MIME8TO7
NAMED_BIND NETINET NETUNIX PIPELINING SCANF XDEBUG
Warning: Option: AuthOptions requires SASL support (-DSASL)

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = myhost
(canonical domain name) $j = myhost.mydoamin.com
(subdomain name) $m = mydomain.com
(node name) $k = myhost.mydomain.com
========================================================

root... deliverable: mailer local, user root

I need a simple mail configuration Not with SSL support so that my Nagios server could notify the alert messages to me from the server
 
Old 04-05-2011, 03:24 PM   #6
sachin_shetty
Member
 
Registered: Jul 2006
Posts: 40

Original Poster
Rep: Reputation: 15
telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
554 5.3.0 rewrite: map access not found
554 5.3.0 rewrite: map access not found
554 5.3.0 rewrite: map access not found
554 5.3.0 rewrite: map access not found
554 5.3.0 rewrite: map access not found
554 5.3.0 rewrite: map access not found
554 5.3.0 rewrite: map access not found
554 5.3.0 rewrite: map access not found
554 5.3.0 rewrite: map access not found
220 myhost.mydomain.com ESMTP Sendmail 8.13.8/8.13.8; Wed, 6 Apr 2011 03:22:33 -0400

can you please help me to solve this issue (rewrite:map access not found)
 
Old 04-05-2011, 08:18 PM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I did some googling but ran out of time. You could try re-generating your sendmail.cf without AuthOptions and then try to re-build your maps - but that's only a guess based on what I read in other threads.
 
Old 04-06-2011, 06:35 PM   #8
sachin_shetty
Member
 
Registered: Jul 2006
Posts: 40

Original Poster
Rep: Reputation: 15
ok.. I have recompiled the sendmail.Sendmail has ran with out any issues after searching lot from the google.But now its having a issue with while sending the mail

550 5.7.1 Rejected: 127.0.0.1 listed at
postmaster... Using cached ESMTP connection to [127.0.0.1] via relay...


mail -v sachin.s@esoftech.com
sachin.s@esoftech.com... Connecting to [127.0.0.1] via relay...
220 myhost.mydomain.com ESMTP Sendmail 8.13.8/8.13.8; Thu, 7 Apr 2011 06:26:31 -0400
>>> EHLO myhost.mydomain.com
250-samba.aitcc.com Hello myhost.mydomain.com [127.0.0.1], pleased to meet you
250 ENHANCEDSTATUSCODES
>>> MAIL From:<root@myhost.mydomain.com
550 5.7.1 Rejected: 127.0.0.1 listed at
root... Using cached ESMTP connection to [127.0.0.1] via relay...
>>> RSET
250 2.0.0 Reset state
>>> MAIL From:<>
550 5.7.1 Rejected: 127.0.0.1 listed at
postmaster... Using cached ESMTP connection to [127.0.0.1] via relay...
>>> RSET
250 2.0.0 Reset state
>>> MAIL From:<>
550 5.7.1 Rejected: 127.0.0.1 listed at
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 myhost.mydomain.com closing connection

tail -f /var/log/maillog

Apr 7 06:26:31 samba sendmail[6299]: p37AQVMb006299: p37AQVMc006299: return to sender: Service unavailable
Apr 7 06:26:31 samba sendmail[6299]: p37AQVMc006299: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32090, relay=[127.0.0.1], dsn=5.0.0, stat=Service unavailable
Apr 7 06:26:31 samba sendmail[6299]: p37AQVMb006299: Losing ./qfp37AQVMb006299: savemail panic
Apr 7 06:26:31 samba sendmail[6299]: p37AQVMb006299: SYSERR(root): savemail: cannot save rejected email anywhere
Apr 7 06:26:59 samba sendmail[6351]: p37AQxL6006351: from=nagios, size=393, class=0, nrcpts=3, msgid=<201104071026.p37AQxL6006351@samba.aitcc.com>, relay=nagios@localhost
Apr 7 06:26:59 samba sendmail[6352]: p37AQxhJ006352: SYSERR(root): rewrite: map access not found
Apr 7 06:26:59 samba last message repeated 13 times


please help me out if you have any clue
 
Old 04-08-2011, 07:38 AM   #9
sachin_shetty
Member
 
Registered: Jul 2006
Posts: 40

Original Poster
Rep: Reputation: 15
Hi steve ;


Thanks a lot for the support;

Finally I have resolved the issue.

when I thought I would go with the another MTA to Postfix.So I had started twiking postfix but even Postfix was not able to start.

Then I tough I will remove the postfix and while removing postfix, I came to know that ''Mutt" a email chat application was the one who culprit

I had reinstalled the postfix through "yum install Postfix"

then all of sudden all the issues were resolved

hurray

thanks a lot
 
Old 04-08-2011, 02:45 PM   #10
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I'm glad you got it fixed - sorry I wasn't more help
 
  


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
[SOLVED] "/etc/init.d/apache2" start VS "apache2ctl start" with passenger module (ruby/rails) arond Linux - Server 1 12-13-2010 11:56 AM
[SOLVED] Sendmail Error - Rejected after DATA: could not verify "From:" header address" soslinux Linux - Server 2 07-22-2010 08:09 AM
SENDMAIL SERVER - "Status=sent" but unable to retrieve on user inbox (FEDORA CORE 9) chrlsquincy Linux - Server 1 01-21-2010 07:52 PM
sunbird 0.3 does not start, error: Segmentation fault : "$prog" ${1+"$@"} polemon Ubuntu 8 01-08-2007 05:22 AM
kernel compilation:throwing error related with sound during "make bzImage" b0nd Linux - Newbie 1 08-19-2005 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:14 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
Open Source Consulting | Domain Registration