On Thu, 2008-06-05 at 08:39 +0200, Martin Schuster (IFKL IT OS DSM CD) wrote: > Lindsay Haisley wrote: > > [...] > > I would like to be able to severely restrict access to authenticated > > (E)SMTP on the server so that only those few customers who require it > > for specific mailboxes are authorized to use it, and these and only > > these SMTP logins will be accepted. The abused email account here was > > _not_ one which is needs it or uses it. Does courieresmtp provide any > > mechanism to do this? > > > You should be able to do this at the authentication-level. e.g. if your > are using authmysql, you could add another column to your use-table, > "is_allowed_esmtp", and then write a custom MYSQL_SELECT_CLAUSE with > sth. like > AND (is_allowed_esmtp = 'yes' OR $service != 'smtp') > at the end. > > (haven't looked at my own setup or at the docs for this one, might not > work in exactly this way, but I guess you get the idea)
The file comments for authmysqlrc say: # $(service) will expand out to the service being authenticated: imap, imaps, # pop3 or pop3s. Courier mail server only: service will also expand out to # "courier", when searching for local mail account's location. In this case, # if the "maildir" field is not empty it will be used in place of # DEFAULTDELIVERY. Courier mail server will also use esmtp when doing # authenticated ESMTP. This isn't entirely clear. Does the last sentence imply that $(service) will expand out to "esmtp" when attempting to authorize authenticated ESMTP? -- Lindsay Haisley | "In an open world, | PGP public key FMP Computer Services | who needs Windows | available at 512-259-1190 | or Gates" | http://pubkeys.fmp.com http://www.fmp.com | | ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
