?
Solved

sendmail: stickyhost; @host.domain.com

Posted on 1997-11-28
3
Medium Priority
?
519 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Author Comment

by:dirge
ID: 2008113
Edited text of question
0
 
LVL 1

Accepted Solution

by:
dhughes111797 earned 150 total points
ID: 2008114
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
ID: 2008115
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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:
Suggested Courses
Course of the Month9 days, 22 hours left to enroll

762 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