Solved

sendmail: stickyhost; @host.domain.com

Posted on 1997-11-28
3
465 Views
Last Modified: 2012-05-04
Hi. I have my DNS setup so that *.domain.name points to the same IP; am using sendmail 8.8.5 on a BSD/OS 3.0 system.

How do I setup sendmail.cf so that it does not "scrunch" user@host.domain.name to merely user@domain.name? I suppose it's FEATURE(stickyhost) in the .mc file but I can't simply generate a new sendmail.cf using m4 due to virtual server limitations.

Or perhaps, is there some rule that I should comment out or add so that user@host1.domain.name and user@host2.domain.name can point to different addresses (via virtmaps)?

Another way to state this would be, how do I get virtmaps to support @host.domain.name entries? I got it running fine for @domain.name entries.

Looking for rule(s), not m4 macros...

Thanks!
0
Comment
Question by:dirge
  • 2
3 Comments
 
LVL 1

Author Comment

by:dirge
Comment Utility
Edited text of question
0
 
LVL 1

Accepted Solution

by:
dhughes111797 earned 150 total points
Comment Utility
Try this:
look for rules that have something like this in
them:
R$+ @ $+ . $m    or
R$+ < @ $+ . $m >   or
R$+ < @ $* . $m >   or
R$+ < @ $- . $m >
comment them out, then put sendmail in test mode with this new config file and try it out. If it doesn't work, it might help if you post the current sendmail.cf file that you are using.
0
 
LVL 1

Author Comment

by:dirge
Comment Utility
Actually, I found out that it is impossible with my particular setup: the mail relays do the "scrunching", i.e. canonicalization. You get the points for your time though... :)

The possible solutions would be: to assign separate IP addresses to each host so that host.domain.name does not get canonicalized down to domain.name; and to scan the headers for the first/lowermost "Received:... for <user@host.domain.name>" line. Unfortunately, the latter is not a sure thing. Some relays don't add the "for" clause.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now