- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unix expression question
Operating System - HP-UX
1753788
Members
7393
Online
108799
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО04-04-2003 06:48 AM
тАО04-04-2003 06:48 AM
Unix expression question
I want to block certain email addresses in the sendmail access file.
The address I want to block is
offer12345@excite.com
The 12345 changes so I would like to enter the email address in that file in the format of block everything that starts with offer, has any number in the middle, and ends with @excite.com
I am not sure the format to enter that in. Can anyone help?
Thanks in advance.
The address I want to block is
offer12345@excite.com
The 12345 changes so I would like to enter the email address in that file in the format of block everything that starts with offer, has any number in the middle, and ends with @excite.com
I am not sure the format to enter that in. Can anyone help?
Thanks in advance.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2003 07:38 AM
тАО04-04-2003 07:38 AM
Re: Unix expression question
Hi Kathleen
I'm not sure it's as simple as using an expression to allow the shell to match all patterns
ie
'[0-9a-b]?@excite.com'
Have a look through this document.
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000064128788
HTH
Steve
I'm not sure it's as simple as using an expression to allow the shell to match all patterns
ie
'[0-9a-b]?@excite.com'
Have a look through this document.
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000064128788
HTH
Steve
take your time and think things through
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2003 08:45 AM
тАО04-04-2003 08:45 AM
Re: Unix expression question
Here's a better way, add the following to sendmail.cf:
SIsexcite$
R$* excite.com $*^I$@ OK$
R$* ^I$#error $: "550 Access Denied. Forgeries are disallowed."$
$
SLocal_check_mail$
R$* excite.com $*^I$: $>Isexcite $&{client_name}$
NOTE: the ^I is a tab, $ is return
What this does is prevent someone from using a excite.com address and sending email from their server - it only allows email from excite's server....you can do this for hotmail,,,etc.
Rgds...Geoff
SIsexcite$
R$* excite.com $*^I$@ OK$
R$* ^I$#error $: "550 Access Denied. Forgeries are disallowed."$
$
SLocal_check_mail$
R$* excite.com $*^I$: $>Isexcite $&{client_name}$
NOTE: the ^I is a tab, $ is return
What this does is prevent someone from using a excite.com address and sending email from their server - it only allows email from excite's server....you can do this for hotmail,,,etc.
Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2003 09:51 AM
тАО04-04-2003 09:51 AM
Re: Unix expression question
except that some of the $ are $!
Only the $ at the end of the line is a return - sorry about that.
Only the $ at the end of the line is a return - sorry about that.
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP