Weblog entry #1 for fher98
I have my main courier mta server working perfectly, now we want to filter outgoing smtp mails from our intranet to the internet. Ive heard that exim4 can do this, yesterday I spent the whole afternoon trying to get exim4 to work as my mail gateway; that is to filter mails from internal account only, and to pass the approved ones to the main MTA.
Can any one help me out, Ive read lots of documentation on the web but cant seem to find something that works with lenny. Thanks
Comments on this Entry
I usually stick with postfix due to its simplicity.
[ Parent | Reply to this comment ]
I need to deny some accounts from reaching the internet, lets say user@domain.com can only email users within the same domain, while user00@domain.com can mail each other in the same domain and can go and send email to any other domain en the internet like yahoo.
So I was thinking of setting up a server in the middle, right between my clients and de MTA, with some kind of filter in the smtp that knows which account can only send domain.com and who can send to the outside.
Im not really looking for spam AV filter,.. but some other kind that can be configured to deny access to some accounts via smtp.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
Basically you have to create an ACL that says :
If user is one of these, and target domain is not one of the domains that I am responsible for, then reject the email.
The exim docs explain this quite well.
I usually set these things up as virtual users held in MySQL and give them flags specifying whether they can send (and separately whether they can receive) external email.
For those that are wondering why on earth you would want this: it works great in offices with temps or where the owner/manager can be a little bit dictatorial.
Have fun.
[ Parent | Reply to this comment ]
I see,.. thanks Ill look into it,.. I know exims documentation is quite extensive.
[ Parent | Reply to this comment ]
(I sometimes forget all the assumptions that I make: sorry!)
[ Parent | Reply to this comment ]