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 11-02-2002, 09:22 PM   #1
learning_slowly
LQ Newbie
 
Registered: Nov 2002
Posts: 1

Rep: Reputation: 0
Question Enabling valid users to relay thru SMTP


I have a question, but first the background.
1] I am running RedHat 7.3.
2] I have a mail server running at my site, and have IMAP running as well. They both work.
3] I have sendmail configured so that relaying is denied by default, along with a bunch of other security directives from your standard linux security manuals.
4] I have some users created without home directories, without login shells, and belonging to group mail.
5] Going to a Windows box, I can create a user in MS Outlook or Netscape Messenger that can correctly log in and receive mail (via IMAP).
6] The same user can send mail OK to another user on the mail server host.
7] However, when attempting to send email to a user outside the mail server host, I get the message "Relaying denied".

Okay, that's the background. Now, I know if I add the IP address of the Windows box the user is using in the access file (e.g. xxx.xxx.xxx.xxx RELAY) and do the makemap hash on the access file.....well, THEN YES the user can send to the big wide world.

But I don't want to do that. For a variety of reasons, including the fact that the users don't always access mail from the same hosts. So, what I want to know is this:

With the standard RedHat 7.3 distribution, is there a way I can specify a user, say: user1@mysite.com in some sendmail file, do a makemap and voila - suddenly they can RELAY? Because I am not comfortable with the idea of doing source code changes to sendmail and trying to recompile - I just install the RPMS. I am confortable with configuring but not hacking.

I don't want to open my site to spammers, which is why I have relaying disabled in general. I just want to be able to specify users, such that they can come in and access their mail via IMAP, and then send mail via SMPT, with some way of SMPT recognizing them (they have logged into IMAP, after all), without having to recompile sendmail.

This should be an obvious problem that has occurred way many times before - so hopefully there is a simple solution.

BTW - I have tried adding user@mysite.com RELAY to the access file, doing makemap hash etc and then recycling sendmail - doesn't work. Seems like SMPT wants the IP address of their current host.

So - any ideas? SOMEBODY (lots of somebodies) must have had this problem before!
 
Old 11-04-2002, 04:07 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Sure can,

In the access file add the user's address as
From:user@domain.foo

Regards,
Peter
 
  


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
SMTP "open relay" and SMTP AUTH aikempshall Linux - Security 3 10-11-2006 08:19 AM
SMTP: Relay Denied nemesisza Linux - Software 2 03-14-2004 10:54 AM
Smtp Relay john8675309 Linux - Networking 2 02-12-2004 12:14 AM
SMTP Relay Spamfilter troopern Linux - Networking 2 07-28-2003 01:03 AM
SMTP relay problem chuck77 Linux - General 0 06-30-2003 02:09 AM

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

All times are GMT -5. The time now is 01:56 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