sendmail / fetchmail compalte configuration documents

4 views
Skip to first unread message

Rajan

unread,
Jun 18, 2007, 6:29:16 AM6/18/07
to VGLUG
Sendmail & Fetchmail Configuration


1 . Fetchmail Configuration

Required:
Fetchmail installation
dovecot installation ( or Any POP/IMAP)

Installation:
1.Fetchmail installation
2.Create .fetchmailrc file on Root
.fetchmailrc file configuration

set postmaster root
set logfile /var/log/fetchmail.log
defaults
protocol pop3
flush
no mimedecode
smtphost mail.itcgindia.com
poll mail.itcgindia.com
user "ra...@itcgindia.com" password "password" is "rajanghanshyam"
here

edit /etc/hosts
edit /etc/access

edit sendmail.cf file
O DaemonPortOptions=Port=smtp,Addr=192.0.0.16, Name=MTA
and add smtp line

now smtp authentication
/etc/mail/sendmail.mc
/etc/mail/auth/client-info
This is where the files are on my Linux box (Fedora FC 6). Changes I
made to /etc/mail/sendmail.mc (added to the end of the file):
dnl # Changes I made to /etc/mail/sendmail.mc
define(`SMART_HOST',`smtp.comcast.net')
define(`RELAY_MAILER_ARGS', `TCP $h 587')
define(`ESMTP_MAILER_ARGS', `TCP $h 587')
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5
LOGIN PLAIN')dnl
FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl

MASQUERADE_AS(`comcast.net')dnl
FEATURE(masquerade_envelope) FEATURE(genericstable, `hash -o /etc/
mail/genericstable')
GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
Later I'll explain the virtusertable and mailertable entries. I needed
all of that so other devices throughout my network can send email to
my local machines or to users on the internet.
Changes I made to /etc/mail/submit.mc (added to the end of the file):
FEATURE(`msp', `[127.0.0.1]')dnl
If you don't have an /etc/mail/auth directory, as root, create one
like this:
# mkdir -p /etc/mail/auth
# chmod 700 /etc/mail/auth
You won't have the next client-info files so you'll have to create it
(with you favorite Unix editor). Change the permissions on the client-
info file like this:
# chmod 600 client-info
So as use...@comcast.net I made the following entry in /etc/mail/auth/
client-info:
# cat /etc/mail/auth/client-info
AuthInfo:smtp.comcast.net "U:smmsp" "I:user_id" "P:password"
"M:PLAIN"
AuthInfo:smtp.comcast.net:587 "U:smmsp" "I:user_id" "P:password"
"M:PLAIN"
Remember to replace user_id with your Comcast email ID (your email
addresse without the @comcast.net) and password with your email
password. Also make sure that the client-info file has a
How to compile it into a db file:
# cd /etc/mail/auth
# makemap -r hash client-info.db < client-info
And finally make sure your running the latest cf files since your mc
file changes:
# cd /etc/mail
# make
And lastly restart sendmail:
# service restart sendmail

Reply all
Reply to author
Forward
0 new messages