Problem sending mail after IP/hostname change


 
Thread Tools Search this Thread
Operating Systems Solaris Problem sending mail after IP/hostname change
# 1  
Old 11-06-2008
Problem sending mail after IP/hostname change

Hello,
I had to replace my Solaris 10 workstation with the other one because of hardware issues. I need to configure the new WS with the same configuration. It looked like it was using DHCP before and I was able to send mail with mailx command. Since old HW used static IP I have disabled DHCP and modified
/etc/inet/hosts
/etc/inet/ipnodes
/etc/nsswitch.conf
/etc/resolv.conf
/etc/defaultrouter
/etc/nodename
/etc/hostname.eri0

to handle the new configuration of a static IP and now I'm getting mail delivery subsystem warnings: Deferred: Connection timed out with foo.com

Could anybody give me a hint how to troubleshoot this? Obviously It was working before and problem is not in foo.com Smilie when I do nslookup foo.com (foo is not my real domain) it comes back with IP address. Any ideas?

Thanks,
PN
# 2  
Old 11-06-2008
Check the connectivity from the workstation to your mailserver.

Code:
ping mailserver.foo.com
telnet mailserver.foo.com 25

# 3  
Old 11-06-2008
"when I do nslookup foo.com (foo is not my real domain) it comes back with IP address"
Does the reverse work? whats the output of sendmail -q -v
# 4  
Old 11-06-2008
Quote:
Originally Posted by vimes
Code:
ping mailserver.foo.com
telnet mailserver.foo.com 25

Thanks, you have a good point. I did check ping foo.com and telnet foo.com 25 timed out BUT if I do telnet mail.foo.com 25 I get response! Is there any configuration file where mail server prefix is configured?

Thanks,
PN
# 5  
Old 11-06-2008
Quote:
Originally Posted by incredible
"when I do nslookup foo.com (foo is not my real domain) it comes back with IP address" Does the reverse work?
Hmm.. Sorry, I'm not sure that I understood you correctly. What does reverse mean in this case?
Quote:
Originally Posted by incredible
whats the output of sendmail -q -v
That probably times out. The only output I got was:

Code:
WARNING: local host name (wayossws55) is not qualified; see cf/README: WHO AM I?

What should I bee looking for?

Thank You,
Pavel.
# 6  
Old 11-06-2008
The quick (wrong) way:
Edit /etc/mail/sendmail.cf and replace the line that starts with "DS" with "DSmail.foo.com". Then restart sendmail.

The good way:
You'll have to edit the .mc file and rebuild the .cf file.
Configure sendmail as a smart host

Alternatively, I think you could just set the MX record of your domain to the correct mailserver. (But this would only allow you to send to @foo.com addresses).
# 7  
Old 11-06-2008
Quote:
Originally Posted by vimes
The quick (wrong) way:
Edit /etc/mail/sendmail.cf and replace the line that starts with "DS" with "DSmail.foo.com". Then restart sendmail.
Thank you! I tried the good way and the generated sendmail.cf file was much smaller then the original Solaris one so I went for a "wrong" one. The good news is - it seems to improve the situation, I'm not getting any more timeouts. The bad news is I'm getting the following report:

Code:
... while talking to mail.foo.com.:
>>> HELO wayossws55.
<<< 501 5.5.4 Invalid Address
554 5.0.0 Service unavailable

It looks like mailserver does not like my WS name. Is there any way to trace a good scenario? I have another WS that seems to be sending the e-mails ok.

Regards,
PN
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to Troubleshoot the mail sending problem?

I am trying to send a mail through terminal from last week still now I can't able to send it.If there is any resolution Please help me out of this problem.It is very urgent . mail -s "check" upload.xxx@example.com < /root/mail.txt # tail -15 /var/log/maillog Sep 19 16:52:04 edms032... (15 Replies)
Discussion started by: kannansoft1985
15 Replies

2. Shell Programming and Scripting

Problem in sending mail with attachment

Hi Team, I have written the following code snippet to send mail with attachment to recipient. But I am getting mail with attachment. But the file is empty. All the 3 Attachment* size is more than 80KB. Not sure what is wrong in the command. MSG_BODY1="hi" LOG_FILE="a/b/c/log1.log"... (2 Replies)
Discussion started by: kmanivan82
2 Replies

3. Shell Programming and Scripting

Problem in Sending mail as an attachment

Hi, I need to send a email as a txt file and i used the commands, (echo `echo $EMAIL_MSG` ; uuencode "file.txt" "file.txt" ) | mailx -s "$EMAIL_SUBJECT" "$EMAIL_ID" I received email with a attachment with all data but i get all of them in one row. For example: If file.txt contains value... (1 Reply)
Discussion started by: skcvasanth
1 Replies

4. UNIX for Advanced & Expert Users

problem in sending mail to a group

I am calling a unix script in oracle to send a mail to outlook group using mailx. The cmd looks like this: mailx -s "AA_BBB_" APPostServices@xyz.com APPostServices@xyz.com isa group but the mail is not sent but when i send mail to another group it works fine. What are the things that i... (1 Reply)
Discussion started by: petervuksich
1 Replies

5. UNIX for Dummies Questions & Answers

Problem with sending E-Mail

Im having trouble with sending a file with attachment. The attach file wasn't sent to to the recepient. We tested this manually and it works but with the script it doesn't work. I'm thinking there is a problem with the script. Here is the code: mailto=`/dir/dir2/dir3/GET_EMAIL_ADDR.sh... (9 Replies)
Discussion started by: Iq_zero
9 Replies

6. AIX

Problem sending mail

Everytime i try sending mails using the command line have a reply form the daemon saying : ? 1 Message 1: From MAILER-DAEMON Wed Apr 25 10:42:36 2007 Date: Wed, 25 Apr 2007 10:42:36 -0500 From: Mail Delivery Subsystem <MAILER-DAEMON> To: malarie MIME-Version: 1.0 Content-Type:... (0 Replies)
Discussion started by: Netghost
0 Replies

7. UNIX for Advanced & Expert Users

Problem while sending mail with attachements

Hi All, I am using mailx command in shell script to send mail with output files as attachment to my email id. When my colleague is running the shell script (script code mentioned below), he is getting the mail but without attachment. Attachment is appeared as junk characters in mail... (4 Replies)
Discussion started by: nishant_pathak_
4 Replies

8. Shell Programming and Scripting

problem sending mail to outlook

i'm a avid fan of making the output of my scripts look pretty. so as a result i put in my scripts a lot of lines that are formed by either ****** or ======= now, outlook seems to have a problem with that. it always removes something that it calls "line breakers" from the emails my scripts send... (5 Replies)
Discussion started by: Terrible
5 Replies

9. UNIX for Advanced & Expert Users

I have a problem in sending mail

Hi, I have a problem in sending mail ...... #!/usr/bin/perl -w $file_length = `cat file.txt | wc -l`; if ( $file_length == 0) {} else { `mail -s "Tool" <mymailid> < file.txt`; } Eventhough i have used `uuencode Mailfile$App_Server$line | mail <mymailid>`;... (2 Replies)
Discussion started by: vijaysabari
2 Replies

10. Shell Programming and Scripting

I have a problem in sending mail

Hi, I have a problem in sending mail ...... #!/usr/bin/perl -w $file_length = `cat file.txt | wc -l`; if ( $file_length == 0) {} else { `mail -s "Tool" <mymailid> < file.txt`; } Eventhough i have used `uuencode Mailfile$App_Server$line | mail <mymailid>`;... (1 Reply)
Discussion started by: vijaysabari
1 Replies
Login or Register to Ask a Question