![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#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
|
||||
|
||||
|
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
|
||||
|
||||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
You can use procmail config file for run external script. This script can do anything.
Procmail check all mail (outgoing and incoming). ![]()
__________________
-- Def, programmer of AlarIT [url=http://www.alarit.com]AlarIT[/url] |
|
#6
|
|||
|
|||
|
You can use procmail config file for run external script. This script can do anything.
Procmail check all mail (outgoing and incoming). AlarIT
__________________
-- Def, programmer of AlarIT [url=http://www.alarit.com]AlarIT[/url] |
|||
| Google The UNIX and Linux Forums |