Not able to mail from one Server to another


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Not able to mail from one Server to another
# 1  
Old 08-05-2008
Question Not able to mail from one Server to another

One of my unix servers are not having SMTP access, for other unix machine SMTP is enabled, so i tried to send the message by using 'mail' option from one unix machine to another.

But now 'mail' option is not working, i am not able to send message to any of my server by using mail command.

When i checked and found that message i send was hanging in /var/spool/mqueue directory.

when typed command 'mailq' there are 128 requests.

Please help me in solving this as early as possible,
Thanks in advance Smilie
# 2  
Old 08-05-2008
Can you please paste one mail output here ?
Does your domain resolve where you are trying to send mail ?

Please paste what error you are getting in maillo.

- nilesh
# 3  
Old 08-05-2008
Probably the sendmail logs would be a better place to look for an explanation. The mailq output usually includes an indication of why a message was deferred, although it might be truncated (there's a "verbose" option or something to turn off the truncation, but I don't remember exactly what it's called).

Anyway, if SMTP is disabled, you should not be surprised that mail is not working. SMTP is what is used for delivering mail over a network.
# 4  
Old 08-06-2008
CPU & Memory

SMTP is enabled, but messages are struck in the /var/spool/mqueue

(root@ashwini)#cat qfm76GwhD800772
V4
T1218041923
K0
N0
P30039
I10/6/7055
Fb
$_appalagx@localhost
Sappalagx
Aappalagx@ashwini.xxxxx.com
RPFD:appalagx
H?P?Return-Path: <g>
H??Received: (from appalagx@localhost) by ashwini.xxxxx.com (AIX5.2/8.11.6p2/8.11.0) id m76GwhD800772 for appalagx; Wed, 6 Aug 2008 11:28:43 -0530
H?D?Date: Wed, 6 Aug 2008 11:28:43 -0530
H?F?From: "Girish_appalaraju@xxxxx.com" <appalagx>
H?x?Full-Name: Girish_appalaraju@xxxxx.com
H?M?Message-Id: <200808061658.m76GwhD800772@ashwini.xxxxx.com>
H??To: appalagx
H??Subject: fjafjkla

Above is one mail struck in /var/spool/mqueue directory.
Please have a look into it.
# 5  
Old 08-06-2008
Please show the verbose mailq output for this message. Also please post anything you can find for this queue id in Sendmail's log.
# 6  
Old 08-06-2008
Did u try to telnet to 25/110 port on destination mail server.

Code:
telnet "target host ip" 25/110

Does you nameserver resolve's target mail domain name ?

- nilesh
# 7  
Old 08-06-2008
firstly thank u for ur response, i dont have that much knowledge on Unix or servers as truly not able to understand some of ur technical words Smilie.

mailq out put i got...


(appalagx@ashwini) /home/ashwini/appalagx $ mailq
/var/spool/mqueue (141 requests)
----Q-ID---- --Size-- -----Q-Time----- ------------Sender/Recipient------------

m76IQ52613690X 0 Wed Aug 6 12:56 jogaragx
jogaragx
m76IcFu853142X 7 Wed Aug 6 13:08 jogaragx
jogaragx
m76IhV8630650X 7 Wed Aug 6 13:13 jogaragx
jogaragx
m76Hp6f797366X 10 Wed Aug 6 12:21 jogaragx
jogaragx
m76GjoN526964X 10 Wed Aug 6 11:15 gullasx
gullasx
m76HxpN374558X 11 Wed Aug 6 12:29 jogaragx
jogaragx
m76GwhD800772X 7 Wed Aug 6 11:28 appalagx
appalagx
m75MlIl429350X 5 Tue Aug 5 17:17 appalagx
appalagx
m76HwJR687976X 15 Wed Aug 6 12:28 jogaragx
jogaragx
m75N14i948802X 16 Tue Aug 5 17:31 gullasx
appalagx
m75N1JP961656X 14 Tue Aug 5 17:31 deviax
appalagx
m76Fu73870334X 181 Wed Aug 6 10:26 daemon
oracle

Sorry nilesh i'm not able to get you,

i jst tried the given command in 'run' by giving my host ip, cmd prompt appeared and vanished.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to send mail using PHP mail function On apache server.?

Hello, I am using centos-6.2 I have apache server,php5 on my system and I want to send mail using sendmail on my system. when I try to send mail from shell that time mail is succesfully sent to respective address() but when I try to send it through webbrowser I am not able to send it.... (1 Reply)
Discussion started by: Kiran ursal
1 Replies

2. UNIX for Advanced & Expert Users

How can I send a mail from my outlook or other mail accounts to UNIX server?

Hi all, I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix. How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Discussion started by: igelegin
2 Replies

3. UNIX for Dummies Questions & Answers

Minimal Mail Server Setup for Local Mail Transfer

I am trying to get stored mail out of an old mail client. I figured that the easiest way to do it is with IMAP by logging in with both clients. I can copy the mail to the server from the old mail client, and back down into the new mail client. Rather than using a real mail account on the... (2 Replies)
Discussion started by: nixie
2 Replies

4. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

5. HP-UX

[Solved] How do I configure Unix Mail Server to use another Mail Exchange Server

We have configured our mail unix server and can send out emails automatically from applications running on unix to different people in our company as well as outside our company. However there is an outside client who is not receiving these emails because the settings on their mail server cannot... (4 Replies)
Discussion started by: Tenyhwa
4 Replies

6. UNIX for Advanced & Expert Users

How to relay mail to mail server from Unix ?

Hi, I need to send email notifications from Unix/Linux box to users using mailx. In these Unix/Linux boxes mail is not configured however we are having mail server configured in our LAN. Could you please provide instructions to configure relay in these boxes so that we can relay our mails... (3 Replies)
Discussion started by: sourabhsharma
3 Replies

7. Shell Programming and Scripting

script to read mail on a mail server

Hi All, Is there any way Unix shell script can directly read a mail on a mail server (for eg. abc@xyz.com) and save it as a text file in a unix directory ? Thanks PRKS ---------- Post updated at 08:37 AM ---------- Previous update was at 08:36 AM ---------- I am using ksh (1 Reply)
Discussion started by: PRKS
1 Replies

8. Solaris

identify the mail server for mail command

Hi , I am new to unix , i am using the mail and mailx command to send the mail .How come i will know the my mail command using which server as mail box.. Please help me .. Thanks in advance (1 Reply)
Discussion started by: julirani
1 Replies

9. UNIX for Dummies Questions & Answers

can not send mail from unix server to company/yahoo mail

hi, Gurus, I need some help with sending mail out from my UNIX server: It is running Solaris 2.6 and the sendmail version is 8.8. Output of :/usr/lib/sendmail -d0.1 -bt < /dev/null Version 8.8.8+Sun Compiled with: LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND NDBM NETINET ... (5 Replies)
Discussion started by: b5fnpct
5 Replies
Login or Register to Ask a Question