Visit Our UNIX and Linux User Community


can not send mail from unix server to company/yahoo mail


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers can not send mail from unix server to company/yahoo mail
# 1  
Old 11-20-2002
Network 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
NETUNIX NIS NISPLUS QUEUE SCANF SMTP XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = my_server
(canonical domain name) $j = my_server.my_companydomain.com
(subdomain name) $m = my_companydomain.com
(node name) $k = my_server

ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>

When I ran "mailx/mail" , it gave me " User Unknown" error and save my message into a dead.letter. Can somebody tell me what do I need to change in my sendmail.cf file? My only purpose is trying to send file in this server to somebody in my company's e-mail account.

Message from syslog:

Nov 19 13:48:07 my_server sendmail[9885]: NAA09885: to=somebody@my_company.com, delay=00:00:00, mailer=relay, stat=queued


Thanks!
# 2  
Old 11-20-2002
Check your /etc/mail/sendmail.cf file for the following:

# who I send unqualified names to (null means deliver locally)
DR

# who I masquerade as (null for no masquerading) (see also $=M)
DM

If there are no entries here, it may be that the user you attempted to send to is not in the /etc/passwd file and it did not know where to send this to thus it gives an error. Since you are sending to your domain (someuser@my_company.com) and if those fields are blank, then it did not know where to send the email to. So it checks /etc/passwd for the username. If it's not there, it can then check /etc/mail/aliases for an alias for the user name

somuser: someuser@otherserver.my_company.com

If there isn't an alias, it won't send.

At some point there has to be a mail server that knows about all the users. My environment had an Exchange server so all email not specifically for the internet (someone@not_my_domain.com) or not specifically for a local user or aliases ( allunixadmins: joe, tom, charlie, scott) would go to the Exchange server. If your Sendmail server will be the main mail hub, then all users must be listed in /etc/passwd or have an alias set up in /etc/mail/aliases.

You need to check out the FAQ at Sendmail and/or read the Sendmail book to figure out how you want to move mail around. Once you figure that out, more specific help can be given.
# 3  
Old 11-20-2002
(corrected by RTM ,thanks!)

You can use sendmail to test sending mail:

Code:
sendmail -v  user@hostname < testfile

Run the command above from the command line with the right values for the email address and testfile.... then post the results and it should be easy to see what is the problem.
# 4  
Old 11-20-2002
A mail user agent is for reading, replying, disposing, and composing an email. If you move /usr/lib/sendmail to /usr/lib/oldsendmail on a Solaris system and insure it's not running on the server (ps -ef|grep mail), then when you go to send an email with mailx you will get an error (even on a local user within the same system).

# mailx -s"test" unixops < /etc/issue
/usr/lib/sendmail: No such file or directory


Sendmail does not have to be running (that is when it is allowing incoming mail to the local server) but must be present (or some other MTA) for sending email.

On HP-UX, moving sendmail does nothing to sending to local users but will stop you from sending out from that server to another.
# 5  
Old 11-22-2002
does sendmail checks the emails which it sends and if so where?
yls177
# 6  
Old 11-22-2002
RTM,


Your are right. I tested it the other day and found that when I tested it I had moved the symbolic link to /usr/sbin/sendmail and not the actual sendmail program.

When I moved the program, I got the same result as you.

I will go back to my server and move sendmail back to it's homely place now Smilie

I greatly appreciate you correcting my error..... I thought I had checked it but actually moved the symlink and not the actual sendmail program Smilie
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #48
Difficulty: Easy
Alan Turing is considered to be the 'Father of Cryptography'.
True or False?

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies

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

3. Shell Programming and Scripting

How to send mail using PHP mail function On apache server.?

Hello, I am using centos-6.2 I have apache server,php5 on my system and I want to send mail using sendmail on my system. when I try to send mail from shell that time mail is succesfully sent to respective address() but when I try to send it through webbrowser I am not able to send it.... (1 Reply)
Discussion started by: Kiran ursal
1 Replies

4. UNIX for Advanced & Expert Users

How can I send a mail from my outlook or other mail accounts to UNIX server?

Hi all, I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix. How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Discussion started by: igelegin
2 Replies

5. Shell Programming and Scripting

How i can send a mail from outlook to an UNIX server?

Hi all, I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can sent from the unix server to my outlook account,I can't send from outlook to unix. How can I achieve this ? How can I send a mail from my outlook or other... (5 Replies)
Discussion started by: igelegin
5 Replies

6. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

7. HP-UX

[Solved] How do I configure Unix Mail Server to use another Mail Exchange Server

We have configured our mail unix server and can send out emails automatically from applications running on unix to different people in our company as well as outside our company. However there is an outside client who is not receiving these emails because the settings on their mail server cannot... (4 Replies)
Discussion started by: Tenyhwa
4 Replies

8. UNIX for Dummies Questions & Answers

I am not able to send mail form unix to other mail accounts.

Using Mailx command i.e mailx -s "subject" chinni@hotmail.com < \tmp\chin this command executed sucessfully but not able to receive the mail in chinni@hotmail.com please help. (1 Reply)
Discussion started by: chinnigd
1 Replies

9. UNIX for Dummies Questions & Answers

Send mail to any user (@hotmail,@yahoo etc) from Solaris

Hi All, I am new to unix. I want to know what are the steps to do in order to configure a unix server (Solaris 8) to send mails to the outside world. I also want to send attachments in the mail. Thanks in advance Zing (2 Replies)
Discussion started by: zing
2 Replies

Featured Tech Videos