- Ports
- Can't send mail through *.sabren.com
- I have mail in pine, but not via POP3/IMAP
- Simple procmail example?
- Mail::Audit example?
- How to I change the "From:" header in pine?
- How do I forward a copy of my mail to a service like Gmail or Yahoo?
- How can I forward mail for an address to multiple people?
- 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
-
IMAP: 143
-
IMAP SSL: 993
-
POP: 110
-
POP SSL: 995
-
SMTP: 25
-
SMTP SSL: 465
Can't send mail through *.sabren.com
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:
-
If you are getting a "550: Relaying Denied" error, you need to turn on SMTP-authentication in your mail client. This is usually found in the account settings dialog box and may say something like "My outgoing mail server requires authentication"
-
If you can't connect to the SMTP server at all, your ISP is probably blocking the SMTP port. Many ISPs have started doing this in order to control spammers. Earthlink and MSN definitely block SMTP traffic, and many others do as well. In some cases, however, it appears that those same ISPs are not blocking port 465, so you may want to try an SSL connection. If that fails, the solution is to use the SMTP server provided by your ISP.
-
MSN users: set your smtp server to smtp.email.msn.com ... Note that you will not be able to send mail FROM your domain while using MSN. Your mail must come from your MSN account, but you can set the reply-to header to anything you like. [anyone know a fix for this? other than the obvious (dump msn!) ??]
-
AOL users: AOL re-routes all SMTP traffic through its own servers. If you use AOL, you should turn *off* SMTP Authentication.
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
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.
-
If the keychains are not showing, click the Show Keychains in the lower-left hand corner
-
Highlight X509 Anchors
-
Find the relevant certificate, usually \*.sabren.com
-
Delete it.
-
Continue with the instructions above.
