[PLUG] sendmail virtusertable wildcard question
Sandy Herring
sandy at herring.org
Sun Sep 11 16:01:40 UTC 2005
I'm getting ready to handle my own MX. On my server I'm running sendmail
8.13.1. I need to be able to receive mail to sandy_<foo>@herring.org for
any value for <foo> (e.g. sandy_foo at herring.org, sandy_bar at herring.org,
etc. should be "Sender ok") and have it delivered to user `sandy'. But I
don't want to allow dictionary attacks (e.g. red at herring.org should be
"User unknown"). I've got over 100 addresses of the form sandy_<foo> for
which receipt needs to happen. Any time I've had to supply an address to
a web vendor, I've used sandy_vendorDomain at herring.org so that I can
track address misuse.
Even an explicit virtusertable entry such as...
sandy_test at herring.org sandy
...isn't working. The separator above /is/ a <tab>. And I did do...
makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
...after creating the entry. Here's the dialog...
[bigfish at onyx|~] $ telnet herring.org 25
Trying 216.99.203.246...
Connected to herring.org.
Escape character is '^]'.
220 pickled.herring ESMTP Sendmail 8.13.1/8.13.1; Sun, 11 Sep 2005 07:31:13 -0700
helo aracnet.com
250 pickled.herring Hello onyx.spiritone.com [216.99.193.114], pleased to meet you
mail from: bigfish at aracnet.com
250 2.1.0 bigfish at aracnet.com... Sender ok
rcpt to: sandy_test
550 5.1.1 sandy_test... User unknown
rcpt to: sandy
250 2.1.5 sandy... Recipient ok
Ideally, I'd like to have working...
sandy_+ at herring.org sandy
...which I did try. After that failed, I reasoned I should see if even a
simple case would work. Here's the relevant bits from my sendmail.mc...
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
FEATURE(`preserve_local_plus_detail')
I'm obviously not understanding how to use virtusertable, much less
wildcards - any /sendmail/ help would be appreciated.
Sandy
--
Sandy Herring, RHCE o sandy at herring.org
Peck of Pickled Pisces __ o http://herring.org/
*nix || Web authoring questions? |\/ o\ o http://herring.org/finger.html
->http://herring.org/techie.html |/\__/ http://herring.org/pub-key.asc
More information about the PLUG
mailing list