Unix/Linux Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Solaris sendmail issue

Solaris


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 11-04-2008
sundar63 sundar63 is offline
Registered User
 
Join Date: Oct 2008
Last Activity: 19 February 2014, 11:51 PM EST
Posts: 51
Thanks: 0
Thanked 1 Time in 1 Post
Solaris sendmail issue

I am trying to send mail from a Solaris 10 machine to myself. The mail will be receive by a mail server.

The problem is sendmail doesn't report any errors and there is nothing in mailq output. In the logs the stat=queued. I do not receive the mail in my mailbox.

I could telnet to the mailserver and the mailserver responds to x.x.2.11 which is tied to hostname-bge3 in /etc/hosts. But my hostname is hostname without the bge and bind to x.x.1.2(virtual ip).

Setting in /etc/hosts is
------------------------
x.x.1.2 hostname
x.x.2.11 hostname-bge3

When telnet to mailserver 25, it responds to HELO >> Hello [x.x.2.11]

Could anyone help me to explain why I cannot receive mail
Sponsored Links
    #2  
Old Unix and Linux 11-04-2008
incredible incredible is offline Forum Advisor  
Registered User
 
Join Date: May 2008
Last Activity: 24 August 2014, 5:15 AM EDT
Location: SINGAPORE.. The "FINE" City
Posts: 2,693
Thanks: 1
Thanked 19 Times in 19 Posts
What and when was the recent changes made to your system? Previously was your sendmail working fine all the while?
Sponsored Links
    #3  
Old Unix and Linux 11-05-2008
sundar63 sundar63 is offline
Registered User
 
Join Date: Oct 2008
Last Activity: 19 February 2014, 11:51 PM EST
Posts: 51
Thanks: 0
Thanked 1 Time in 1 Post
No change

Incredible, someone responded Linux!

No changes was done. I am trying to run a cron job which will mail me the output. Unfortunately, I haven't receive any mail. Consequently, the mail will end up undelivered by sendmail. This could be seen when I log into the machine, it says "You have mail".

Below are excerpts from syslog(edited)
Nov 4 10:02:20 hostname sendmail[4805]: [ID 801593 mail.info] mA4A10Gm004805: from=root, size=2467, class=0, nrcpts=2, msgid=<200811041001.mA4A10Gm004805@hostname>, relay=root@localhost
Nov 4 10:02:20 hostname sendmail[4805]: [ID 801593 mail.info] mA4A10Gm004805: to=xxxxxx, delay=00:01:20, mailer=esmtp, pri=62467, dsn=4.4.3, stat=queued
Nov 4 10:02:20 hostname sendmail[4805]: [ID 801593 mail.info] mA4A10Gm004805: to=xxxxxx, delay=00:01:20, mailer=esmtp, pri=62467, dsn=4.4.3, stat=queued
Nov 4 14:12:27 hostname sendmail[5009]: [ID 801593 mail.info] mA4A10Gm004805: mA4EB7I2005009: sender notify: Warning: could not send message for past 4 hours
....
Nov 4 14:28:00 hostname sendmail[16683]: [ID 801593 mail.info] mA4L00M0016683: to=oracle, ctladdr=oracle (101/100), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30448, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (mA4L00f1016690 Message accepted for delivery)

Please help!
    #4  
Old Unix and Linux 11-05-2008
incredible incredible is offline Forum Advisor  
Registered User
 
Join Date: May 2008
Last Activity: 24 August 2014, 5:15 AM EDT
Location: SINGAPORE.. The "FINE" City
Posts: 2,693
Thanks: 1
Thanked 19 Times in 19 Posts
Somewhat looks like DNS config conflict. Are you able to perform a nslookup to your domain/ip and get the right response?
Sponsored Links
    #5  
Old Unix and Linux 11-05-2008
sundar63 sundar63 is offline
Registered User
 
Join Date: Oct 2008
Last Activity: 19 February 2014, 11:51 PM EST
Posts: 51
Thanks: 0
Thanked 1 Time in 1 Post
More info

I did a
#sendmail -Ac -v -q

and received this response

Running /var/spool/clientmqueue/mA55486v005844 (sequence 1 of 2)
u.com.my: Name server timeout
xxx@x.com.my... Transient parse error -- message queued for future delivery
Running /var/spool/clientmqueue/mA4A10Gm004805 (sequence 2 of 2)
u.com.my: Name server timeout
xxx@x.com.my... Transient parse error -- message queued for future delivery
u.com.my: Name server timeout
xxx@x.com.my... Transient parse error -- message queued for future delivery

There is no DNS server configured.
root@xxxx $ nslookup mailserver
;; connection timed out; no servers could be reached
Sponsored Links
    #6  
Old Unix and Linux 11-05-2008
incredible incredible is offline Forum Advisor  
Registered User
 
Join Date: May 2008
Last Activity: 24 August 2014, 5:15 AM EDT
Location: SINGAPORE.. The "FINE" City
Posts: 2,693
Thanks: 1
Thanked 19 Times in 19 Posts
That's the problem... you can see that something is not right here.. :/
Sponsored Links
    #7  
Old Unix and Linux 11-05-2008
sundar63 sundar63 is offline
Registered User
 
Join Date: Oct 2008
Last Activity: 19 February 2014, 11:51 PM EST
Posts: 51
Thanks: 0
Thanked 1 Time in 1 Post
Solved

Finally, it's solved! Linux

I edited /etc/nsswitch.conf and commented dns from the entry

# You must also set up the /etc/resolv.conf file for DNS name
# server lookup. See resolv.conf(4).
hosts: files #dns

However, could you tell me what issues might arise in future with the above setup?
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Sendmail issue abuibi UNIX for Advanced & Expert Users 5 03-24-2012 07:45 AM
Sendmail issue on NGZ (Solaris) solaris_1977 Emergency UNIX and Linux Support 4 12-23-2011 10:45 AM
sendmail issue on solaris 9 sudhakar110 Solaris 2 09-17-2011 04:46 PM
Sendmail issue ranasarkar AIX 1 07-01-2011 12:22 PM
Sendmail issue andryk Linux 5 10-19-2004 01:39 AM



All times are GMT -4. The time now is 05:15 AM.