Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344
Rep:
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.
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"?
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344
Rep:
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!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.