Link to home
Start Free TrialLog in
Avatar of shura
shura

asked on

Sendmail won't receive mail from outside...

I am running Web server on Linux Mandrake6.1 box for my company. Recently I got DNS name registration for my IP and now www and ftp servers work fine. But my sendmail server won't receive emails from outside of my local LAN. You can send mail everywhere but you can't receive it. This I get from my external mail provider:
"This Message was undeliverable due to the following reason:
Each of the following recipients was rejected by a remote mail server.
The reasons given by the server are included to help you determine why each recipient was rejected.
    Recipient: <shura@mydomain.co.il>
    Reason:    <shura@mydomain.co.il>... Relaying denied "
If you want to send mail inside of our company everything works fine. I use regular sendmail distribution. My Linux box acts as Firewall-Proxy for my local LAN.
Please advise me how to solve the problem.
Shura

Avatar of throughput
throughput

Here is a comment that may lead to the answer. It seems like the spam control in sendmail is doing what it is suppose to and stopping your mail. Look to the sendmail configuration files for your solution. I am not going to begin to dive into sendmail configuration. There is a 4 inch thick O'Reilly book on it. But spam control sounds like your problem. Personally I use a free multi-Unix web based admintool. It lets me configure the relay and spam control with ease. http://www.webmin.com/ 
"Relaying Denied" means your network feed (ISP) is refusing to send the packets on.  It is the Anti-spam tools the previous commenter refered to, but it's not your configuration, it's the upstream's.  You usually deny relaying because it gives spammers a way to hide their identity.  Some one at your upstream connection needs
to be told that your domain either needs a forwarding rule, or you need an MX record updated to tell the world to route mail directly to your machine (probably with the upstream acting as a secondary server, to hold mail if you are unreachable (down) ).


Bob
It sounds more like you have not opend the correct ports in the firewall daemon that Mandrake installs as a default.  That you can send mail and ftp and web works ( both anonymous ervices by default you will need to open the ports to let the internet into your machine.
Avatar of shura

ASKER

I already solved that problem and comments sent by throughput@lc and rwenzla@lc were right 100%. I established spam control and fixed problems with my ISP and now everything works fine. The only one problem is that I have to define in spam control IP address of users that uses my mail server. But it is difficult if you don't know exectly their IP's. May be do you know how to enable to my users to read mail from enywhere?
Thanks in advance,
Alexander
ISRAEL
ASKER CERTIFIED SOLUTION
Avatar of oesse
oesse

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial