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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have a working MTA (Sendmail) before.It really works well with my Squirrelmail.However,I do think Sendmail is pretty hard to configure in details and security has been in my consideration.So I shift to Postfix.
Yeah,Postfix is pretty easy to configure and good at security.However,I keep getting this message when I want to send out message via MUA.
The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'email@example.com'. Subject '', Account: 'myhostname', Server: 'myhostname', Protocol: SMTP, Server Response: '554 <firstname.lastname@example.org>: Relay access denied', Port: 25, Secure(SSL): No, Server Error: 554, Error Number: 0x800CCC79
It keeps bothering me....Yeah,by the way,I would like to list out some background information.
1.My ISP blocks port 25.
2.I have a router which opens port 25,110.
3.IPTables is off.
4.Most importantly,my postfix configuration setting is as follows:
To find your host name, open up a terminal and type:
And it should spit it out. If you don't have one, feel free to set one by:
If you want your hostname to be 'linuxrules'. Do this as root, and the changes will remain until reboot. Depending on your distro, there are a few ways to make the change permanent, so consult your distro's docs for further info on that
Then, once you have the hostname, edit your postfix/main.cf to show the correct hostname. That is all I notice at a quick glance.
First off,thanks for your reply,MasterC.I have discovered that you contributed very much regarding mail server setup.I'm impressed.
My problem lies on mynetworks configuration.Basically,I have 2 computers at home.1 for linux server and other for windows XP and set as LAN.I've assigned IP address 192.168.0.5 and 192.168.0.6 accordingly.So, mynetworks=192.168.0.5/6.However,it didn't work.When I made the mynetworks=192.168.0.5,it's fine again.But I have a question,when my mail server doesn't know where is 192.168.0.6?But 192.168.0.5 do.
perhaps you would prefer to set your netmask to 24. You currently have it set to /6 which would mean that the network portion of your addres space is 19? and the rest are nodes. You probably have your network setup to 192.168.0.xxx so a /24 would be appropriate. No?
Unfortunately,I got a problem regarding mynetworks again.I've read the documentation,and I set mynetworks=192.168.0.0/24,which means that the initial 3 IP 192.168.0 is my network.And the last one is my hosts,1-254.However,my windows XP box can't send mail.The reason is Relay access denied.What's wrong with my setting???
Sorry,I've got something to compliment my message.I found that my problem lies on /etc/hosts.I think my linux computer doesn't realize that there are a Windows XP box in LAN,which makes my mail server sent a relay access denied to my XP's MUA.
However,how do I fix it?Any ideas are appreciated!
Well, how are you routing it to your mail server? Are you using POP3, IMAP or do/did you have it setup differently all together? If you explain your network a bit better and it's setup, I might be able to draw a better picture in my mind to further assist
First off,thanks for your reply MasterC.I will answer your questions one by one.
I have installed POP3 and IMAP.However,I will only use IMAP.The package is called imap-2000c rpm for RedHat.I have enabled IMAP and my webmail is running fine. The problem lies on my Windows XP box.It has a IP address 192.168.0.6.My server doesn't recognize its existence!And it said "Relay access denied" when I use XP box to send a mail via my server.
Did I provide enough information for you to help me?Please let me know.I am appreciative for your help.
If your Isp is blocking port 25 then your MX resolution will never get there. SMTP is needed for mail. It uses port 25 and dns will always default your MX record to port 25. If your ISP is blocking it there is probably a reason. I had the same problem with Road Runner. The access lists in their routers will not pass port 25 trafficExcept to thier internal servers). The solution was to buy the first level of business class that cost a wopping $15 more. My download speed jumped from 1.2Mb to over 2.4MB and upload is 768K. Thats cheap for that much gain. I also had them configure all ports open. That solved the problem.
Thanks for your input,PDR60.Although my ISP blocks port 25,I have passed all my outgoing mail to ISP mail server.Moreover,if it caused the problem,then why can I use webmail to receive and send mail?So,I do think this is not the root of the problem.
Hmm, that brings up a good point. Not necessarily my advice, but to clarify what PDR60 is saying:
If your ISP is blocking port 25, then you cannot communicate via an MUA. However, for webmail setups (such as Squirrelmail) you are communicating with your server via port 80 (http requests, sent internally to your machines port 443 - IMAP). So in essence, you don't need an open port 25 if you do the webmail interface, but if you step outside that, and try to communicate via port 25, it's blocked.
Originally posted by Swift&Smart Thanks for your input,PDR60.Although my ISP blocks port 25,I have passed all my outgoing mail to ISP mail server.Moreover,if it caused the problem,then why can I use webmail to receive and send mail?So,I do think this is not the root of the problem.
Anyway,thanks a lot for reading many messages.
Thats not correct. Webmail clients use IMAP which is port 141. Not 25. Port 443 is for HTTPS. You will never get mail on port 25 unless the access list on your ISP's router is opened( I worked for an ISP for 2 years). It has nothing to do with your end. You can configure till the cows come home. If the ISP side of your connection is blocking port 25, Game over!!!! There are services that offer dynamic smtp. Folks like www.changeip.com can overcome your problem by "proxying" your mail. Not a very elegant solution but it will work for low volume. However, If you are going to spend the money for dynamic smtp you Might as well just up your service to get your connection with all ports open
Thats your best bet. Just get the correct connection.