cancel
Showing results for 
Search instead for 
Did you mean: 

sendmail relaying denied..

chindi
Respected Contributor

sendmail relaying denied..

hii guys , i have configured a mail server..one of my hpux box...hpux 11iv2..rx6600....16gb RAM..
sendmail Version 8.11.1

the prblm is i am sudden;y not ab;e to send mails from my clents to this server m geetng relaying denied messages..

root #/etc/named.data >sendmail -v tejas@cedge2.cedgedns.in.
tejas ehre from 18
tejas@cedge2.cedgedns.in.... Connecting to cedge2.cedgedns.in. via esmtp...
220 cedge2.cedgedns.in ESMTP Sendmail 8.11.1 (PHNE_35951)/8.11.1; Mon, 21 Jun 2010 11:42:48 +0530 (IST)
>>> EHLO cedge1.cedgedns.in
250-cedge2.cedgedns.in Hello root@cedge1.cedgedns.in [10.1.4.18], pleased to meet you
250-ENHANCEDSTATUSCODES
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ONEX
250-ETRN
250-XUSR
250 HELP
>>> MAIL From: SIZE=19
250 2.1.0 ... Sender ok
>>> RCPT To:
550 5.7.1 ... Relaying denied
>>> RSET
250 2.0.0 Reset state
warning: /etc/mail/aliases has world read or write permission. This is unsafe.
warning: /etc/mail/aliases.db has world read or write permission. This is unsafe.
/dead.letter... Saved message in /dead.letter
Closing connection to cedge2.cedgedns.in.
>>> QUIT
221 2.0.0 cedge2.cedgedns.in closing connection


out of which cedge2 is my 10.1.4.xx mail server
and m sending a mail from my client cedge1...

Kindly advice..
12 REPLIES
Kapil Jha
Honored Contributor

Re: sendmail relaying denied..

whats the entry in submit.cf

grep -i DS submit.cf

BR,
Kapil+
I am in this small bowl, I wane see the real world......
chindi
Respected Contributor

Re: sendmail relaying denied..

Hi Kapil,
U meant sendmail.cf right ???

root #/etc/mail >grep -i 'DS' sendmail.cf
##### environment may be needed. HP recommends that #####
# to users at the clients. You could have nameserver MX records #
# database rebuilds, and various errors. More detailed information #
# Try hosts with no MX records (option TryNullMXList): #
# Sendmail always tries to lookup MX records for the destination host #
# number). If there are no MX records listed for the host or we are #
# Relay all non-local mail to the "Smart" relay host (DS) via smtp: #
# to a smart relay via SMTP just set macro S (DS) to the name of the #
# Relay all non-local mail to the "Smart" relay host (DS) via UUCP: #
# make two chnages to this file. First, set macro S (DS) to the name #
# This needs to be set before any LDAP maps are defined. `localhost' must be #
#LinkedServiceSwitchFileInWritableDir Allow the service switch file to be a
#DSsmtp.cedge.in
#DS[64.233.167.114]
O OldStyleHeaders=True
# noreceipts Don't return success DSN's
# misc timeout for reply to NOOP and VERB commands
# Return-Receipt-To: header implies DSN request if this option is set
#O RrtImpliesDsn=False
# DHParameters (only required if DSA/DH is used)
RSOFTWARE $#error $@ 4.7.0 $: "403 TLS handshake."
Mdsmtp, P=[IPC], F=mDFMuXa%, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n, L=990,


Bcoz we are using this sendmail only for inetrnal lan...and no mails to outside world...
singh sanjeev
Trusted Contributor

Re: sendmail relaying denied..

what is the permission of /etc/mail/aliases

#ll /etc/mail/aliases
#ls -ld /etc/mail

check /var/adm/syslog/mail.log for more info.
Sanjeev Singh
chindi
Respected Contributor

Re: sendmail relaying denied..

Hi Singh,

root #/etc/mail >ll
total 432
-rw-r--r-- 1 root root 886 Sep 11 2007 aliases
-rw-r--r-- 1 root mail 24576 Jun 21 12:54 aliases.db
-rw-r----- 1 root sys 24576 Sep 10 2007 aliases.db.bkp
-r--r--r-- 1 bin bin 10221 Sep 3 2003 mailcap
-rw-r--r-- 1 root sys 16 Jun 21 12:26 relay-domains
-r--r--r-- 1 bin bin 100864 Jun 21 12:53 sendmail.cf
-r--r--r-- 1 bin bin 777 Apr 24 2008 sendmail.cw
-rw------- 1 root mail 35 Jun 21 12:54 sendmail.pid
-rw-r--r-- 1 root sys 12 Sep 10 2007 service.switch
-rw-r--r-- 1 root sys 12 Sep 11 2007 service.switch.bkp
chindi
Respected Contributor

Re: sendmail relaying denied..

Hi Kapil,

instead i have DM configures as..

DMcedge2.cedgedns.in
Kapil Jha
Honored Contributor

Re: sendmail relaying denied..

are you able to send mail using
#mailx -s subject tejas@cedge2.cedgedns.in
ssmthing smthing
Ctrl-D

or with telnet IP 25

BR,
Kapil+
I am in this small bowl, I wane see the real world......
chindi
Respected Contributor

Re: sendmail relaying denied..

Hi Kapil,

root #/etc/mail >telnet 10.1.4.19 25
Trying...
Connected to 10.1.4.19.
Escape character is '^]'.
220 cedge2.cedgedns.in ESMTP Sendmail 8.11.1 (PHNE_35951)/8.11.1; Mon, 21 Jun 2010 13:20:15 +0530


root #/etc/mail >mailx -s subject tejas@cedge2.cedgedns.in
hii
EOT
You have mail in /var/mail/root
Kapil Jha
Honored Contributor

Re: sendmail relaying denied..

I mean to say....
when u sending mail from mailx is it getting through.

or when u send like

telnet IP 25
ehlo asdf
mail from: abc@abc.com
data
Subject: This is a test
mail text
.

quit/bye


everything needs to be typed and check whats going wrong after.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
chindi
Respected Contributor

Re: sendmail relaying denied..

Hi Kapil,

root #/etc/mail >telnet 10.1.4.19 25
Trying...
Connected to 10.1.4.19.
Escape character is '^]'.
220 cedge2.cedgedns.in ESMTP Sendmail 8.11.1 (PHNE_35951)/8.11.1; Mon, 21 Jun 2010 13:41:16 +0530 (IST)
ehlo asdf
250-cedge2.cedgedns.in Hello root@cedge1.cedgedns.in [10.1.4.18], pleased to meet you
250-ENHANCEDSTATUSCODES
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ONEX
250-ETRN
250-XUSR
250 HELP
mail from: root@cedge1.cedgedns.in
250 2.1.0 root@cedge1.cedgedns.in... Sender ok
data
Subject: This is a test
mail text503 5.0.0 Need RCPT (recipient)
500 5.5.1 Command unrecognized: "Subject: This is a test"
tejas@cedge2.cedgedns.in.
503 5.5.0 Sender already specified
quit
221 2.0.0 cedge2.cedgedns.in closing connection
Connection closed by foreign host.
Kapil Jha
Honored Contributor

Re: sendmail relaying denied..

did u get this mail in server, it seems it was sent correctly.

Check your mail in server.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
chindi
Respected Contributor

Re: sendmail relaying denied..

Hi Kapil,

I got ths mail in my server..
but i have configured a oulook account ....wherein i used to get this messages...i am not able to get this messages from this mail server to that microsoft outlook account...2003...

thesettngs i checked...for outlook they are fine m able to send a test message for this account...but smehow m not able to get this mails from server....to my outlook account..
rmueller58
Valued Contributor

Re: sendmail relaying denied..

Do you use a spam server?

I've seen often that things can be blackholed or blocked based on either implicit or explicit allows in Spam Servers whitelists. Check your service provider.