Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Not able to send mail on my company's account but gmail in Linux 6.8 Post 302993138 by drysdalk on Tuesday 7th of March 2017 07:21:32 AM
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.
 

6 More Discussions You Might Find Interesting

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

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

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

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

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

6. 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
SUP-CMD(1)						      General Commands Manual							SUP-CMD(1)

NAME
sup-cmd - connect to a running sup-server SYNOPSIS
sup-cmd [global options] command [options] DESCRIPTION
Connect to a running sup-server and execute command. Valid commands are: query count label add OPTIONS
--archive, -a Automatically archive all new messages from these sources. --unusual, -u Do not automatically poll these sources for new messages. --labels, -l label A comma-separated set of labels to apply to all messages from this source --force-new, -f Create a new account for this source, even if one already exists. --force-account, -o account Reuse previously defined account user@hostname --version, -v Print version and exit --help, -h Show help message SEE ALSO
sup-mail(1), sup-server(1) AUTHOR
Sup was written by William Morgan <wmorgan-sup@masanjin.net>. This manual page was written by Per Andersson <avtobiff@gmail.com> for the Debian project (but may be used by others). April 9, 2012 SUP-CMD(1)
All times are GMT -4. The time now is 04:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy