Sponsored Content
Operating Systems Solaris Mailx sending but not receiving Post 302936485 by sparcguy on Thursday 26th of February 2015 12:10:48 AM
Old 02-26-2015
I hate mail problems they are not so easy to handle can spend up to days trying to fix mail issues. Most times related to dns or host resolution issues in /etc/hosts file or /etc/nsswitch.conf

from that server where you run the command is it allowed to send email to go out to internet?

do command
nslookup google.com

if cannot check /etc/resolv.conf if there are nameservers there check in /etc/nsswitch.conf if there is an entry
hosts: files dns



if you are only allow relay from this server to another server

1) what is your sendmail.cf DS pointing to? example DSsomemail means it's relaying to somemail server

try to telnet to the mail server at smtp port 25 send email from it see if you can receive.

root# telnet somemail 25
Trying somemail...
Connected to somemail.
Escape character is '^]'.
220 somemail ESMTP Postfix
mail from: darthvader
250 2.1.0 Ok
rcpt to: someone@gmail.com
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
test
test
.
250 2.0.0 Ok: queued as 16FA7160BA3
quit
221 2.0.0 Bye
Connection to somemail closed by foreign host.


if you can telnet and send email and receive it means it's could be some relaying configuration issues. If you cannot means there's also some other issue network dns firewall

I hate mail issues.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sending email from mailx

hi can i know how to use mailx to send email to my lotus email account? i wan to send a file in a directory as an attachment and then email to lotus. can show me the command line to do it? thanks a lot (1 Reply)
Discussion started by: legato
1 Replies

2. Shell Programming and Scripting

sending mail through mailx

while trying to send a mail, though the output file doesn't contain any exclamatory mark(!), i am getting that in the mail with an extra line. please help me out from this ASAP. (3 Replies)
Discussion started by: pvamsikr
3 Replies

3. Shell Programming and Scripting

Sending attachement using mailx

Hi I tried reading docs from this forum and googled it...but i couldnt get the answer for attaching a document in mail. I need it to be the actual attachement not adding the content of the file to the body of the mail.. i used uuencode ...to encode the file but it is coming as a junk... (4 Replies)
Discussion started by: aemunathan
4 Replies

4. AIX

Mailx Not sending

How can I check to see how/why my mailx program is not sending? /var has enough room. -Thanks ---------- Post updated at 08:48 AM ---------- Previous update was at 08:35 AM ---------- I tested the mailx to send with this command: echo "This is going to be body of the mail" |mailx... (1 Reply)
Discussion started by: tfort73
1 Replies

5. Shell Programming and Scripting

sending variable value via mailx

Hi all, I need to send a variable value in the script through mailx. Please find the script below but its not working. agents.sh: agents=`grep "Tot Agents " snapshot.dbm` if (( $? == 0 )); then mailx abc@gmail.com $agents fi (3 Replies)
Discussion started by: db2cap
3 Replies

6. Programming

Sending and Receiving data between Client, HTTP Proxy, and Remote Server

I am having problems receiving data from a remote server. It seems that I can send an HTTP request to any host such as http://www.google.com, but I can't get a reply. I'm sending the host a HTTP 1.0 request that is formatted as such: GET / HTTP/1.0 Host: http://www.google.com Connection:... (0 Replies)
Discussion started by: shubham92
0 Replies

7. Shell Programming and Scripting

Receiving NDR with mailx

We use mailx (HP-UX) sending emails to list of external parties. When their email address is wrong or mailbox is full, how can I receive Non-Delivery Report (NDR) in a specific internal emailbox being monitored? Please help. Thanks (0 Replies)
Discussion started by: winwin
0 Replies

8. UNIX for Beginners Questions & Answers

Need help sending attachment via mailx

Hello, I am new to the Unix thing, and I am having trouble sending attachments via shell client putty through mailx. The command I use is $ mailx -s "Subject" user@blah.com < attachment.txt but everytime I do that it would say Cannot open attachment.txt I have the file save to my computer... (5 Replies)
Discussion started by: mrobin20
5 Replies
mconnect(1)							   User Commands						       mconnect(1)

NAME
mconnect - connect to SMTP mail server socket SYNOPSIS
mconnect [-p port] [-r] [hostname] DESCRIPTION
The mconnect utility opens a connection to the mail server on a given host, so that it can be tested independently of all other mail soft- ware. If no host is given, the connection is made to the local host. Servers expect to speak the Simple Mail Transfer Protocol (SMTP) on this connection. Exit by typing the quit command. Typing EOF sends an end of file to the server. An interrupt closes the connection immedi- ately and exits. OPTIONS
The following options are supported: -p port Specify the port number instead of the default SMTP port (number 25) as the next argument. -r "Raw" mode: disable the default line buffering and input handling. This produces an effect similar to telnet(1) to port number 25. OPERANDS
The following operand is supported: hostname The name of a given host. USAGE
The mconnect command is IPv6-enabled. See ip6(7P). FILES
/etc/mail/sendmail.hf help file for SMTP commands ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
telnet(1), sendmail(1M), attributes(5), ip6(7P) Postel, Jonathan B., RFC 821, Simple Mail Transfer Protocol, Information Sciences Institute, University of Southern California, August 1982. SunOS 5.10 9 Nov 1999 mconnect(1)
All times are GMT -4. The time now is 03:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy