LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-15-2009, 07:24 PM   #1
harsshal
Member
 
Registered: Jul 2006
Location: New York, NY
Distribution: redhat,ubuntu,RHEL,fedora,centOS
Posts: 105

Rep: Reputation: 15
cannot send mail from local machine


When i try to send mail using 'mail' command to mail.server1.com,I cannot send them. However I can send mails to user@gmail.com.
Is that because sender is user@192.168.0.XX?
How can I change this sender?
 
Old 02-16-2009, 02:56 PM   #2
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
is your email being blocked by Gmail? what is your error?
 
Old 02-17-2009, 12:08 AM   #3
harsshal
Member
 
Registered: Jul 2006
Location: New York, NY
Distribution: redhat,ubuntu,RHEL,fedora,centOS
Posts: 105

Original Poster
Rep: Reputation: 15
gmail allows my mail.but "mail.nyu.edu" doeasn't.there is no error on my side.
 
Old 02-17-2009, 08:25 AM   #4
vlademir
Member
 
Registered: Jan 2009
Location: The Netherlands
Distribution: Centos,Ubuntu,Mandriva,Suse11.1
Posts: 86

Rep: Reputation: 17
Quote:
Originally Posted by harsshal View Post
gmail allows my mail.but "mail.nyu.edu" doeasn't.there is no error on my side.
can you explain better then situation perhaps i can help you?
 
Old 02-17-2009, 10:31 AM   #5
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
You might take a look at your access list database and make sure that you have allowed mail from that subnet. It looks like you are running Fedora so it will be in /etc/mail look for a file called access. Follow the protocol as displayed in the file and then you will have to rebuild the database: "makemap hash access<access" (without the quotation marks of course). The try sending a message.
 
Old 02-19-2009, 02:56 PM   #6
harsshal
Member
 
Registered: Jul 2006
Location: New York, NY
Distribution: redhat,ubuntu,RHEL,fedora,centOS
Posts: 105

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by vlademir View Post
can you explain better then situation perhaps i can help you?
I ran 2 commnads
Code:
#mail -s hi xyz@gmail.com
bye
ctrl + D

#mail -s hi xyz@nyu.edu
bye
ctrl + D
xyz@gmail.com gets the mail but xyz@nyu.edu doesn't.
 
Old 02-19-2009, 03:01 PM   #7
harsshal
Member
 
Registered: Jul 2006
Location: New York, NY
Distribution: redhat,ubuntu,RHEL,fedora,centOS
Posts: 105

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ScooterB View Post
You might take a look at your access list database and make sure that you have allowed mail from that subnet. It looks like you are running Fedora so it will be in /etc/mail look for a file called access. Follow the protocol as displayed in the file and then you will have to rebuild the database: "makemap hash access<access" (without the quotation marks of course). The try sending a message.
sorry but I did not find the file with protocol
Code:
[root@mymachine ~]# cat /etc/mail/access
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
Connect:localhost.localdomain		RELAY
Connect:localhost			RELAY
Connect:127.0.0.1			RELAY

[root@mymachine ~]# file /usr/share/doc/sendmail/README.cf
/usr/share/doc/sendmail/README.cf: ERROR: cannot open `/usr/share/doc/sendmail/README.cf' (No such file or directory)
Should I just go ahead and rebuild the database using "makemap hash access<access"?

Last edited by harsshal; 02-19-2009 at 03:06 PM.
 
Old 02-19-2009, 04:01 PM   #8
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
I think before we go too far, it might be good to get a look at your actual mail log. Should be in /var/log/maillog. Try posting the parts of that when you send a mail to gmail and to the other domain that you were trying. Have you tried sending to a yahoo address? Or any other valid domain? Try those things and then repost with the text of your mail log. That might help narrow the search for a solution. Thanks!
 
Old 02-20-2009, 06:51 AM   #9
harsshal
Member
 
Registered: Jul 2006
Location: New York, NY
Distribution: redhat,ubuntu,RHEL,fedora,centOS
Posts: 105

Original Poster
Rep: Reputation: 15
OK.solved it.
I think the problem was 'nyu.edu' did not like the mails from local machine,the machine which did not set reply to address correct.These mails had reply to address as user@192.168.0.xx.

Thus, I changed 'from' field in mail using -f option and it worked.

Thanks a lot guys.Specially ScooterB.
 
Old 02-20-2009, 08:25 AM   #10
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
You're quite welcome. Glad that we could help. That's what this community is all about!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[exim4] how to send mail to local computers (on LAN) jabka Linux - Server 4 05-20-2008 01:26 AM
Postfix: Do not allow local users to send mail Termina Linux - Server 1 03-22-2007 06:15 PM
Setup local machine to allow lan machines to retrieve its local user mail. Brian1 Linux - Networking 3 03-30-2006 06:04 AM
can send and recieve local mail, but not mail from internet Caine101022 Linux - Software 2 09-09-2005 02:35 PM
I can't send mail by using local mail server hus Linux - Software 0 05-10-2004 03:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration