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
mlmmj-send(1)						      General Commands Manual						     mlmmj-send(1)

NAME
mlmmj-send - send mail to a mailinglist or similar SYNOPSIS
mlmmj-send [-L /path/to/list | -l listctrl] -m /path/to/mail [-a] [-D] [-F] [-h] [-o] [-r] [-R] [-s] [-T] [-V] -a: Don't archive the mail -D: Don't delete the mail after it's sent -F: What to use as MAIL FROM: -h: This help -l: List control variable. -L: Full path to list directory -m: Full path to mail file -o: Address to omit from distribution (normal mail only) -r: Relayhost IP address (defaults to 127.0.0.1) -R: What to use as Reply-To: header -s: Subscribers file name -T: What to use as RCPT TO: -V: Print version DESCRIPTION
This binary is used to send all kinds of mail to mlmmj managed mailinglists, but can potentially be used standalone for sending mails. The only option that is not self explanatory is the -l list control option: '1' means 'send a single mail' This is used together with -F and -T to send one mail to one recipient. '2' means 'mail to moderators' Used for sending mails to the moderators of a list. '3' means 'resend failed list mail' '4' means 'send to file with recipients' '5' means 'bounceprobe' '6' means 'single listmail to single recipient' BUGS
This manual page is very scarce documentation of the mlmmj-send binary. The reason for this is that it's really not supposed to be used by any human, but only supposed to be invoked from other mlmmj binaries. So in case more documentation is needed, please read the source. AUTHORS
This manual page was written by the following persons: Soren Boll Overgaard <boll@debian.org> (based on html2man output) Mads Martin Jorgensen <mmj@mmj.dk> mlmmj-send January 2010 mlmmj-send(1)
All times are GMT -4. The time now is 07:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy