Solved

sendmail: stickyhost; @host.domain.com

Posted on 1997-11-28
3
497 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
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

792 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