mail not working with company id


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat mail not working with company id
# 1  
Old 10-05-2011
mail not working with company id

Hi,

I have a fresh new installation of red hat linux. I am trying to send an email from the "mail" utility from inside my Linux box to my company id "xxx@company.com". We are using microsoft exchange server online version to host our company's email.

I am able to send emails to gmail and yahoo but not to my company id. What do you think could be going wrong? Is it something like I dont have SMTP host defined for my company id?

Thanks for your help..
Pri.

---------- Post updated at 04:31 PM ---------- Previous update was at 01:24 PM ----------

Update: so I just ran exim in debugging mode and attached below are the results of that.....our email is hosted on "Smtp.mail.microsoftonline.com"

Where do I need to specify that the rmail or mail utility or even exim has to use that when sending mails outside of the local machine.

-------------------------------------------------------------------------------------------
Code:
Exim version 4.63 uid=0 gid=0 pid=28776 D=fbb95cfd
Berkeley DB: Sleepycat Software: Berkeley DB 4.3.29: (July 12, 2010)
Support for: crypteq iconv() IPv6 PAM Perl TCPwrappers OpenSSL Content_Scanning Old_Demime
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch ldap ldapdn ldapm mysql nis nis0 nisplus passwd pgsql sqlite
Authenticators: cram_md5 cyrus_sasl plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
changed uid/gid: forcing real = effective
  uid=0 gid=0 pid=28776
  auxiliary group list: <none>
seeking password data for user "root": cache not available
getpwnam() succeeded uid=0 gid=0
configuration file is /etc/exim/exim.conf
log selectors = 00000ffc 00089001
trusted user
admin user
originator: uid=0 gid=0 login=root name=root
sender address = root@lillypoo.company.local
Address testing: uid=0 gid=93 euid=0 egid=93
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Testing priya@company.com
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Considering priya@company.com
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
routing priya@company.com
--------> dnslookup router <--------
local_part=priya domain=company.com
checking domains
company.com in "@ : localhost : localhost.localdomain"? no (end of list)
company.com in "! +local_domains"? yes (end of list)
calling dnslookup router
dnslookup router called for priya@company.com
  domain = company.com
DNS lookup of company.com (MX) succeeded
DNS lookup of www.company.com (MX) gave NO_DATA
returning DNS_NODATA
DNS lookup of company.com (AAAA) succeeded
DNS lookup of www.company.com (AAAA) gave NO_DATA
returning DNS_NODATA
DNS lookup of company.com (A) succeeded
192.168.2.107 in "0.0.0.0 : 127.0.0.0/8"? no (end of list)
fully qualified name = company.com
www.company.com 192.168.2.107 mx=-1 sort=-140 
set transport remote_smtp
queued for remote_smtp transport: local_part = priya
domain = company.com
  errors_to=NULL
  domain_data=NULL localpart_data=NULL
routed by dnslookup router
  envelope to: priya@company.com
  transport: remote_smtp
  host www.company.com [192.168.2.107]
priya@company.com
  router = dnslookup, transport = remote_smtp
  host www.company.com [192.168.2.107] 
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=28776 terminating with rc=0 >>>>>>>>>>>>>>>>

Moderator's Comments:
Mod Comment Video tutorial on how to use code tags

Last edited by pludi; 10-06-2011 at 11:17 AM..
# 2  
Old 10-06-2011
check with the company exchange server if the port is open for mail
# 3  
Old 10-06-2011
Quote:
Originally Posted by robo
check with the company exchange server if the port is open for mail
Company exchange server is hosted on microsoft exchange online services....so its like sending a mail from unix to yahoo (as the email is not hosted inside the company)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Not able to send mail on my company's account but gmail in Linux 6.8

On Red Hat Enterprise Linux Server release 6.8. I am to get the email from my LINUX box on gmail account but it fails on company domain. getting status=sent for gmail. BUT getting below error for company domain: status=bounced #5.1.8 Domain of sender address <root@xxxx.com> does not exist... (16 Replies)
Discussion started by: nadeemrafikhan
16 Replies

2. Red Hat

Mail not working

Hello All, we have got a new linux server where the mailx/sendmail/uuencode doesn't seem to be working. The system admin guys have told me that they have configured the mail on port 25, the servers are in very secured zone which dont have internet connection hence i'm not able to understand... (1 Reply)
Discussion started by: Mahesh_RPM
1 Replies

3. BSD

mail command is not working

Hi, Mail command is not working. mail -s "hello" abc@google.com < samplefile I am new to BSD.what do i need to do? Please help. Thnaks, Gita. Please use code tags next time for your code and data. (2 Replies)
Discussion started by: gita
2 Replies

4. Shell Programming and Scripting

mail function - script not working

#!/bin/bash { m() $mail='("$someemail@gmail.com ", Cc:"$me" -t, Subject:"$emailmyself" -s, $someinputfile")' } what I am trying to do is create a function have it load when type the letter "m" so all have to do type an address after it send email. it tell me syntax on line 4 but which... (2 Replies)
Discussion started by: ericde
2 Replies

5. BSD

Mail not working and probably never has

Hi hopefully I am in the right forum I am trying to get mail working on a 15 year old server which has probably never been configured to work before The server is on a network with TCP installed and the different servers on this network can all see each other with ping and rsh when I try... (4 Replies)
Discussion started by: DanJSC
4 Replies

6. AIX

Why is mail not working?

I've configured sendmail.cf file and sent a test. Failed. /var/adm/messages log file showed "Unknown Domain" error. Added my domain to the sendmail.cf file and error went away but I still don't receive messages. And now there's no errors in the log file to point to another issue. mailx -s "This... (2 Replies)
Discussion started by: bbbngowc
2 Replies

7. UNIX for Dummies Questions & Answers

mail command not working

Hi I am trying to runmail command to send some text to my email id. But its getting hanged up. Not sure what is the problem. Please help. mail -s "testing" abc@somearess.com Thanks (1 Reply)
Discussion started by: infyanurag
1 Replies

8. Shell Programming and Scripting

mail command not working

hi all I am not able to send mail from unix box to my mail id. do i need to do any settings for that? when i issue this command:- mail -s "letter" <abc.txt the $ pompt goes away and the unix is on wait state. what should I do? (3 Replies)
Discussion started by: infyanurag
3 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

10. UNIX for Advanced & Expert Users

Mail services not working

Hello, all. We currently have three UNIX boxes run Reliant Unix, a System V Release 4 variant. Mail can't be sent out of one of the boxes to anywhere outside the box. For a client we use the mail command. I am not sure how to determine the message transfer daemon that is running. When... (2 Replies)
Discussion started by: petrosi
2 Replies
Login or Register to Ask a Question