int sel;
keyopt(" <1> localhost (Alias for this computer)\n");
- keyopt(" <2> smart-host (Forward all outbound mail to this host)\n");
- keyopt(" <3> directory (Consult the Global Address Book)\n");
- keyopt(" <4> SpamAssassin (Address of SpamAssassin server)\n");
- keyopt(" <5> RBL (domain suffix of spam hunting RBL)\n");
- keyopt(" <6> masq domains (Domains as which users are allowed to masquerade)\n");
- keyopt(" <7> ClamAV (Address of ClamAV clamd server)\n");
+ keyopt(" <2> smart host (Forward all outbound mail to this host)\n");
+ keyopt(" <3> fallback host (Send mail to this host only if direct delivery fails)\n");
+ keyopt(" <4> directory (Consult the Global Address Book)\n");
+ keyopt(" <5> SpamAssassin (Address of SpamAssassin server)\n");
+ keyopt(" <6> RBL (domain suffix of spam hunting RBL)\n");
+ keyopt(" <7> masq domains (Domains as which users are allowed to masquerade)\n");
+ keyopt(" <8> ClamAV (Address of ClamAV clamd server)\n");
sel = intprompt("Which one", 1, 1, 7);
switch(sel) {
case 1: strcpy(buf, "localhost");
return;
case 2: strcpy(buf, "smarthost");
return;
- case 3: strcpy(buf, "directory");
+ case 3: strcpy(buf, "fallbackhost");
return;
- case 4: strcpy(buf, "spamassassin");
+ case 4: strcpy(buf, "directory");
return;
- case 5: strcpy(buf, "rbl");
+ case 5: strcpy(buf, "spamassassin");
return;
- case 6: strcpy(buf, "masqdomain");
+ case 6: strcpy(buf, "rbl");
return;
- case 7: strcpy(buf, "clamav");
+ case 7: strcpy(buf, "masqdomain");
+ return;
+ case 8: strcpy(buf, "clamav");
return;
}
}
--- /dev/null
+<span class="menudesc">
+<?_("(send outbound mail to these hosts only when direct delivery fails)")>
+</span><br />
+<table border=0 cellspacing="2" cellpadding="2" width=94% class="altern" >
+<?ITERATE("SERVCFG:INET", "section_aide_inetconf_entry", 0, 0, -1, "fallbackhost")>
+<form method="post" action="save_inetconf">
+<input type="hidden" name="nonce" value='<?NONCE>'>
+<tr><td>
+<input type="text" name="ename" maxlength="64">
+<input type="hidden" name="etype" VALUE="fallbackhost">
+</td><td align=left>
+<input type="submit" name="oper" value="Add">
+<input type="hidden" name="template" value="aide_inetconf">
+</td></tr></table></form>
</div>
<div id="content" class="service">
<div class="fix_scrollbar_bug">
-<table border=0 width=100% cellspacing="10" cellpadding="10"> <tr><td valign=top width=50%>
+<table border=0 width=100% cellspacing="10" cellpadding="10"> <tr><td valign=top width="50%">
<?DOBOXED("aide_inet_aliases", _("Local host aliases"))><br />
<?DOBOXED("aide_inet_dirnames", _("Directory domains"))><br />
-<?DOBOXED("aide_inet_smarthosts", _("Smart hosts"))>
+<?DOBOXED("aide_inet_smarthosts", _("Smart hosts"))><br />
+<?DOBOXED("aide_inet_fallbackhosts", _("Fallback smart hosts"))><br />
<?DOBOXED("aide_inet_notify", _("Notification hosts"))>
-</td><td valign=top>
+</td><td valign=top width="50%">
<?DOBOXED("aide_inet_rbldns", _("RBL hosts"))><br />