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 |
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 |
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] |
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 Code:
# sendmail -d0.1 -bv root |
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 |
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) |
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.
|
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 |
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 |
I'm glad you got it fixed - sorry I wasn't more help
|
All times are GMT -5. The time now is 10:19 AM. |