Operating System - HP-UX
1756509 Members
2384 Online
108848 Solutions
New Discussion

Re: sendmail: make some users local only

 
SOLVED
Go to solution
Fred Martin_1
Valued Contributor

Re: sendmail: make some users local only

Well I'm not sure what to make of this. I've been testing this all weekend.

Referring to the link provided by Court:

http://www.sendmail.org/~ca/email/restrict.html

I placed the rules directly below the line:

SLocal_check_rcpt

In my sendmail.cf file, it looked like this before inserting the rules:

SLocal_check_rcpt
Scheck_rcpt
...etc...

So I placed them right between the two 'S' lines, above.

I created the file 'intern.only' and put the required 'F' line in the .cf file. In -bt mode, I tested that, it properly reads and displays the contents of the file.

I've learned quite a bit about rule writing, the operators, and LHS/RHS by reading in the O'Reilly Sendmail book, and by reading tutorials online.

It appears that this should work, yet it seems to be completely ignored.

Any advise?
fmartin@applicatorssales.com
Fred Martin_1
Valued Contributor

Re: sendmail: make some users local only

I began to suspect that this rule is not being called at all. So I wrote this:

SLocal_check_rcpt
R$* $#error $@ 5.1.8 $: "Error"

Then using -bt I tried it:

> Local_check_rcpt xfm
> Local_check_rcpt xfm
Local_check_rcpt input: xfm
Local_check_rcpt returns: $# error $@ 5 . 1 . 8 $: "error"

So that's good. Then I did this:

$ echo hey | sendmail xfm

The mail was delivered, no errors, no bounce.

Can I assume that Local_check_rcpt is not being called at all?
fmartin@applicatorssales.com