- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sendmail - controlling OUTGOING mail
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2003 03:37 AM
12-03-2003 03:37 AM
Sendmail - controlling OUTGOING mail
I have a test machine and ONLY want mail address to user@aol.com to make it out of my
system. ANY other mail should be rejected. Can I create a list of good email addresses joe@aol.com, tim@aol.com, etc. and reject ALL other OUTGOING? Do I do this through the access.db?
Thanks,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2003 04:02 AM
12-03-2003 04:02 AM
Re: Sendmail - controlling OUTGOING mail
You should be able to do it with access and the aliases file
aliases
@hostname: user@aol.com
tab delimited as you already know.
Add your lists to aliases
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2003 08:02 PM
12-03-2003 08:02 PM
Re: Sendmail - controlling OUTGOING mail
As almost most of the time, SEP is right.
Although I think you only need access_db. For layout of access_db, check:
on (RH)linux /usr/share/doc/sendmail*/README.cf and search for access_db
on hp-ux /usr/newconfig/etc/mail/cf/README when you've installed a regular patch for sendmail (PHNE_...)
/usr/contrib/sendmail/usr/newconfig/etc/mail/cf/README if you have installed a web upgrade to sendmail 8.11
HTH
Kasper Haitsma
HP support engineer for sendmail, OpenMail OVO/u
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2003 10:43 PM
12-03-2003 10:43 PM
Re: Sendmail - controlling OUTGOING mail
Take a look at option 8 with gen_cf...
This feature enables sendmail to block incoming mail
messages destined for certain recipient usernames,
hostnames, or addresses. This feature also restricts you
from sending mail messages to addresses with an error
message or REJECT value in the Access Database file.
For example, if you have the following entries in the Access
Database file:
badlocaluser 550 Mailbox disabled for this username
host.mydomain.com 550 That host does not accept mail
user@otherhost.mydomain.com 550 Mailbox disabled for this recipient
This would prevent a recipient of badlocaluser@mydomain.com,
any user at host.mydomain.com, and the single address
user@otherhost.mydomain.com from receiving mail.
spammer@aol.com REJECT
cyberspammer.com REJECT
Mail can't be sent to spammer@aol.com or anyone at cyberspammer.com.
Berlene
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 01:21 AM
12-04-2003 01:21 AM
Re: Sendmail - controlling OUTGOING mail
This is so close! But ... I want to restrict EVERY outgoing mail except to one user. So would the sytax in the access file be something like ...
.com REJECT
bill@aol.com RELAY
Thanks,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 01:42 AM
12-04-2003 01:42 AM
Re: Sendmail - controlling OUTGOING mail
bill@aol.com RELAY I don't think this would work...
############################################################
############################################################
#####
##### RULESET 0
#####
############################################################
############################################################
S0
# special cases
#
R@ $#local $:$n handle <> form
R$*<@[$+]>$* $#smtp $@[$2] $:$1<@[$2]>$3 numeric
internet spec
# localize if possible (rip off @DOMAINs for which we are
authoritative)
R$*<@$+>$* $:$>8$1<@$2>$3
#
# Fake hosts in my domain
#
R$+<@IMAP> $#imap $@$j $:$1 username@IMAP
# Real hosts in my domain
#
R$*<@$*$N>$* $#smtpl $@relay.mydomain.com $:$1<@$2$N>$3 our
domain; gw
# Parent domain
#
R$*<@$*$P>$* $#smtp $@relay.mydomain.com $:$1<@$2$P>$3 our
domain; gw
# Nonlocal mail
#
# R$*<@$+>$* $#smtp $@relay.mydomain.com $:$1<@$2>$3 use
gateway
R$*<@$+>$* $#error $: Internet Mail Restricted trash
nonlocal mail
# Local mail
#
R$+ $#local $:$1 must be local
############################################################
############################################################
Berlene