[wplug] ? Limiting SMTP

Duncan Hutty dhutty+wplug at ece.cmu.edu
Mon Mar 27 09:07:52 EST 2006


Sawders, Daryl wrote:
> Is there a way to set up an SMTP relay machine and have it only accept mail from certain "clients" and restrict the destination of mail routed through this relay to a particular domain?
> 
> If I can do this I'll be mitigating a security risk to folks that should be "trusted" with routing mail via this pathway and also lessen the impact of a potential mail worm.
> 
> Thanks in advance,
> 
>    - Daryl -
> 

Tell us which MTA you use. Others have talked about sendmail, if you use 
postfix like I do, then this can be done several ways. One of which 
might be to add the addresses of your permitted clients to mynetworks in 
main.cf, another possibility would be to use certs and add to 
relay_clientcerts; you should also look at relay_domains.

This is a good place for more info:
http://www.postfix.org/SMTPD_ACCESS_README.html

-- 
Duncan Hutty
System Administrator, ECE
Carnegie Mellon University

Please use informative subject lines


More information about the wplug mailing list