Hi.

Wouldnt it be better to use the virtual user table?
There are two ways of doing this:


1:

  @somedomain.com.au [EMAIL PROTECTED]

  you end up with the same problem again where the RECEIVING (final) mailserver 
needs to bounc the stuff thats not there
  but its easy for admin purposes.



2:

  [EMAIL PROTECTED] [EMAIL PROTECTED]
  [EMAIL PROTECTED] [EMAIL PROTECTED]
  ...

  Here the RELAY bounces as it knows that only those users exist!!




for BOTH cases you need to place into that access file

  somedomain.com.au RELAY

and into the sendmail.mc file

  FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl




Jobst





On Thu, Feb 14, 2008 at 10:51:13AM +1100, Nigel Allen ([EMAIL PROTECTED]) wrote:
> 
> On 14/02/2008 10:17 AM, Craig Dibble wrote:
> >Quoting Nigel Allen <[EMAIL PROTECTED]>:
> >
> >>I want to change the /etc/mail/access from a simple "RELAY" to 
> >>something that will check for valid addresses for that domain and 
> >>reject any BS ones.
> >
> >>Can anyone point me in the right direction please?
> >>
> >>sendmail 8-14-1 on FC6.
> >
> >I might be missing something, but IIRC you can just list the actual 
> >[EMAIL PROTECTED] in the access file and filter for allowed users that way.
> >
> >Please feel free to ignore me if I'm talking rubbish, it's been quite 
> >a few years since I was that intimate with Sendmail.
> >
> Not rubbish at all - I'm afraid it's just not quite that simple.
> 
> Here's what we were using - masked for privacy:
> 
> abc.com RELAY
> abc.com.au RELAY
> abc.net RELAY
> xyz.com.au RELAY
> 
> [EMAIL PROTECTED]   RELAY
> [EMAIL PROTECTED]   RELAY
> [EMAIL PROTECTED]    RELAY
> [EMAIL PROTECTED]     RELAY
> [EMAIL PROTECTED]     RELAY
> [EMAIL PROTECTED]     RELAY
> [EMAIL PROTECTED]       RELAY
> 
> To:aaa.com.au          "550 User unknown"
> 
> This resulted in everything for aaa.com.au being bounced "We do not relay".
> 
> I'm going to try a few different solutions after hours - naturally I 
> want to limit the disturbance of testing during working hours.
> 
> Nigel.
> 
> 
> 
> 
> -- 
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

-- 
Dont blink or you miss it!

  | |0| |   Jobst Schmalenbach, [EMAIL PROTECTED], General Manager
  | | |0|   Barrett Consulting Group P/L & The Meditation Room P/L
  |0|0|0|   +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to