cornerhost wiki   FAQ/mail UserPreferences
 
HelpContents FindPage Diffs Info Edit Subscribe XML Print View

  1. Ports
  2. Can't send mail through *.sabren.com
  3. I have mail in pine, but not via POP3/IMAP
  4. Simple procmail example?
  5. Mail::Audit example?
  6. How to I change the "From:" header in pine?
  7. How do I forward a copy of my mail to a service like Gmail or Yahoo?
  8. How can I forward mail for an address to multiple people?
  9. How can I get the Apple Mail.app that comes with Mac OS X to stop complaining about the self-signed IMAP SSL certificate?

See Also: AddingNewMailboxes , AutoResponders

Ports

Can't send mail through *.sabren.com

PROBLEM:

POSSIBLE SOLUTIONS:

I have mail in pine, but not via POP3/IMAP

"The mbox driver enables the following behavior: if there is a file called mbox in your home directory, and if that file is either empty or in Unix mailbox format, then every time you open INBOX the mbox driver will automatically transfer mail from the system mail spool directory into the mbox file and delete it from the spool directory. If you disable the mbox driver, this will not happen."

Simple procmail example?

Create a file called ~/.procmailrc and add the following lines:

:0:
* ^FROMbad@spammer.com
/dev/null

In this example, replace bad@spammer.com with the address you are receiving spam from, and all mail coming from that address will be automatically deleted.

Make sure you upload in ASCII mode, or it can corrupt your mailbox.

Also, you must make sure that only you can update write to your .procmailrc file. Otherwise sendmail will ignore it. In other words:

chmod 600 .procmailrc

Nancy McGough maintains a very good tutorial on Procmail:

There's a huge list of procmail "recipes" here:

Mail::Audit example?

Here is an example of using Mail::Audit with procmail, for people who want to write custom mail processing scripts.

#### cut ####
## running Mail::Audit through .procmail
## see: http://perlmonks.thepen.com/133023.html

# for debugging:
LOGFILE=$HOME/procmail.log

## these are the two required lines:
EXITCODE=
TRAP=$HOME/bin/filter.pl

## just in case:
:0:
$HOME/mail/backup
#### cut ####

Here's an example mail filtering script. It bounces mail unless the subject contains the word "magic":

#!/usr/bin/perl
use Mail::Audit;
my $item = Mail::Audit->new();

if ($item->subject =~ /magic/) {
    $item->accept();
}
$item->reject("no magic string!");

See also: http://simon-cozens.org/writings/mail-audit.html

How to I change the "From:" header in pine?

You want the "customized-hdrs" field in the setup/config screen:

   customized-hdrs          = From: "Your Name" <you@yourdomain.com>

How do I forward a copy of my mail to a service like Gmail or Yahoo?

See CheckMailFromGmail , CheckMailFromYahoo

How can I forward mail for an address to multiple people?

There are two ways. Michal can set this up for you manually at the sendmail level (in which case email him), or you can set up a .procmailrc recipe to do this yourself.

First, you need to set up a mail rule for "list@wherever" that points to a mailbox. If you have a catch-all mailbox, you may not need to set up the rule. The important thing here is that you have a mailbox and that the list e-mail address you want to use is associated with that mailbox.

Second, add the following recipe to the .procmailrc file associated to the mailbox. If you are unsure where that file should go, read /FAQ/mail and AddingNewMailboxes.

:0
* ^TO.*list@wherever
! a@a.com,b@b.com,c@c.com

As the recipe is, messages will be forwarded to the addresses list and it will not be stored in the associated mailbox. If you want the message to also be stored in the associated mailbox, change the first line to ":0c". The "c" indicates that a copy of the message will continue through the remaining procmail recipes and ultimately get placed in the mailbox (assuming there aren't other matching recipes in the file that does something else to the message).

See also:

How can I get the Apple Mail.app that comes with Mac OS X to stop complaining about the self-signed IMAP SSL certificate?

Mail was driving me crazy saying "the root certificate for this server could not be verified".

I finally found this easy fix again on a [WWW]discussion board at dreamhost.com. Here it is adapted to cornerhost:

Run the following commands, in the Terminal on your Mac:

   openssl s_client -connect titanium.sabren.com:imaps > ti.cer < /dev/null
   open ti.cer
Keychain Access will pop up, and ask if you want to import the certificate.

Select the keychain X509 Anchors and click "OK".

(Nathan Vonnahme, 9/30/2005)

In the event that the certificate expires or changes, you have to delete the existing certificate in Keychain before importing the new one.



PythonPowered