Problem with sendmail

Hi there,

I have configured sendmail in AIX 6.1 and able to send emails to most of the domains like yahoo and gmail. But certain domains are denying to verify my domain probably due to the masquarding not happening correctly. Following are some logs of sendmail command.
****************************************************
22 [shivaibm2] dbadm % echo "This is a test" | sendmail -v 1stname.lastname@receipentsdomain.com
WARNING: local host name (shivaibm2) is not qualified; see cf/README: WHO AM I?
1stname.lastname@receipentsdomain.com... Connecting to del-ml-excsmbhb.OURDOMAIN.com. via relay...
220 DEL-ML-EXCSMBHB.OURDOMAIN.COM Microsoft ESMTP MAIL Service ready at Wed, 10 Aug 2011 13:24:22 +0530
>>> EHLO shivaibm2
250-DEL-ML-EXCSMBHB.OURDOMAIN.COM Hello [192.168.111.11]
250-SIZE
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-X-ANONYMOUSTLS
250-AUTH GSSAPI NTLM
250-X-EXPS GSSAPI NTLM
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 XEXCH50
>>> MAIL From:<dbadm@shivaibm2> SIZE=15
250 2.1.0 Sender OK
>>> RCPT To:<1stname.lastname@receipentsdomain.com>
>>> DATA
550 5.7.1 Unable to relay
503 5.5.2 Need rcpt command
>>> RSET
250 2.0.0 Resetting
dbadm... forward: /home/dbadm/.forward.shivaibm2+: World writable directory
dbadm... forward: /home/dbadm/.forward+: World writable directory
dbadm... forward: /home/dbadm/.forward.shivaibm2: World writable directory
dbadm... forward: /home/dbadm/.forward: World writable directory
/home/dbadm/dead.letter... Saved message in /home/dbadm/dead.letter
Closing connection to del-ml-excsmbhb.OURDOMAIN.com.
>>> QUIT
221 2.0.0 Service closing transmission channel
23 [shivaibm2] dbadm %
**********************************************************
Could you please see if you can give me a hand ?

Regards - Sraj142

would you mind posting the your sendmail.cf file. I guess just attach it to the post. The config file may be too long to paste in the post.

---------- Post updated at 09:09 AM ---------- Previous update was at 08:49 AM ----------

Looking at the error message you posted "550 5.7.1 Unable to relay", looks like you are trying to relay through your exchange server "del-ml-excsmbhb.OURDOMAIN.com".

Your exchange server is preventing your host to relay to certain domains. Contact your exchange admin and have him add your host to the list of hosts that are allowed relaying.

Thanks dude2cool for the reply. I have attached the sendmail.cf for your ref.

Hi dude2cool,

Could you instruct me to on how to add it in Exchamge. Any how I wanted to remove the AIX host name from the domain name though.

Regards

sarj142, look at this link

http://blogs.technet.com/b/exchange/archive/2006/12/28/3397620.aspx

Not sure what you mean by "I wanted to remove AIX hostname from domain name"?

Hi dude2cool,

>>> MAIL From:<dbadm@shivaibm2> SIZE=15

The above is expected to be something like
>>> MAIL From: dbadm@OURDOMAIN.COM SIZE=15

The above <shivaibm2> in actually the hostname of our AIX server WHICH i don't want to add in the From or Reply to address.

Regards

Here is an option from sendmail.org. You can go to the link below to read more about it :

http://www.sendmail.org/m4/features.html

You will need to enable this feature in sendmail.mc file and re-create the sendmail.cf file. If you don't know how to do it, you can read it up on google. It is fairly easy process.

On Solaris, here is how I would do, but you are on AIX, so it may vary a little, but you will get the idea, by looking at my example.

Edit sendmail.mc and add the following lines:

FEATURE(masquerade_envelope)dnl
FEATURE(allmasquerade)dnl
FEATURE(masquerade_entire_domain)dnl

# pwd
/usr/lib/mail/cf

# /usr/ccs/bin/m4 ../m4/cf.m4 sendmail.mc >> sendmail.cf

copy this sendmail.cf back to /etc/mail/ or whereever your original sendmail.cf resides.

Restart sendmail. Don't forget to restart sendmail once new config is in place :). Good Luck.

Hi dude2cool,

A huge thanks for your help. Unfortunately I am not able understand the syntexes of FEATURE macros to enable masquerding. It would be great of you can come back with an example setups.

Many thanks once again.

Regards

Hi All,

Is there anyone else who can give me a hand...

Regards

Got the below link From Google:
Put the feature macros in the aixsample.mc.
Hope this helps:

http://ramses.smeyers.be/varia/aix/sendmail