Skip to contentSkip to conversation

sendmail - dany a user to send email

DISCUSSION Luca Ferrari 3 participants 3 messages Oct 17, 2005

lore
Share & tools
lore
#0 lore raw

Hi,
is there a way in sendmail to deny a user to send email, allowing she to receive emails?

Thanks,
Luca

Signature · 2 lines
Luca Ferrari
[email protected]
#1 lore raw

Luca,

Have a look at http://www.sendmail.org/m4/anti_spam.html#access_db

If the user has a static IP address you could just REJECT it in the access db.

You could also use SMTP AUTH and not give the user access.

Also you can check the comp.mail.sendmail newsgroup. A quick search produced some very similar
questions: http://groups.google.com/group/comp.mail.sendmail/search?group=comp.mail.sendmail&q=deny+local+user+sending+mail&qt_g=1&searchnow=Search+this+group.
Pay particular notice to Claus Aßmann's replies.

Regards
Carl

Quoted 13 lines · you

Hi,
is there a way in sendmail to deny a user to send email, allowing she to receive emails?

Thanks,
Luca
--
Luca Ferrari
[email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to Luca Ferrari

Hi,

The easiest way I can think of to do this is to add a line in
your access file (usually /etc/mail/access) like:

From:[email protected] REJECT

but, depending on how you authenticate users, it can be bypassed quite easily. If you do try that method, don't forget to rebuild the access db (makemap hash /etc/mail/access < /etc/mail/access).

Cheers

Adam

Quoted 5 lines · Luca Ferrari

Hi,
is there a way in sendmail to deny a user to send email, allowing she to receive emails?

Thanks,
Luca