i | n | f | r | a | d | i | g |
Mail directive | Meaning |
---|---|
(can occur in 'ifmail.txt' file) | |
RELAY [0|1] | Can relay for people outside the default/hosted domains |
ROAMING [0|1] | Allow relaying if log in first to POP/IMAP |
PERMIT [ip-address|hostname] | Grant 'ip-address' or 'hostname' rely access |
EXCLUDE [ip-address|hostname] | Deny 'ip-address' or 'hostname' relay access |
FORWARD [0|1] | Allow user .forward files. |
SMART_HOST [server] | Send mail to a server that can do all the hard work |
SMART_PORT port | Send mail to a server that can do all the hard work |
EXEMPT [domain,...] | Don't route for these domains |
SIZEEXEMPT [nK|nM] | Don't route for messages bigger than this |
NOTIFY [mins] | Tell smart host to send queued mail (every 'n' minutes) |
DNS host | Domain Name Server for looking up routing info |
DNSALT host | Domain Name Server (alternate) for looking up routing info |
DEFAULT domain | If i'm 'user' then i'm also 'user@domain' |
DOMAIN [domain-list] | Domain to hold 'local' mail for (can repeat on multiple lines) |
QUEUE ../spool/mqueue | Path to where outgoing mail is queued for delivery |
MAILBOX ../spool/mail | Path to where mailboxes for local users are created |
NEWSBOX ../spool/mail | Path to where news mailboxes are created |
SHAREDBOX ../spool/mail | Path to where shared mailboxes are created |
SYSTEMBOX ../spool/mail | Path to where system status file are created |
LOGD ../data/maild.log | Daemon processes log files |
LOGQ ../data/mailq.log | Queue processes log files |
VERIFY FROM TO | Verify from and to addresses on submission |
MBOXLIMIT 0 | Maximum number of bytes to store for account (0 for no limit) |
SIZELIMIT 0 | Maximum size of a mail message I will handle (0 for no limit) |
RCPTLIMIT 0 | Maximum number of recipients to specify in one transaction (0 for no limit) |
RCPTCOUNT 0 | Maximum number of recipients before introducing delays (0 for no delay) |
RCPTDELAY 0 | Number of seconds to delay (default is 1) |
GATEWAY [domain-list] | The domain is gatewayed here (can repeat on multiple lines) |
ROUTE service n | Route the service with n = 1-7 (can repeat on multiple lines) |
TIMEOUT seconds | Connection timeout in seconds (default is 300) |
SEARCHINTERVAL mins | Specifies the interval between checks for new IMAP results (default is 1 mins) |
POPINTERVAL mins | Specifies the interval between checks for external POP mail (default is 15 mins) |
FILTER [filename,...] | Process named filter(s) upon receipt of message |
ACTION [filename,...] | Process named filter(s) when accessing a message |
SMTP_PORT 25 | |
SMTPS_PORT 465 | |
POP3_PORT 110 | |
POP3S_PORT 995 | |
IMAP_PORT 143 | |
IMAPS_PORT 993 | |
NOIMAP [0|1] | Don't start IMAP server |
NOIMAPS [0|1] | Don't start IMAP/SSL server |
NOPOP [0|1] | Don't start POP server |
NOPOPS [0|1] | Don't start POP/SSL server |
NOSMTP [0|1] | Don't start SMTP server |
NOSMTPS [0|1] | Don't start SMTP/SSL server |
NOPRINT [0|1] | Don't start email-to-print queue |
STARTTLS [0|1] | Use STARTTLS/STLS commands to control SSL/TLS over standard ports |
USERLEVELn nbr [desc] | |
SMTPLOGIN [0|1] | If present, it is required to first log in to send mail |
REFERRAL [user@]server[,...] | If present, refer users to a named IMAP server |
SHARED-FS [0|1] | Tell whether multiple instances run sharing the same file-system |
ENABLEMAPS [0|1] | Enable Mail Abuse Prevention System |
MAPS [domains,...] | Specifiy MAPS domains |
PERMIT 10.* PERMIT domain.com PERMIT *.research.mydomain.com
Use the "ORDER PERMIT EXCLUDE" (the default) or "ORDER EXCLUDE PERMIT" to specify processing options.
EXCLUDE 10.0.*.0 # Training room EXCLUDE bdlg3.mydomain.comwill deny a certain subnet relay access.
Use the "ORDER PERMIT EXCLUDE" (the default) or "ORDER EXCLUDE PERMIT" to specify processing options.
It's also possible to have per-account user filters that process messages based upon the recipient. These files MUST be named '.filter' or 'filter.ifs' and exist in the accounts home directory (ie. 'USERROOT/.filter'). User filters are more restricted than general filters and run in the accounts 'sandbox'. That is, they can't access external files and can't exec() system commands.
It's also possible to have per-account user actions that process messages based upon the recipient. These files MUST be named '.action' or 'action.ifs' and exist in the accounts home directory (ie. 'USERROOT/.action'). User actions are more restricted than general actions and run in the accounts 'sandbox'. That is, they can't access external files and can't exec() system commands.
MAPS relays.mail-abuse.org MAPS rbl.maps.vix.com MAPS relays.orbs.orgRefer to maps.vix.com and www.orbs.org to see what each one means. There are other (more vicious) levels but the ones listed here are most commonly used.
USERLEVEL0 0 Basic account USERLEVEL1 5 Personal pack USERLEVEL2 10 Family pack USERLEVEL3 50 Business pack USERLEVEL4 250 Group pack USERLEVEL5 -1 UnlimitedMeans that accounts at user-level 0 (default all accounts) can have no child accounts to administrate, while accounts at level 1 can have 5 and accounts at level 2 can have 10 etc.
0 = SMTP, 1 = FAX, 2 = GSM, 3 = PRINTER, 4 = X.400, 5-7 = customThe PRINTER example shows how it is done. It is unlikely that code for other services will be provided by me.