Sendmail relay failing


 
Thread Tools Search this Thread
Operating Systems Solaris Sendmail relay failing
# 1  
Old 05-17-2013
Sendmail relay failing

Hi Techies
Bit new to sendmail thingy.
I have a Solaris 10 box. There is a request generated by customer that they want Solaris 10 box to use as relay an external smtp server.
the smtp server is updated in hosts file and it is pingable.

I have updated by "vi" /etc/mail/sendmail.cf

Code:
# ... define this only if sendmail cannot automatically determine your domain
#Dj$w.Foo.COM
DJ$w.solar.hws.com
# host/domain names ending with a token in class P are canonical
CP.

# "Smart" relay host (may be null)
DSsolar.hws.com

Restarted the sendmail smf service.
But getting error. Can some one assist.

Code:
May 17 16:14:24 ossXadm1 sendmail[6191]: [ID 702911 mail.warning] gethostbyaddr(10.20.30.6) failed: 1
May 17 16:14:24 ossXadm1 sendmail[6191]: [ID 702911 mail.warning] gethostbyaddr(10.20.30.102) failed: 1
May 17 16:14:24 ossXadm1 sendmail[6191]: [ID 702911 mail.warning] gethostbyaddr(10.20.30.7) failed: 1
May 17 16:14:24 ossXadm1 sendmail[6191]: [ID 702911 mail.warning] gethostbyaddr(10.20.30.103) failed: 1
May 17 16:14:24 ossXadm1 sendmail[6193]: [ID 702911 mail.info] starting daemon (8.14.4+Sun): SMTP+queueing@00:15:00


May 17 16:15:26 ossXadm1 sendmail[7708]: [ID 801593 mail.info] r4HLFQQY007708: from=root, size=75, class=0, nrcpts=1, msgid=<201305172115.r4HLFQQY007708@solar.hws.com>, relay=root@localhost
May 17 16:15:26 ossXadm1 sendmail[7708]: [ID 801593 mail.info] r4HLFQQY007708: to=kkiran@egi.com, delay=00:00:00, mailer=relay, pri=30075, dsn=4.4.3, stat=queued

when I send test email:
Code:
root@ossXadm1:/etc/mail# /usr/lib/sendmail  -v -s "test" nsmith@solar.hws.com < /tmp/mmm
test... Connecting to [127.0.0.1] via relay...
220 ossXadm1.ericssonoss.hawkeyesw.com ESMTP Sendmail 8.14.4+Sun/8.14.4; Fri, 17 May 2013 16:23:27 -0500 (CDT)
>>> EHLO ossXadm1.solar.hws.com
250-ossXadm1.ericssonoss.hawkeyesw.com Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> MAIL From:<root@ossXadm1.solar.hws.com>
051 ossXadm1.solar.hws.com: Name server timeout
050 <root@ossXadm1.solar.hws.com>... Transient parse error -- message queued for future delivery
051 ossXadm1.solar.hws.com: Name server timeout
051 ossXadm1.solar.hws.com: Name server timeout
250 2.1.0 <root@ossXadm1.solar.hws.com>... Sender ok
>>> RCPT To:<test@ossXadm1.solar.hws.com>
>>> DATA
051 ossXadm1.solar.hws.com: Name server timeout
050 <test@ossXadm1.solar.hws.com>... Transient parse error -- message queued for future delivery
051 ossXadm1.solar.hws.com: Name server timeout
250 2.1.5 <test@ossXadm1.solar.hws.com>... Recipient ok (will queue)
354 Enter mail, end with "." on a line by itself
>>> .
050 <test@ossXadm1.solar.hws.com>... queued
250 2.0.0 r4HLNReM020576 Message accepted for delivery
test... Sent (r4HLNReM020576 Message accepted for delivery)
nsmith@solar.hws.com... Deferred: Name server: solar.hws.com: host name lookup failure
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 ossXadm1.ericssonoss.hawkeyesw.com closing connection

root@ossXadm1:/etc/mail#

I get following error:
Code:
May 17 16:23:27 ossXadm1 sendmail[20576]: [ID 801593 mail.info] r4HLNReM020576: to=<test@ossXadm1.solar.hws.com>, delay=00:00:00, mailer=relay, pri=30340, dsn=4.4.3, stat=queued
May 17 16:23:27 ossXadm1 sendmail[20575]: [ID 801593 mail.info] r4HLNRw2020575: to=test, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=60000, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (r4HLNReM020576 Message accepted for delivery)
May 17 16:23:27 ossXadm1 sendmail[20575]: [ID 801593 mail.info] r4HLNRw2020575: to=nsmith@solar.hws.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=60000, relay=solar.hws.com, dsn=4.0.0, stat=Deferred: Name server: solar.hws.com: host name lookup failure

please assist


Also
Code:
 telnet solar.hws.com 25
  Trying 10.80.80.111...
  Connected to solar.hws.com.
  Escape character is '^]'.
  220 mail.hawkeyeswitching.com
  EHLO
  250-mail.hws.com Hello [10.20.30.5]
  250-SIZE 31457280
  250-AUTH LOGIN CRAM-MD5
  250 OK
  mail from:root@localhost   
  250 OK <root@localhost> Sender ok
  rcpt to:abcd Command timeout, closing transmission channel
  Connection to solar.hws.com closed by foreign host.
  root@ossXadm1:/etc/mail# rcpt to:nsmith@interstatecom.com 
  bash: rcpt: command not found
  root@ossXadm1:/etc/mail# telnet solar.hws.com 25
  Trying 10.80.80.111...
  Connected to solar.hws.com.
  Escape character is '^]'.
  220 mail.hws.com
  EHLO
  250-mail.hws.com Hello [10.20.30.5]
  250-SIZE 31457280
  250-AUTH LOGIN CRAM-MD5
  250 OK
  mail from:root@localhost
  250 OK <root@localhost> Sender ok
  rcpt to:xxxx@interstatecom.com
  550 <xxxx@interstatecom.com>No such user here
  rcpt to:xxxx@i35-swt.com
  550 <xxxx@i35-swt.com>No such user here


Do I need to add any specific user. Any authentication setting is required?
Where is problem can some one guide. I dont want solar.hws.com to get resolved by DNS. but looks like host lookup is failing.
Also It seems that user is not acceppted by smtp server as recpt. Is that mean user is not available. Plz help.



Last edited by khaniqshahid; 05-17-2013 at 07:45 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Sendmail refuses to send via relay

Hi I have two realtively identical Solaris zones. They both appear to have the same config in relation to sendmail. But, when I send a test email using mailx the first one sends via a mail relay and the other sends via localhost. I need them both to use the relay but can't figure out what is... (0 Replies)
Discussion started by: gregb
0 Replies

2. Red Hat

How to setup Sendmail as SMTP Relay?

Hi Guys, I want to setup sendmail using my username and password on my ISP to be able to send out messages. I'm using Linux. So far, what I've done is modified the sendmail.mc with the following changes: define(`SMART_HOST',`myispsmtpoutgoingserver') FEATURE(authinfo)dnl In my... (0 Replies)
Discussion started by: adshocker
0 Replies

3. Red Hat

add relay to sendmail.cf

Hi, I notice that my relay on sendmail.cf is just "DS" and no ip. So I guess, it's using the local DNS to relay my mail which sometimes being spammed. I would like to add a new relay ip "DSxxx.xxx.xxx.xxx" on sendmail.cf. What do I need to edit sendmail.cf? Do I just use vi or m4? ... (4 Replies)
Discussion started by: itik
4 Replies

4. Solaris

sendmail client in solaris 10 ( relay)

I have setup sendmail e mail client using SMTP server, while sending the mail through mailx i am getting the below error. kindly help. WARNING: local host name (bkpsrv) is not qualified; see cf/README: WHO AM I? vishwanathhcl@gmail.com... Connecting to via relay... 220 xyz.co.in Microsoft... (0 Replies)
Discussion started by: vishwanathhcl
0 Replies

5. Solaris

Sendmail error delaying relay

When I try to send mail, sendmail delays a lot. After monitoring syslog, I noticed that sendmail starts with this first message... waits a minute and gives the second message... waits another minute and then sends off the email. How do I correct this in sendmail or completly disable it. I'm sending... (0 Replies)
Discussion started by: adelsin
0 Replies

6. UNIX for Dummies Questions & Answers

sendmail, change the DSsmtp-relay

Hi, I have a new solaris server which I can't send e-mail from. I like to bulid a new sendmail.mc and cf, test_sendmail.cf and test_sendmail.mc under /etc/mail/cf/cf/ or I just add the right DSsmtp relay so I can send mail from server. I chech the svcs and it's running: root# svcs -a | grep... (1 Reply)
Discussion started by: mehrdad68
1 Replies

7. Solaris

Sendmail relay problem

I have a sendmail issue When I try to send a mail message using mailx I get a "connection refused by mail14.messagelabs.com" error. relay=mail14.messagelabs.com., dsn=4.0.0, stat=Deferred: Connection refused by mail14.messagelabs.com However, mail14.messagelabs.com doesn't exist. The... (4 Replies)
Discussion started by: soliberus
4 Replies

8. Solaris

Sendmail Config - Open Relay

Puzzled; I have two Solaris systems, both running Solaris 5.8 and Sendmail version 8.11.7p1. One of the machines will not allow relaying (via anonymous connection to port 25). The other will allow relaying from anywhere to anywhere with impunity. I can not find any fundemental difference in the... (1 Reply)
Discussion started by: fosteria
1 Replies

9. UNIX for Dummies Questions & Answers

Sendmail open relay

All I am having a bit of a problem with my sendmail smtp server. The environment: Redhat Linux 8 sendmail-8.12.8-9.80. The mailserver is used by our application to send mail notifications to users on the system. The application is hosted on 2 different servers (separate domains)... (2 Replies)
Discussion started by: skotapal
2 Replies

10. Cybersecurity

Sendmail Relay

I'm trying to get my Solaris 7 sendmail server to allow external clients to send to external recipients. I know this has to do with relaying, but I'm not sure how unsafe I have to get to allow this. I simply need for users to login from any domain and be allowed to send mail via SMTP to any... (4 Replies)
Discussion started by: Solaris
4 Replies
Login or Register to Ask a Question