Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-18-2004, 03:36 PM   #1
LQ Newbie
Registered: Apr 2004
Location: Austria
Distribution: SuSE
Posts: 2

Rep: Reputation: 0
Question sendmail - group-based send/receive-handling

I run sendmail 8.12.3 on SuSE Linux.
My task is to have sendmail distinguish between two user groups:

“Standard” group:
Standard users; sendmail accepts inbound mail from any sender host
and delivers outbound mail directly via DNS.

“Protected” group:
Users protected by mail filtering services running on external mail servers.
Sendmail accepts inbound mail from 2 defined sender hosts only
and forwards all outbound mail to an external mail relay.

Sendmail must check every mail (inbound and outbound) based
either on the local Linux user involved or on the full email address ( and act according to the group membership.
The following pseudo-code illustrates this check.

a) inbound mail:
if getGroup(userID) == ‘protected’ then {
if hostAccepted(senderHost) == true then processMail()
else rejectMail() }
else processMail();

b) outbound mail:
if getGroup(userID) == ‘protected’ then forwardMailToExternalRelay()
else deliverMailDirectly();

Please note that sendmail runs on a leased server hosted and maintained by our ISP.
Therefore I have only restricted control over sendmail (configuration, modifications, etc.).

What is the easiest and least “invasive” way to implement this in sendmail?

Many thanks, regards



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 can send not receive abettertomorrow Slackware 6 01-22-2005 01:54 PM
Sendmail: Can receive but can't send. Hendon Linux - Networking 3 12-30-2004 09:41 AM
sendmail - group-based mail-handling nuxv Linux - Software 0 04-19-2004 09:32 AM
Problems with sendmail - can receive but not send vittibaby Linux - Software 9 08-23-2003 12:38 AM
Sendmail allows receive but not send rob19 Linux - Software 8 06-17-2003 11:02 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration