Simple Recipient Verification - once and for all



Hi all,

I know this topic has been dealt with alot on this list, and I know of
various solutions that have been put forward, but what I want to know
is the simplest way to perform recipient verification in sendmail, with
the following requirements:

1. No local mail - the server acts only as a relay for a number of
domains (ie/ test.com & example.com).

2. A textfile list of valid recipient addresses for both domains is
available for use in the appropriate sendmail file (ie/ access,
virtusertable, whatever).

3. The server must reject any RCPT TO address that is not in the
available list of valid recipient addresses, and relay any addresses
that are in the list to the appropriate downstream server (assume this
mapping is also known ahead of time ie/ test.com forwards to one
server, example.com to another).

Given these requirements, I'm wondering what the simplest solution is
to acheive this (essentially it's the same as using the
relay_recipients list in Postfix). I've seen the following solutions
suggested in the past, but none of them seem as staightforward as they
should be:

1. The relay-domains file: This is obviously not granular enough since
anything in the domain gets accepted and relayed.

2. Using the access list: This would be fine, but I can't get it to
work. Apparently the following entry should work:

To:scottc@xxxxxxxx RELAY

but for some reason it doesn't - I still get the following message when
testing:

rcpt to: scottc@xxxxxxxx
550 5.7.1 scottc@xxxxxxxxxxx Relaying denied

with the following log entry:

Jan 29 18:59:28 vm1 sendmail[29415]: k0U2xDb5029415:
ruleset=check_rcpt, arg1=scottc@xxxxxxxx, relay=192.168.99.19,
reject=550 5.7.1 scottc@xxxxxxxxxxx Relaying denied

though I've got the address in the access file as shown and an entry in
the mailertable that specifies where to forward mail from test.com. If
this worked, I would assume that would be the easiest way to acheive
what I'd like to do.

3. Using virtusertable + aliases: This works, but it feels like a hack
to me, since for a typical address that you'd just like to accept and
relay, you need to create some dummy intermediate value to link the
virtusertable entry to the aliases entry (or at least that's how I've
gotten it to work).

4. Using LDAP routing: I'm not using an LDAP server, so this seems
counterintuitive as well - I just want to have a list of valid users
for a specific domain!

There may be others that I've missed, but that's probably why I'm
sending this message. I'm just surprised that I haven't been able to
track down a very simple and straightforward way to do this with one or
two entries in the sendmail.mc and a textfile full of valid addresses.

Thanks,

.



Relevant Pages

  • Re: Simple Recipient Verification - once and for all
    ... A textfile list of valid recipient addresses for both domains is ... The server must reject any RCPT TO address that is not in the ... available list of valid recipient addresses, and relay any addresses ... Apparently the following entry should work: ...
    (comp.mail.sendmail)
  • Re: Lsasrv Event ID 40960
    ... I have checked with Nslookup both my forward and recursive zones and get the correct answer every time... ... The Security System detected an authentication error for the server ... The thing is on my other windows 2003 member servers I don't get this ... Usually creating a reverse zone for your subnetand insuring all DCs have a PTR entry to eliminate this error. ...
    (microsoft.public.win2000.active_directory)
  • Re: Problem with mail queue
    ... If these servers scan mail and pass onto another mail server that actually ... milter-ahead is only one possible solution of many. ... published FAQ entry, here is my oft posted list. ... valid user and a catchall entry that @domain.com error:nouser ...
    (comp.mail.sendmail)
  • RE: IIS 6.0 - "Service Unavailable" - ISAPI filters do not load
    ... Finally I found in the Event Log for applications an entry telling me the ... exact path of the filter that did not load. ... Now the metabase has some similarities to the Windows Registry, ... Server 2003 SP2 server. ...
    (microsoft.public.inetserver.misc)
  • Re: error 1316
    ... im not running a server. ... >> to get rid of the few files i found for microsoft office. ... > uninstall entry in the program folder. ... For one thing turn off automatic updates, ...
    (microsoft.public.windowsxp.general)