mailx Vs sendmail to send internal emails to exchange


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users mailx Vs sendmail to send internal emails to exchange
# 1  
Old 07-31-2011
mailx Vs sendmail to send internal emails to exchange

Hi Gurus,

I have been searching for this around, but sendmail seems complicated and not sure if "mail" command would do, since all what I need to send internal emails from my solaris 10 box to our exchange server. Would the mailx or mail command do ?

I tried the :

# mailx -s test address@domain.com < textfile

got the below output :



HTML Code:
Aug  1 12:20:00 pgdwh000 sendmail[1774]: [ID 801593 mail.info] p712K0aa001774: from=sys, size=291, class=0, nrcpts=1, msgid=<201108010220.p712K0aa001774@pgdwh000.digi.com>, relay=sys@localhost
Aug  1 12:20:00 pgdwh000 sendmail[1774]: [ID 801593 mail.info] p712K0aa001774: to=sys, ctladdr=sys (3/3), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30291, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug  1 12:20:31 pgdwh000 sendmail[1788]: [ID 801593 mail.info] p712KVsJ001788: from=root, size=296, class=0, nrcpts=1, msgid=<201108010220.p712KVsJ001788@pgdwh000.digi.com>, relay=root@localhost
Aug  1 12:20:31 pgdwh000 sendmail[1788]: [ID 801593 mail.info] p712KVsJ001788: to=aladdin.abdulhalim@digi.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30296, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Any help or tips on this or where to start looking would be highly appreciated.

All the best
Al
# 2  
Old 07-31-2011
mail/mailx is a MUA - mail user agent
sendmail is a MTA - mail transfer agent

is the sendmail daemon running on your system?
This User Gave Thanks to frank_rizzo For This Post:
# 3  
Old 07-31-2011
Thank You very much frank_rizzo.

you spot the light on what was missing.
I had to specify the mailhost in /etc/hosts
and to start the sendmail service, it is working now on mailx.
However will keep working to get the sendmail working as well, once done will post here the simple how to steps.


Regards
Al
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sendmail Fails to send emails from Linux server.

I m using free zoho mail client application (similar to microsoft outlook) on my mobile for all my emails to mohtashim@techx.com I wish to only recieve emails from my Linux Server details of which are: techx 3.10.0-514.10.2.el7.x86_64 #1 SMP CentOS release 7.3.1611 (Core). I try the below... (20 Replies)
Discussion started by: mohtashims
20 Replies

2. AIX

Sendmail daemon is inactive, but still i can send emails

Hi, I did setup sendmail on one of AIX LPARs. Its working as expected. But, would like to clarify something with you all. I stopped the sendmail daemon on AIX LPAR, now it is inactive(&commented it on /etc/rc.tcpip ). But still, am able to send the emails even after stopping daemon. ... (6 Replies)
Discussion started by: system.engineer
6 Replies

3. Solaris

How to use text Fonts while sending emails from mailx?

Hi Team, I want to use "Courier New" fonts while sending emails using mailx command from solaris command prompt. Because my SQL output is not printing in correct format in the email. Please assist. Let me know for any details. Thanks, (1 Reply)
Discussion started by: Mukharam Khan
1 Replies

4. Linux

Sendmail takes too long to start and the host is unable to send emails

Hello All, Sendmail takes too long to start and the host is unable to send emails, below are the steps followed, Please let me know if I'm missing anything, is there a debug mode for mailx? # time service sendmail restart Shutting down sm-client: Shutting... (6 Replies)
Discussion started by: lovesaikrishna
6 Replies

5. Shell Programming and Scripting

Mailx Emails are going to Junk, How to stop them?

I wrote a shell script, the result to be Emailed. So I used mailx command in my Script. But the mail was going to Junk folder. Is there any troubleshoot for this? the mail was coming as username@hostname.com (3 Replies)
Discussion started by: karumudi7
3 Replies

6. Shell Programming and Scripting

Send email from sendmail on AIX using exchange server as SMTP server

i am new in AIX i am trying to write a script to take a backup for specific files on server to and check error log if backup success send email to administrator , script done except for sending mail , i try to configure sendmail on aix to use our exchange server to send emails but still get error... (0 Replies)
Discussion started by: ahmed_salah
0 Replies

7. Shell Programming and Scripting

mailx script to do multiple emails

I am looking for a script that I can use with mailx to do the following: 1. Grab usernames from a flat file (one at a time) 2. Attach a file to the email and mail out. Thanks. Cubefeed (3 Replies)
Discussion started by: CubeFeed
3 Replies

8. Shell Programming and Scripting

uuencode mailx - send multiple emails

The following is an extract from one of my Shell Scripts which uses uuencode and mailx to send an email with multiple attachements: uuencode $LOG_REPORT $(basename $LOG_REPORT) uuencode $HTML_FILE $(basename $HTML_FILE ) ) | if then mailx -b "$COPY_TO" -s "$SUBJECT" -r "$MAIL_FROM"... (2 Replies)
Discussion started by: suthera
2 Replies

9. UNIX for Dummies Questions & Answers

Question regarding sendmail and exchange 5.5

Hi all, I have a question. I am running an exchange 5.5 server and a UNIX DNS server. Currently, I am able to receive messaages but cannot send messages. By send I mean that I create a message, hit the send button, it hits the outbox and disappears. I checked the MTA on 5.5 and the message is... (2 Replies)
Discussion started by: John Racela
2 Replies

10. Solaris

how to send mails to users on exchange server from sendmail/solaris(mailx)

Hi, Can anyone pls. tell me how to access Active directory from solaris. I am looking at solution by which I can send mail notification from the logs generated by scripts, to the users on Exchange server. I am trying for a Perl-LDAP module , but don't realy know how to go for it (5 Replies)
Discussion started by: ganeshh
5 Replies
Login or Register to Ask a Question