Configure mailx in Solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris Configure mailx in Solaris 10
# 1  
Old 01-21-2016
Configure mailx in Solaris 10

Hello,

We are using exchange server in our environment. I need to configure mailx to send email from Solaris box to one mail I'd which is on exchange server. I know ip of exchange server.. Let me know where should I configure that ip to do the needful?
# 2  
Old 01-21-2016
In Solaris it is probably most easy to define a host alias mailhost for your mail server's IP-addr.
Code:
getent mailhost

should state the IP-addr.
If you use a DNS server, this is the place to define the mailhost.
If you have many Solaris systems, and they use DNS, then they all will send to it.
If you don't use DNS, you can define mailhost in /etc/inet/hosts.
--
As an alternative, you can put the mailserver behind the DS entry in /etc/mail/sendmail.cf with no space, like DSservername.
It might be that servername can be an IP-address, otherwise you need to map one in DNS or /etc/inet/hosts.
After a change in /etc/mail/sendmail.cf you need to restart the service with
Code:
svcadm restart sendmail

# 3  
Old 01-22-2016
Hi

Thanks for reply. I condifured sendmail with exchange server IP but mail is not getting delivered. Please find below error

Code:
bash-3.2# echo "testmail" | mailx -vvv -s "fromsolaris" abc@xyz.com
You have new mail in /var/mail/root
bash-3.2# abc@xyz.com... Connecting to [127.0.0.1] via relay...
220 hostname.xcv.zsd.AFF ESMTP Sendmail 8.14.5+Sun/8.14.5; Fri, 22 Jan 2016 14:57:54 +0530 (IST)
>>> EHLO hostname.xcv.zsd.AFF
250-hostname.xcv.zsd.AFF Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> MAIL From:<root@hostname.xcv.zsd.AFF> SIZE=84
250 2.1.0 <root@hostname.xcv.zsd.AFF>... Sender ok
>>> RCPT To:<abc@xyz.com>
>>> DATA
250 2.1.5 <abc@xyz.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
050 <abc@xyz.com>... Connecting to 10.10.1.13 via relay...
050 220 mailserverdomainname.com Microsoft ESMTP MAIL Service ready at Fri, 22 Jan 2016 14:57:53 +0530
050 >>> EHLO hostname.xcv.zsd.AFF
050 250-ailserverdomainname.com Hello [10.5.2.14]
050 250-SIZE
050 250-PIPELINING
050 250-DSN
050 250-ENHANCEDSTATUSCODES
050 250-STARTTLS
050 250-X-ANONYMOUSTLS
050 250-AUTH NTLM
050 250-X-EXPS GSSAPI NTLM
050 250-8BITMIME
050 250-BINARYMIME
050 250-CHUNKING
050 250-XEXCH50
050 250-XRDST
050 250 XSHADOW
050 >>> STARTTLS
050 220 2.0.0 SMTP server ready
050 >>> EHLO hostname.xcv.zsd.AFF
050 250-mailserverdomainname.com Hello [10.5.2.14]
050 250-SIZE
050 250-PIPELINING
050 250-DSN
050 250-ENHANCEDSTATUSCODES
050 250-AUTH NTLM LOGIN
050 250-X-EXPS GSSAPI NTLM
050 250-8BITMIME
050 250-BINARYMIME
050 250-CHUNKING
050 250-XEXCH50
050 250-XRDST
050 250 XSHADOW
050 >>> MAIL From:<root@hostname.xcv.zsd.AFF> SIZE=428
050 250 2.1.0 Sender OK
050 >>> RCPT To:<abc@xyz.com>
050 >>> DATA
050 250 2.1.5 Recipient OK
050 354 Start mail input; end with <CRLF>.<CRLF>
050 >>> .
050 550 5.7.1 Anonymous client does not have permissions to send as this sender
050 <root@abc@xyz.com>... Connecting to local...
050 220 hostname LMTP ready
050 >>> LHLO OTTPSR5CWEB03.aiu.aig.AIUMEMSA
050 250-hostname
050 250-8BITMIME
050 250-ENHANCEDSTATUSCODES
050 250 PIPELINING
050 >>> MAIL From:<>
050 250 2.5.0 ok
050 >>> RCPT To:<root>
050 >>> DATA
050 250 2.1.5 ok
050 354 go ahead
050 >>> .
050 250 2.1.5 root OK
050 <root@hostname.xcv.zsd.AFF>... Sent
250 2.0.0 u0M9RsaI028723 Message accepted for delivery
abc@xyz.com... Sent (u0M9RsaI028723 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 hostname.xcv.zsd.AFF closing connection

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How can i configure AIDE on Solaris 10?

Hi Community, how can i configure AIDE on SPARC solaris 10. My AIDE is running and creating databases. But it's not loading any changes. what changes needs to be done in aide.conf file. Thanks & Regards, Ben (0 Replies)
Discussion started by: bentech4u
0 Replies

2. Solaris

Mailx help in Solaris

Hi Team, We are with Solaris 10. And presently we are sending mail using the tool mailx -s. Our requirement is we need to send amil with HIGHPRIORITY. SO is there any way to send the mail as HIGHPRIORITY. If not any alternative way instaead of using mailx. Thanks in advance. Regards Bala (7 Replies)
Discussion started by: balagj709
7 Replies

3. Shell Programming and Scripting

configure from address in mailx command

Hi, I need to configure customized from address in mailx command. Can you pls tell me the option for configuring from address. Thanks Latika (9 Replies)
Discussion started by: latika
9 Replies

4. UNIX for Advanced & Expert Users

Configure a domain in Solaris.

People i have 2 solaris 10 A webserver and a mailserver. What i need to do is to send a mail inside de webserver to the domain company In the webserver When i use mailx -v -s Prueba me@gmail.com This is ok and the mail is send. But when i try to send a mail to someone inside de company ... (4 Replies)
Discussion started by: enkei17
4 Replies

5. Solaris

how to configure IPMP in solaris 9

Hi friends , can anyone provide me the complete steps to configure IPMP in solaris 9 or 10 provided i have two NIC card ? regards jagan (4 Replies)
Discussion started by: jaganblore
4 Replies

6. Solaris

Configure mailx or sendmail

hi, I would like to configure mailx or sendmail to send out some mails to some users. I tried searching online for the configuration but it was kinda confusing. I thought that posting here might get someone to work with me step by step I tried sending out mail but i did not receive in my... (4 Replies)
Discussion started by: cghcgh
4 Replies

7. Solaris

how to configure network in solaris 10?

Hi..i have installed solaris 10 on vmware. I m not able connect to internet. pls help in detail. how to solve the problem. During the installation i have put no DHCP. cofigured manually ( Ip 192.168.1.9) default gateway 192.168.1.1 . (3 Replies)
Discussion started by: johnavery
3 Replies

8. Cybersecurity

How to configure sendmail in solaris 10

how to configure sendmail in solaris 10 ???? Anyone knows, pls share the documents. (1 Reply)
Discussion started by: vishwanathhcl
1 Replies

9. Shell Programming and Scripting

How to configure mailx command??

Hi, {SunOS} I have this mailx -s command in my script and when the script is run,it throws me this message The flags you gave are used only when sending mail. Usage:mailx -eiIUdFntBNHvV!~ -T FILE -u USER -h hops -r address -s SUBJECT -f FILE users. Can you help me how i can send an... (9 Replies)
Discussion started by: kumarsaravana_s
9 Replies

10. IP Networking

configure TCP/IP for solaris 8

Hello, I have 4 unix (Solaris 8) stations need to setup on network. what is a easy way and quick to setup TCP/IP so I can bring it online?. Please advise! (3 Replies)
Discussion started by: phapvn
3 Replies
Login or Register to Ask a Question