The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Sendmail Question KenLynch SUN Solaris 1 01-17-2007 05:41 AM
Sendmail Question KenLynch SUN Solaris 2 01-16-2007 05:07 AM
Sendmail question GLJ@USC UNIX for Dummies Questions & Answers 4 09-28-2006 05:13 AM
Sendmail question Jake513 UNIX for Dummies Questions & Answers 2 02-13-2006 07:03 AM
Sendmail question Dan Savarino UNIX for Dummies Questions & Answers 2 04-19-2002 08:08 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-29-2002
Registered User
 

Join Date: Aug 2002
Posts: 1
Sendmail question

How would I configure sendmail so that the INTERN group can only send email locally to xyz.com, while the EXTERN group can send email anywhere.

Thanks for your help!
__________________
Malbeuf
Forum Sponsor
  #2  
Old 08-30-2002
Kelam_Magnus's Avatar
Registered User
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
use a filter via a script

You don't have to do anything for the EXTERN group. Just create the alias in the /etc/aliases file.

___________________________________
For the INTERN group, I would use a script as a filter.

Direct all mail from this alias INTERN into the script. Then if the email address meets your criteria for the xyz.com then allow the email to go. Otherwise, redirect the email back to the sender or send them a standard denial email.


In /etc/aliases, where testscript is your script that checks for the email address. You may have to put the script put in a certain directory for this to work. On my systems it is in /usr/local/bin as a default for sendmail scripts.

Yours may be different.


#vi /etc/aliases
...
...
#Local Aliases

INTERN: "|testscript"


Hope this helps.
My brain is your brain...

__________________
My brain is your brain
  #3  
Old 08-30-2002
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Kelam,

Isn't the aliases file for incoming, not outgoing email? Won't Sendmail see the domain name on the receipent (such as @yahoo.com) and send the mail out, never looking at the aliases file or who is sending the mail?
  #4  
Old 08-30-2002
Kelam_Magnus's Avatar
Registered User
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
I never thought about it??? I assumed that you can have it read for outgoing mail as well.

I had only used it for incoming mail filtering, and just assumed that it would work for outgoing as well.

hehehe my bad...!

I know you can restrict ALL mail from a user to only local, but I guess I don't know how to limit them to one address???




EDIT: here is something that is for sendmail.cf...

I did find a google search for something that looks promising. The first is one page. The second is the google search results.

http://www.rosat.mpe-garching.mpg.de.../msg00051.html

http://www.google.com/search?hl=en&i...+outgoing+mail
__________________
My brain is your brain

Last edited by Kelam_Magnus; 08-30-2002 at 10:53 AM.
  #5  
Old 09-05-2002
Registered User
 

Join Date: Sep 2002
Location: Ukraine
Posts: 6
Exclamation try procmail scripts

You can use procmail config file for run external script. This script can do anything.
Procmail check all mail (outgoing and incoming).
I think this help you.

__________________
--
Def, programmer of AlarIT

[url=http://www.alarit.com]AlarIT[/url]
  #6  
Old 09-05-2002
Registered User
 

Join Date: Sep 2002
Location: Ukraine
Posts: 6
Exclamation try procmail scripts

You can use procmail config file for run external script. This script can do anything.
Procmail check all mail (outgoing and incoming).
I think this help you.

AlarIT
__________________
--
Def, programmer of AlarIT

[url=http://www.alarit.com]AlarIT[/url]
Google The UNIX and Linux Forums
Closed Thread

Tags
sendmail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 02:52 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0