LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-03-2004, 12:08 AM   #1
Wynand1
Member
 
Registered: Mar 2004
Posts: 121

Rep: Reputation: 15
Arrow Sendmail and relaying


I've setup sendmail to allow relaying for my local network , but how do I get it to work from external (client on the Internet). I've tried to set it per user , email address but it doesn't seem to work. I'm using webmin.

What I want : To be able to email from the local network. Be able to email from home using email server in local network.
 
Old 12-03-2004, 01:52 AM   #2
Wynand1
Member
 
Registered: Mar 2004
Posts: 121

Original Poster
Rep: Reputation: 15
Is there a way to disable spam control and to allow all relaying??
 
Old 12-03-2004, 07:24 AM   #3
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
Some thoughts on your post:

1) You don't say what you are using for spam control so I don't know your specifics. I doubt if that is what is not causing you to be able to relay though. You can try turning spamassassin off from the command line to give it a try: "service spamassassin stop". Then see.

2) As far as things to look for in Sendmail. If everything is entered correctly in the access database you should be able to relay from external source. Make sure that you have the syntax correct though because it is very picky on it being "just so". Also, make sure that you rebuild the database and then restart sendmail after you are done. Try the man pages or the docs on sendmail website for the exact syntax. I believe that it is " makemap hash /etc/mail access < /etc/mail/access" . That should rebuild the database.

3) Make sure that your firewall isn't keeping you from accessing the server. You will need to have ports 25 and 110 open (if you are using the defaults). I believe that there are some others but make sure those are open.

4) I would assume that you are NATed behind some kind of router? If so, make sure that you are forwarding those ports (25 & 110) to the interior IP address of your server.

5) Don't allow unrestricted relaying to your server. If you do then you will end up on one of the websites that post all the open mail servers that all the spammers are using and most folks (like me) will shut down your mail server having access to their users. You will have to constantly monitor your server to make sure that spammers aren't accessing it from the great beyond. They will use ports all over the place and you will have to make sure that they are closed. So, it becomes a "you against them" thing. It requires diligence, but can be done. I had a spell here about two weeks ago that I found some trying to relay. Every time I shut them off from one way in, about an hour later they would find another until I had it so locked down that my anti-virus software couldn't update itself. Had to back off a little

6) On that point, make sure that you do run a good anti-virus program. I personally use Vexira. It's a commercial product but it does a good job. I haven't had any problems so far (knock on wood). I use a two tiered approach: I run Vexira on my mail server and then Norton System Works on my Windows clients. The two of them seem to work well

Check on these things and then repost if you are still having problems.
 
Old 12-03-2004, 09:50 AM   #4
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Quote:
I've setup sendmail to allow relaying for my local network , but how do I get it to work from external (client on the Internet). I've tried to set it per user , email address but it doesn't seem to work. I'm using webmin.
Look at implementing SMTP AUTH with sendmail for your external clients.
 
  


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
Sendmail Relaying R4z0r Linux - Networking 2 10-03-2004 02:15 PM
relaying in sendmail spikes57 Linux - Networking 6 02-27-2004 10:44 AM
Sendmail relaying SchoolITguy Linux - Networking 0 10-18-2002 06:17 PM
sendmail relaying atin Linux - Software 1 10-01-2002 10:21 AM
Sendmail 8.11 relaying?? magyartoth Linux - General 3 04-29-2002 03:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:40 PM.

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