On Friday 21 November 2003 16:44, Gerardo Gregory wrote: > Been tasked with setting up a virtualdomain that is private for internal > corporate communication. > > Currently I have Courier-MTA, maildrop for local delivery, PAM auth, and > some virtul domains already setup using userdb. > > The domain I am asked to setup needs to only be able to send / receive > mail from within that domain. How do I create this type of restrictions?
Will all the accounts for this domain live on this machine? If so then simply do NOT allow relaying. Don't put any ip addresses into /etc/courier/smtpaccess and don't enable smtpauth. Then courier will reject all mail that is not addressed to a valid user this domain. Anything else will be rejected with a "no relaying allowed" type error. If you need to send some mail for this domain upstream to another server for continued processing then still don't allow replaying, make sure that the domain is a hosteddomain (and not local) and add an '[EMAIL PROTECTED]' account. Then in this account create a dot-courier file that has something like: [EMAIL PROTECTED] This will forward the mail to your upstream server (assuming your upstream server can accept mail in this format). Of course mis-addressed mail at your domain will still be sent upstream but if some of the accounts live elsewhere then you have no way of knowing which are valid and which are not valid accounts. In this case you may need to put the server's ip address into the /etc/courier/smtpaccess file to allow the server itself to relay. I'm not sure whether sendmail would be considered "relaying" when it sends this message out to the upstream_server or not. Jeff Jansen ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
