TWiki
>
Main Web
>
Computing
>
Mail
>
Mail-relatedFiles
(revision 14) (raw view)
Edit
Attach
---++!! Files that affect your mail The default mail setup at Nevis works for most users. However, if you'd like finer control over your e-mail, mail notifications, mail forwarding, spam processing, mail filtering, or are trying to fix a mail problem, the following information can be useful. In the descriptions below, =$user= is the name of your Nevis [[Linux cluster]] login account. %TOC% ---+++ =/a/mail/inbox/$user= This is the file that contains the contents of your INBOX. On the mail server, it's located in =/mail/inbox/$user=, but the above path makes the file visible on other the other systems on the cluster via [[automount]]. ---+++ =/a/mail/folders/$user= This is the default location of your [[IMAP mail files]]. On the mail server, this path is =/mail/folders/$user=, but the above path makes the file visible on other the other systems on the cluster via [[automount]]. ---+++ =/a/mail/folders/$user/.subscriptions= This file contains the list of IMAP folders that you see in your mail reader. For the most part, you don't have to change the contents of this file; you can drag, drop, create, (un)subscribe, etc., using your mail program. But every once in a while, it's easier to edit this text file than it is to manually click on lots of different folders. ---+++ =/a/mail/forward/$user= or =~/.forward= The forwarding file controls how your e-mail is [[forward mail][forwarded]], and can also be used to automatically send [[vacation]] messages. There are two places where you can put your forwarding instructions: =/a/mail/forward/$user= or =~/.forward=. The latter name is the standard location for a forwarding file, and it's supported at Nevis. The former location is preferred, however, since the file will remain available to the mail server if your home directory becomes unavailable; e.g., if your [[list of machines][group's server]] goes down. If you have both files =/a/mail/forward/$user= and =~/.forward=, only the lines in the former will be interpreted. The latter will be ignored. ---+++ =/a/mail/procmailrc/$user= or =~/.procmailrc= [[http://www.nevis.columbia.edu/cgi-bin/man.sh?man=procmail][Procmail]] is a program that delivers your mail to your INBOX. You can create a file =/a/mail/procmailrc/$user= or =~/.procmailrc= file to filter messages, automatically direct mail into certain folders, and other advanced operations. There are two places where you can put a procmail command file: =/a/mail/procmailrc/$user= or =~/.procmailrc=. The latter name is the standard location for a procmail file, and it's supported at Nevis. The former location is preferred, however, since the file will remain available to the mail server if your home directory becomes unavailable; e.g., if your [[list of machines][group's server]] goes down. Many mail readers (such as [[http://www.mozilla.com/thunderbird/][Thunderbird]]) have similar facilities. The advantages of using procmail are: * Procmail offers more flexibility than most mail readers. For example, most mail readers cannot send an e-mail in response to a particular message you receive; procmail can. * Procmail runs on the mail server, which means it operates on your e-mail as it receives it. A mail reader can only process your messages as it reads them off the server. In particular, if you read mail using more than one computer or more than one mail-reading program, you might want to put your mail filtering in procmail instead of duplicating that functionality on different machines and programs. The disadvantage is, of course, complexity; procmail uses its own [[http://www.nevis.columbia.edu/cgi-bin/man.sh?man=procmailrc][command language]]. If you're interested in exploring procmail, I recommend the following resources: * Procmail [[http://mirror.ncsa.uiuc.edu/procmail-faq/mini-faq.html][FAQ]] and [[http://www.uwasa.fi/~ts/info/proctips.html][tips]]. * The [[http://www.nevis.columbia.edu/cgi-bin/man.sh?man=procmail][procmail man page]]. * The [[http://www.nevis.columbia.edu/cgi-bin/man.sh?man=procmailrc][procmailrc man page]]. * The [[http://www.nevis.columbia.edu/cgi-bin/man.sh?man=procmailex][procmailex man page]]. * %MAINWEB%.WilliamSeligman's procmail file at =/a/mail/procmailrc/seligman=. If you have both files =/a/mail/procmailrc/$user= and =~/.procmail=, the commands in *both* will be executed. Be careful! This is not the behavior of the forwarding files described above! ---+++ =~/.spamassassin/user_prefs= For the most part, you can ignore the contents of your =~/.spamassassin/= directory, which is automatically created for you the first time you receive mail at Nevis. The one file that you might want to look at is =~/.spamassassin/user_prefs=, which allows you to control the functionality of [[http://www.nevis.columbia.edu/mail/spamassassin.html][SpamAssassin]]. Your mail reader may also offer spam-filtering options. The advantages of [[http://spamassassin.apache.org/][SpamAssassin]] are similar to those of using procmail: * [[http://spamassassin.apache.org/][SpamAssassin]] offers more flexibility than most mail readers. For example, you can control the exact weighting assigned to each one of the [[http://spamassassin.apache.org/tests_3_2_x.html][tests]] that [[http://spamassassin.apache.org/][SpamAssassin]] performs. * [[http://spamassassin.apache.org/][SpamAssassin]] runs on the mail server, which means it operates on your e-mail as it receives it. A mail reader can only process your messages as it reads them off the server. In particular, if you [[http://www.spamassassin.org/doc/Mail_SpamAssassin_Conf.html][blacklist]] an address in =~/.spamassassin/user_prefs=, it will be bounced by the mail server and never get into your INBOX. If you're interested in configuring [[http://www.nevis.columbia.edu/mail/spamassassin.html][SpamAssassin]], I recommend the following resources: * The [[http://spamassassin.apache.org/][SpamAssassin]] web page. * The [[http://wiki.apache.org/spamassassin][SpamAssassin Wiki]]. * The [[http://www.nevis.columbia.edu/cgi-bin/man.sh?man=spamassassin][spamassassin man page]]. * %MAINWEB%.WilliamSeligman's [[http://spamassassin.apache.org/][SpamAssassin]] preferences file at =~seligman/.spamassassin/user_prefs=. ---+++ Files on the mail server The following files are included on this page to be complete. Since they're located on the mail server, and users don't have login access to the mail server, you won't be able to inspect these files unless you're a systems administrator. ---++++ =/etc/mail/= This directory contains the configuration files for the [[http://www.nevis.columbia.edu/cgi-bin/man.sh?man=sendmail][sendmail]] program, which handles the [[http://en.wikipedia.org/wiki/Smtp][SMTP]] services on the mail server. The main sendmail configuration file is =/etc/mail/sendmail.mc=. The file =/etc/mail/mimedefang-filter= controls [[viruses][MIMEDefang]], which strips suspicious attachments from mail messages. ---++++ =/etc/dovecot.conf= The configuration file for [[http://www.dovecot.org/][dovecot]], the program that handles [[http://www.nevis.columbia.edu/mail/pop-vs-imap.html][IMAP and POP3]] services on the mail server. ---++++ =/etc/sysconfig/spamass-milter= A [[http://en.wikipedia.org/wiki/Milter][milter]] is a "mail filter." [[http://www.nevis.columbia.edu/mail/spamassassin.html][SpamAssassin]] (and [[viruses][MIMEDefang]]) are implemented on our mail server as filters, which means they can bounce messages before they have been fully received. (Among other benefits, this means that we're never responsible for sending back spam- or virus-laden messages; it's the mail server that sent the message that has to do it.) The file =/etc/sysconfig/spamass-milter= controls the operation of [[http://savannah.nongnu.org/projects/spamass-milt/][spamass-milter]], the milter program that calls [[http://spamassassin.apache.org/][SpamAssassin]] for each message as it's received. ---++++ =/var/indexes/$user/= IMAP maintains an index of the headers of each message in your mail folders, so it doesn't have to re-read the entire folder every time you click on it in your mail reader. The indexes are kept in =/var/indexes/$user/=.
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r18
|
r16
<
r15
<
r14
<
r13
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r14 - 2011-09-08
-
WilliamSeligman
Main
Log In
or
Register
Main Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
Webs
ATLAS
DOE
Main
TWiki
Veritas
Copyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback