Problem sending mail to an external domain


 
Thread Tools Search this Thread
Operating Systems AIX Problem sending mail to an external domain
# 1  
Old 05-30-2006
Problem sending mail to an external domain

On one of our AIX servers, I'm having problems sending email to an external domain. I'm not a SYSADM and not sure how to troubleshoot this issue. Any help will be greatly appreciated.
The following mail components are installed on the server
$ lslpp -l bos.mh
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
bos.mh 5.2.0.50 APPLIED Mail Handler

Path: /etc/objrepos
bos.mh 5.2.0.0 COMMITTED Mail Handler
# 2  
Old 05-31-2006
You should first of all try using the mailx command with the -v option to send a test email to the remote recipient. This should at least let you see if your relay host is accepting the mail.

E.g. mailx -v -s "Some subject" joe.bloggs@somedomain.com

Enter a test message and then a '.' on a line by itself to end the message. You'll then see the server attempt to send the mail using sendmail.

The sendmail configuration file is /etc/mail.sendmail.cf. View this file to see if a smart relay host is set. There are books dedicated to sendmail so I won't tell you any more about it, just ask your sysadmin ;-)

Hope this helps a little.
# 3  
Old 06-01-2006
Thanks for your response.
I looked into the mail log at /usr/spool/mail/voorkey and this is the error that I observed
550 5.1.2 voorkey@xxx.com... Host unknown (Name server: yyy.com.: host not found)

The id I'm trying to send a mail to an intranet id from AIX host.
I'm able to ping the host name server yyy.com from the AIX server and was also able to telnet to the host name on port 25.
My sysadm has indicated that there are no firewalls installed on this test server. I'm able to send mails to this intranet id from other development and production AIX servers. I would appreciate any pointers to track this problem further.
Thanks,
voorkey
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

php code - Sending mail with external SMTP server

Here is the code: <?php //new function function loadini($path) { $fp = fopen($path, "r"); $fpcontents = fread($fp, filesize($path)); fclose($fp); return $fpcontents; } $to = "test@test.com"; $nameto = "notme"; $from = "test"; $namefrom = "Who From"; ... (0 Replies)
Discussion started by: galford
0 Replies

3. UNIX for Dummies Questions & Answers

Sending through an external e-mail account

Hi guys. After several Google hours, i've failed to find a solution to my problem, maybe my google skills arent that good - but i hope someone could help me figure this out. I'm running a ubuntu server 11.04 with postfix installed. I have installed Request tracker 4 and configured it to read... (2 Replies)
Discussion started by: spirm8
2 Replies

4. 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

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. UNIX for Dummies Questions & Answers

block certain domain from sending mail to server

hi currently i have a server that is able to send out and receive mail. is there a way to configure the server such that mails can be sent to a certain domail like abc@yahoo.com but block mails from this domain abc@yahoo.com. the server is running on solaris 10. thanks in advance :) (2 Replies)
Discussion started by: legato
2 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