Mike Chirico on 2 Mar 2004 20:57:02 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] Comcast email on home system


Getting Comcast email on your home Linux box:

These instructions worked for me.  Maybe there is a better way?

STEP 1:

Create the .procmailrc in your home directory.  For me it was
/home/chirico
Note, comcast email is mchirico but my Linux account is chiricio.
Also, here I'm keeping email on the server with the "keep" option 
after certs.

The following gets email via ssl...if I haven't missed anything.

#
#
# Sample .fetchmailrc file for Comcast
#
# Check mail every 90 seconds
set daemon 90
set syslog
set postmaster chirico
#set bouncemail
#
# Comcast email is mchirico but computer is chirico
poll mail.comcast.net with proto POP3 and options no dns
       user 'mchirico' with pass "secretpassword"  is 'chirico' here
       options ssl sslcertck sslcertpath '/usr/share/ssl/certs' keep
       smtphost comcast.net
# end .fetchmailrc


Next run the fetchmail command

$fetchmail


STEP 2:

I'm using sendmail, the latest version 8.12.11 to convert my
chirico@localhost to mchirico@comcast
ftp://ftp.sendmail.org/pub/sendmail/sendmail.8.12.11.tar.gz
I installed and compiled from source.

Next, I enabled or changed the following lines in

 /etc/mail/sendmail.mc

 MASQUERADE_AS(`comcast.net')dnl
 FEATURE(masquerade_envelope) FEATURE(genericstable, `hash -o
    /etc/mail/genericstable')
 GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')dnl

These changes won't go into effect until you $m4 it. Careful
the second line above wraps...it should be one line.

 $m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

The MASQUERADE_AS('comcast.net') translates the return email for
user chirico to be chiric@comcast.net
Note, I still need to to convert chirico to mchirico ... that's
the next step.

STEP 3:

I created a genericstable as follows with a single space between
the names:

   chirico mchirico@comcast.net

This is translating chirico to mchirico. Maybe I could have left
off the @comcast.net?

Next, I built the hash table  /etc/mail/genericstable.db

  $makemap -r hash genericstable.db < genericstable

STEP 4:

Create the /etc/mail/genericsdomain file

  $hostname --long > /etc/mail/genericsdomain

STEP 5:

Restart sendmail .. I'm using redhat and the following command
worked.

  $/etc/init.d/sendmail restart



PROCMAIL:


Any suggestions on procmail?  I've always done it by
creating /home/chirico/.forward with something like the
following:

 "|exec /usr/bin/procmail"

Then, created lots of rules in the .procmailrc file... here's a
shortened example of the .procmailrc which deletes all images
sent to me.

############################################
#  Sample Procmail file
############################################
PATH=/bin:/usr/bin:/usr/local/bin
MAILDIR=/var/spool/mail
DEFAULT=/var/spool/mail/chirico
LOGFILE=/home/chirico/MailBAG
#
#
:0 HB
* ^Content-Type.*image.*gif.*name.*\.gif
* ^Content-Disposition.*attachment.*filename.*\.gif"
{
         :0
         /dev/null
}


Regards,

Mike Chirico

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug