- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sendmail anti-relaying
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
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
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
тАО11-21-2001 07:37 AM
тАО11-21-2001 07:37 AM
sendmail anti-relaying
If I enter
it passes. Should I be using another ruleset?
Is there another rule that could override the check_rcpt rule? I'm using 8.8.6.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2001 07:46 AM
тАО11-21-2001 07:46 AM
Re: sendmail anti-relaying
It looks like you're missing check_relay/check_mail:
# The rules for supporting anti-spamming are check_mail, check_rcpt #
# and check_relay.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2001 07:51 AM
тАО11-21-2001 07:51 AM
Re: sendmail anti-relaying
Upgrade to 8.9.3 and anti-relaying is automatic. You can then specify in the /etc/mail/relay-domains file which domains you want to relay if any.
Even thought the patch for 8.9.3 has been recalled by HP, I would still use it. The reason it was recalled was that if it had more than 3000 concurrent connections it would fail. I don't know about you but our company is large and we don't get that may at a time.
Good Luck,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2001 07:54 AM
тАО11-21-2001 07:54 AM
Re: sendmail anti-relaying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2001 08:03 AM
тАО11-21-2001 08:03 AM
Re: sendmail anti-relaying
If so, why don't you post a sanitized version of sendmail.cf so we can have a look.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2001 08:24 AM
тАО11-21-2001 08:24 AM
Re: sendmail anti-relaying
Here is what you need to add and this will stop the relay.
Comment everything that you have for Scheck_rcpt and add this:
Scheck_rcpt
# first: get client addr
R$+ $: $(dequote "" $&{client_addr} $) $| $1
R0 $| $* $@ ok no client addr: directly invoked
R$={LocalIP}$* $| $* $@ ok from here
# not local, check rcpt
R$* $| $* $: $>3 $2
# remove local part, maybe repeatedly
R$+ $:$>removelocal $1
# still something left?
R$*<@$+>$* $#error $@ 5.7.1 $: 550 we do not relay
Sremovelocal
# remove RelayTo part (maybe repeatedly)
R$*<@$*$={RelayTo}.>$* $>3 $1 $4
R$*<@$=w.>$* $: $>removelocal $>3 $1 $3
R$*<@$*>$* $@ $1<@$2>$3
# dequote local part
R$- $: $>3 $(dequote $1 $)
R$*<@$*>$* $: $>removelocal $1<@$2>$3
Also you can set up LocalIP and Local names dont forget to restart sendmail.
If you have problems post them. And make sure you back up your sendmail.cf file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2001 08:31 AM - last edited on тАО05-17-2021 08:59 PM by Ramya_Heera
тАО11-21-2001 08:31 AM - last edited on тАО05-17-2021 08:59 PM by Ramya_Heera
Re: sendmail anti-relaying
Ohh ..
I misread your post. DOOH! ..
to test a mail hack from
telnet to your server to port 25.
ip.add.of.server 25
you will get
Trying...
Connected to ip.add.of.server.
Escape character is '^]'.
and then you will have a promt
type
helo mail.com
and you will get a hello back.
Then type
mail from:
you will get
250 ... Sender ok
then type
rcpt to:<"yourname@domain.com"@[ip.of.mail.server]>
you will get
250 >... Recipient ok
type
data
you will get
354 Enter mail, end with "." on a line by itself
then type your message end with a .
test
.
250 PAA24408 Message accepted for delivery
quit
Or you can go to http://www.ordb.org/
but if you fail then you will be denied..We were denied and I aplied that fix retested and passed,
let me know if you get it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2001 10:12 AM
тАО11-21-2001 10:12 AM
Re: sendmail anti-relaying
To test the anti-relaying ruleset on host A, you'll have to
1) be on host B that's not permitted to relay by hosta A
2) send a test e-mail that won't eventually get delivered to host A (i.e. host A would act as a relay).
If you're on host A (a.com), and you gen a message from someone@b.com to someone@c.com where neither b.com or c.com are considered local by host A, you won't trip the relay rulesets, since e-mail generated locally and delivered remotely won't be considered relayed, despite what envelope headers might indicate.