Problem with sendmail


 
Thread Tools Search this Thread
Operating Systems AIX Problem with sendmail
# 1  
Old 08-11-2011
Network 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

Last edited by sraj142; 08-11-2011 at 10:17 AM.. Reason: Code tags not entered
# 2  
Old 08-11-2011
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.
# 3  
Old 08-11-2011
Thanks dude2cool for the reply. I have attached the sendmail.cf for your ref.
# 4  
Old 08-11-2011
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
# 5  
Old 08-11-2011
sarj142, look at this link
Code:
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"?
# 6  
Old 08-11-2011
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
# 7  
Old 08-11-2011
Here is an option from sendmail.org. You can go to the link below to read more about it :
Code:
http://www.sendmail.org/m4/features.html

Quote:
allmasquerade If masquerading is enabled (using MASQUERADE_AS), this feature will cause recipient addresses to also masquerade as being from the masquerade host. Normally they get the local hostname. Although this may be right for ordinary users, it can break local aliases.
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.


Code:
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 Smilie. Good Luck.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Sendmail problem

Hi experts, I am facing unique issue while sending mails from HP-UX box. Mails are not delivered to mail addresses outside my company domain. For e.g. echo "hi" |mailx -s "test" myemail@mycomapny.com is working fine and delivering mails to my company mail address. but If... (7 Replies)
Discussion started by: sai_2507
7 Replies

2. Solaris

sendmail problem

Hi, when i am trying to send more than 50000 emails by using solaris sendmail utility, server is getting hanged up, needs to restart it once again. but it is sending nearly 20000 emails with out any issues. So what the configuration changes i need to make for the solaris sendmail utility to... (0 Replies)
Discussion started by: anilmanepu
0 Replies

3. Linux

Sendmail problem

I am trying to send mail from my CentOS server. I have made nacessory changes required from sendmail. But it is not working. I am getting following messages in maillog- Dec 17 09:25:12 localhost sendmail: mBH3tCTi016891: fps.company.com did not issue MAIL/EXPN/VRFY/ETRN during... (1 Reply)
Discussion started by: kailas.awchar
1 Replies

4. AIX

sendmail problem

I get the following error while trying to send mail from my AIX box. I have cross checked the sendmail.cf file of this system with a working system (similar h/w and o/s) and found no difference. can somebody sugget?? /etc/sendmail.cf: line 98: readcf: map arith: class arith is not available... (1 Reply)
Discussion started by: gsabarinath
1 Replies

5. UNIX for Dummies Questions & Answers

sendmail problem

I have a user who's email comes out looking like this: From name@domain.com Wed Aug 6 15:36:39 2008 Return-Path: <name@domain.com> X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on it2 X-Spam-Level: * X-Spam-Status: No, score=1.5 required=5.0 tests=AWL,BAYES_20,MISSING_SUBJECT,... (1 Reply)
Discussion started by: photon
1 Replies

6. Red Hat

sendmail problem

Hi everyone... i'm trying to send mail with attachment using /usr/sbin/sendmail and from some reason it's not working for me only from one computer. the command i'm using is: cat /etc/fstab | /usr/sbin/sendmail -t RECIPIENT@MAIL.COM am i doing something wrong? p.s. the OS is RedHat. (6 Replies)
Discussion started by: eliraza6
6 Replies

7. UNIX for Dummies Questions & Answers

Sendmail problem

I replaced sendmail.cf (made a abckup first) with main.cf and stopped and then stopped and started sendmail. I am still getting the following: ibasdb02:/ # May 21 14:06:23 ibasdb02 sendmail: l4L I6Np3001094: Losing ./qfl4LI6Np3001094: savemail panic and this message in my log: May 21... (3 Replies)
Discussion started by: hshapiro
3 Replies

8. UNIX for Dummies Questions & Answers

Problem with Sendmail

Hi all, I am new to this forums, so please be kind to me :) Anyways, I have this problem when I am trying to send out email using sendmail. I can send an email to gmail.com or other email host, but when I am trying to send an email to email address removed by moderator or anything to the... (2 Replies)
Discussion started by: iluvhk
2 Replies

9. UNIX for Advanced & Expert Users

sendmail problem

Hi, I have some problem with sendmail daemon. Earlier it was working fine as I used to get alert mail through crontab jobs. Two days back it stopped sending alert messages. When I executed mail command from shell prompt, I could read all the pending messages, generated through crontab... (1 Reply)
Discussion started by: amit_sapre
1 Replies

10. UNIX for Dummies Questions & Answers

problem with sendmail, help please!

I run UNIX and PHP I use a forum (ibf) and the mail() function from PHP only allows emails to be sent to an email account that is on my server, so IT doesn't send any emails for example to eden@hotmail.com How can I fix this? I have to edit php.ini???' Please help me Thanks. (3 Replies)
Discussion started by: eden2
3 Replies
Login or Register to Ask a Question