X-Git-Url: http://git.megabrutal.com/?p=mgsmtp.git;a=blobdiff_plain;f=mgsmtp_server_example.ini;h=f414a68b5794a2bdac4e45425cf945d9ee89a1ac;hp=bee29de4cf6f81cb32b2e0ee48cbcf1c6b293af8;hb=HEAD;hpb=4806fe76baf12d97f1afe2f9b29ea384d37aa839 diff --git a/mgsmtp_server_example.ini b/mgsmtp_server_example.ini index bee29de..f414a68 100644 --- a/mgsmtp_server_example.ini +++ b/mgsmtp_server_example.ini @@ -1,5 +1,5 @@ ; MegaBrutal's SMTP Server (MgSMTP) -; Copyright (C) 2010-2011 MegaBrutal +; Copyright (C) 2010-2015 MegaBrutal ; This is an example configuration file for MgSMTP. ; You may inspect it to learn about the configuration options of MgSMTP, and (if @@ -457,6 +457,36 @@ KeepProcessedEMails = Off Quota = 67108864 +; Enable plus aliases: allow an alias to be expanded to the mailbox name with a "+" sign. +; E.g.: and will automatically +; address the same mailbox without having to list them on an "Alias" list or anything. +; You can safely make up as many +alias addresses as you want without having to change +; the mail server config. +; FYI: GMail also supports this, e.g. if you send e-mail to , +; you will receive it into your mailbox at . +; If "PlusAliases" is turned off, "+" characters in mailbox addresses will not be treated +; specially in any way. + +PlusAliases = On + + +; You have the opportunity to disable some plus aliases - e-mails destinated to such +; aliases will be rejected. +; In this example, e-mails to and +; will be rejected, while other plus aliases like will continue +; to work. This is useful when you start to get unsolicited e-mails to one of your +; plus-aliased e-mail addresses, and you want to put an end on it: the best part is that +; it won't affect other aliases for your mailbox. +; "PlusAliasExcept" is the global, mail-server-wide setting, which will be default for +; all mailboxes those don't have this directive, but will be completely overridden if +; set for an individual mailbox. +; "GlobalPlusAliasExcept" will be added to the "PlusAliasExcept" list of all individual +; mailboxes. + +;PlusAliasExcept = spam,viagranews +;GlobalPlusAliasExcept = + + ; Below you can enable "domain-specific mailboxes", which allows you to set up a limited ; form of virtual hosting. Assume your mail server is receiving e-mails for ; yourdomain.com and otherdomain.com. Both of these domains are supplied at @@ -627,8 +657,29 @@ StoreLocalCopy = On ; (You can still have "StoreLocalCopy" off, if you don't want your message to be ; actually delivered to the mailbox.) +; Reply addresses and simple distribution lists: +; As the following example shows, with the combination of "ForwardTo" and "ReplyTo", +; it is possible to create simple, static distribution lists, where replies are +; addressed back to the distribution list by default. +; The value of "ReplyTo" will be inserted as a "Reply-To" header to the e-mails being +; forwarded. Note, it will only affect forwarded e-mails: the local copy won't have +; the "Reply-To" header. +; There is a special value for "ReplyTo": "!". When used, it will be substituted with +; the appropriate mailbox address (in this example, it is "party@example.com"). + +;[Mailbox\party] +;ForwardTo = benga@example.com,hugo@example.com,kitty@example.com +;ReplyTo = Party Unit +; Or: +;ReplyTo = ! + ; Domain-specific mailboxes: +;[Mailbox\@mydomain.tld] +;Quota = 0 +;ForwardTo = littlekittens@yourdomain.tld +;GlobalPlusAliasExcept = dogs + ;[Mailbox\info@otherdomain.com] ;Alias = contact,information @@ -647,6 +698,11 @@ StoreLocalCopy = On ; domains (i.e. you want to add "monkey@xxdomain.com" as an alias for ; "donkey@yydomain.com"), the normal "Alias" key won't work! In this case, you need to ; use "RewriteTo" or "ForwardTo". +; - Most mailbox-specific settings can be set under [Mailbox\@mydomain.tld] sections, +; which makes them the default for the domain-specific mailboxes belong to the given +; domain. This won't have an effect on mailboxes those are not domain-specific (i.e. +; their mailbox file name doesn't have a "@" sign), even if they are addressed by +; an alias domain. ; The "Relay" section defines the server's relay rules.