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


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Not able to send mail on my company's account but gmail in Linux 6.8
# 1  
Old 03-07-2017
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:
Code:
status=bounced
#5.1.8 Domain of sender address <root@xxxx.com> does not exist (in reply to MAIL FROM command))

-- Please help Smilie

Last edited by rbatte1; 03-08-2017 at 11:23 AM..
# 2  
Old 03-07-2017
Hi,

There are so many things that could be going on here. I'm guessing that you're attempting to send e-mail from your own Linux box, using its own local MTA (Postfix, sendmail, etc), and that when you try to send e-mail to your GMail account you get these bounce messages.

Again this is a pure guess since you've not really given us much to go on here, but if (for example) your Linux box has a hostname of foo.company.com, and you're logged in or otherwise running as 'root' at the time, then mail you send from the command line or otherwise directly through your own MTA will go out as 'root@company.com'.

Now, GMail (and many other mail services besides) tend to do all kinds of checking on incoming e-mail to determine whether or not it's valid. One of these checks can be to determine if the apparent e-mail address the sender is sending as actually exists. Now, if your company doesn't have an e-mail address called 'root@company.com' it will fail this check, and GMail will bounce the mail.

Note that if this is what is happening then this is 100% correct and valid behaviour. You almost certainly don't want to be sending mail out from your workstation as 'root@company.com'. Instead, in whatever script or command or program you're sending your mail, you need to set a valid 'From:' address to use instead. That way, mail has a better chance of going out succesfully.

Also, if your company has an e-mail gateway for sending outbound mail from, configure your own local MTA (Sendmail, postfix, etc) to be a smart relay, instead passing all its own local mail to that relay. Or just directly send out to that corporate mail relay instead, rather than submitting e-mail locally. That would be best practice in general, if you have such a facility to make use of.

Hope this helps.
# 3  
Old 03-07-2017
Thank !! but I can receive the email on gmail account but not company account from the same server.!!
# 4  
Old 03-07-2017
Hi,

OK. Well, the explanation could be the same. In fact it would make even more sense that your own company's mail servers would reject the mail, if it is being sent as 'root@company.com' and that address does not exist or you don't have permission to use it.

Where is the bounce report actually coming from - as in, from what mail server ? Are you sending the bounced mail using a desktop client like Thunderbird or something similar, or by command-line use of mail, mailx, sendmail, etc ? Also, regardless of what you're using to send, are you setting a valid "From:" address that actually exists ?
# 5  
Old 03-07-2017
Thanks....Yes , I am using mail and sendmail utility from CLI mode, and the logs , I am getting from /var/log/maillog.

I am in with root user and send the both mail from the same root user , one is working and another not, don't know how it could be a permission problem. Please explain it.
# 6  
Old 03-07-2017
Hi,

OK. The two main questions I asked still stand: where are the bounce reports coming from, and are you setting a valid "From:" address ? As previously mentioned, it's very unlikely indeed that root@ is a valid e-mail address for your domain, and so your own company mail servers are almost certainly rejecting your mail because of that.
# 7  
Old 03-08-2017
Got bounce report from /var/log/maillog. and could you please let me know know to check valid address on this server. as I am new on mail server.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Programming

How to send a file in e-mail from on Linux C++?

Hi ! I-m copile from source a C++ program from tutorials from internet. I don't understendig any programing languages.. but compiled aplication running ok. I-ts possible to add in my used program, lines to send one file from config directory in e-mail, to my e-mail adress ? I want to run... (2 Replies)
Discussion started by: kraftwerk
2 Replies

2. Red Hat

unable to send mail from redhat linux server

While sending mail from linux server we observed below logs, stat=Deferred: Name server: xxxxxxxxxx.: host name lookup failure Kindly suggest what we need to change? Thanks in Advance (2 Replies)
Discussion started by: hydoss1
2 Replies

3. Red Hat

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... (2 Replies)
Discussion started by: priya33184
2 Replies

4. Shell Programming and Scripting

Send mail from linux

Hi, Could any one get me suggested how to send a mail from a linux server to any external user? I tried the following : $ mail abc@xyz.com Subject: test Hi, This is a test mail. . Cc: def@xyz.com But I haven't recived any mail at abc@xyz.com and def@xyz.com Kindly help on... (2 Replies)
Discussion started by: yogi_4984
2 Replies

5. UNIX for Dummies Questions & Answers

using mailx to send a log file to my outlook e-mail account

I like to use mailx -s to send an entire xxxxx.log to my outlook e-mail account. Any help will be appreciated. Thanks. (6 Replies)
Discussion started by: simt
6 Replies

6. 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