BX:Mail

From CCGB
Revision as of 14:43, 17 June 2011 by Phalenor (talk | contribs) (Vacation auto-response)

Jump to: navigation, search

We run our own mail servers under the bx.psu.edu domain. Everyone who has a BX account can make use of the BX mail system. Your BX email address is <your_username>@bx.psu.edu.

Incoming mail for the domain is handled by a cluster of mail servers which make use of a separate cluster of antispam/antivirus scanning systems.

Mail that is "delivered locally" is delivered into your BX AFS home directory under the Maildir/ directory.

Accessing your BX Email

There are four ways to access your BX email.

Note: We NO LONGER support the POP protocol for mail access. Any resonably modern email client should support IMAP.

IMAP

Currently, the only mail-specific protocol we support is IMAP.

General Settings

  • IMAP Server (Incoming): imap.bx.psu.edu, port 993 with SSL
  • SMTP Server (Outgoing): smtp.bx.psu.edu, port 587 (submission), Authentication with TLS

NOTE: DO NOT USE PORT 25. Many ISPs block outgoing connections on port 25 in order to combat SPAM, including Penn State (which is why you must use smtp.bx.psu.edu to send email when you're on our network). In those cases, you must use port 587, as listed above.

Mail client specific settings

Your mail client not listed? Tell admin-at-bx.psu.edu

Webmail

There are two webmail systems available -

  • SquirrellMail, which is a lightweight webmail system
  • Horde/IMP, which is a full-featured webmail system with LDAP address book integration, among other useful features. This is the recommended webmail system, as it is currently clustered and set up to be as HA (highly available) as possible.

Both systems can be found by simply going to webmail.bx.psu.edu and selecting which one to use.

Forwarding your mail

It is possible to forward mail sent to <username>@bx.psu.edu to another account.

The preferred method to forward your BX email is to use the BX Mail Forward Tool (weblogin), which directly edits the appropriate LDAP attributes for your BX account.

This can also be done via a .forward (dot forward) file, which is the traditional method, though this is not as straight forward as it ought to be because of AFS. Contact admin-at-bx.psu.edu if you would like to use this method.

Accessing your Maildir/ directly

It is possible that some mail clients such as pine/alpine, mutt, etc are capable of accessing the contents of your Maildir/ directly. Example configurations are forthcoming.

Filtering with procmail

TODO

Mailing Lists

We run several public and public mailing lists. For more information, please see the Mailman list page.

Vacation auto-response

Vacation auto-replies are handled via a procmail rule.

Steps to enable it:

  1. This rule normally lives in $HOME/.procmail/rc.vacation. If you don't have this file, copy it from below or from /afs/bx.psu.edu/service/etc/skel/.procmail/rc.vacation.

To enable vacation auto-responses, include these lines in $HOME/.procmail/procmailrc. If you don't have $HOME/.procmail/procmailrc, copy it from /afs/bx.psu.edu/service/etc/skel/.procmail/procmailrc

Snippet from $HOME/.procmail/procmailrc

INCLUDERC=/afs/bx.psu.edu/service/etc/procmailrc
INCLUDERC=$PMDIR/rc.vacation

$HOME/.procmail/rc.vacation

# vacation rules
MSG=$PMDIR/vacation.msg

:0 Whc
* $ ^TO_${YOU}
* !Precedence: (list|bulk)
* !X-Spam-Flag: YES
* $ !^X-Loop: ${YOU}
| $FORMAIL -rD 8192 $PMDIR/logs/vacation.cache

# this only gets executed if the previous rule returned success (the 'e')
:0 ehc
| ($FORMAIL -rA"Precedence: junk" -A"X-Loop: $YOU" ; cat $MSG) | $SENDMAIL -oi -t