[Ilugc] Configuring Sendmail
- From: mohan.tux@xxxxxxxxx (Mohan Sundaram)
- Date: Wed Sep 13 11:37:04 2006
Vinayak Mahadevan wrote:
Dear Luggies
I would like to know as to how to configure sendmail so as to prevent
certain email ids from sending mails to other addresses which are not there
in my domain.
Regards
By default, sendmail will accept mails from/to the domains it is
configured for. You can use the access database to specify which email
IDs from/to are allowed to relay - use the /etc/mail/access file.
Assuming sendmail 8.12 upwards.
I've not used it to specify combinations of From/To addresses. I know
the LHS tags can be used but am not sure if you can use two LHS tags per
line for action. Since it is a hash table, I doubt it.
I'd do this by using the SMTP auth mechanism. Create a separate
uid/password auth mechanism in PAM for SMTP and put in only those users
for whom you want to allow external relaying. Use the access db to allow
only To:<your domain>.
Mohan
Other related posts: