| FAQ/mail |
UserPreferences |
| cornerhost wiki | FrontPage | RecentChanges | TitleIndex | WordIndex | SiteNavigation | HelpContents | moin.sf.net |
See Also: AddingNewMailboxes , AutoResponders
PROBLEM:
You are trying to set up my mail client to use (servername).sabren.com as an SMTP server but are unable to send...
POSSIBLE SOLUTIONS:
"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."
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:
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
You want the "customized-hdrs" field in the setup/config screen:
customized-hdrs = From: "Your Name" <you@yourdomain.com>
See CheckMailFromGmail , CheckMailFromYahoo
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:
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
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.cerKeychain 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.