OT: Reject non local users with sendmail, help
Glenn Steen
glenn.steen at gmail.com
Fri Oct 20 09:28:57 IST 2006
On 20/10/06, Res <res at ausics.net> wrote:
> Hi,
>
> On Fri, 20 Oct 2006, Derek Catanzaro wrote:
>
> > Does anyone out there have a working Reject non local users setup using
> > sendmail? I have pulled all the recipient names via LDAP and cannot find
>
> Sendmail does this by default, if its not told to relay for X then it
> wont.
>
> The first lines of your access file should be to relay for YOU and YOUR
> ip's, if that file does not exist it wont matter, it just wont relay.
>
> make sure your local-host-names file is OK.
>
> > If anyone can provide any help on this I would greatly appreciate it. An
> > example of what you did in the /etc/mail/access file or an example of what
>
> An example of one of my boxes is:
>
> localhost.localdomain RELAY
> localhost RELAY
> ausics.net RELAY
> 124.148.3 RELAY
> GreetPause:127.0.0.1 0
> GreetPause:ausics.net 0
> GreetPause:124.148.3 0
>
>
> ...after those lines I have other hosts I relay for and a bucket load of
> rejected domains :)
>
> oh and local-host-names file contains each domain i relay for, one each
> line....
>
> I dont use LDAP but my sendmail.mc file is available offlist if you want
> it.
>
I'm not going to contradict you in any way Res, far from it. For local
addresses, that is very plausible (AFAICS:-).
What Derek has though (if memory serves me) is a need to relay to/from
his M-Sexchange servers (AD, hence LDAP)... I might be remembering
this wrong, but it is something like that.
So the term "local" is very relative:-).
I'm sure someone will know the exact syntax for this, but I think he
needs a generic "don't accept domain foo" and specific "do accept
user at foo"... I don't remember the syntax for that though:-). Sendmail
guru's around should know though:-):-).
--
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se
More information about the MailScanner
mailing list