|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hello: I would like to configure sendmail such that it rejects emails
if the recipient's address was anything but for few domains. I need to enable relaying so that internal clients can use that server to send emails, but I do not want to send those emails if there were for the outside domains. I started reading check_rcpt but wasn't sure if that was the right. Any pointers are much appreciated. Thanks sd |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On Oct 25, 1:49 pm, "danths" wrote: > Hello: I would like to configure sendmail such that it rejects emails > if the recipient's address was anything but for few domains. I need to > enable relaying so that internal clients can use that server to send > emails, but I do not want to send those emails if there were for the > outside domains. I started reading check_rcpt but wasn't sure if that > was the right. Any pointers are much appreciated. The easier way is by using access db, which has to be enabled as a feature (it it's not already enabled). The best description on how to use access db is in the README file under directory cf in the source, in the section entitled "Anti spam configuration control". I haven't tried what you want to do but (if the example in the documentation is valid notation -- I've never used the TLD) something like this may do the job: To:my.domain RELAY To:TLD REJECT It would be even better if instead of the REJECT you define an error message so that your users know why they can't send messages to the outside, something like: To:TLD ERROR:"550 Outbound mail not allowed." HTH -- René Berber |
|
![]() |
| Outils de la discussion | |
|
|