From: Harry Putnam <reader@newsguy.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: [OT] Sendmail and Comcast
Date: Sun, 08 Feb 2009 15:23:36 -0600 [thread overview]
Message-ID: <87prhsipwn.fsf@newsguy.com> (raw)
In-Reply-To: 200902081955.10695.michaelkintzios@gmail.com
Mick <michaelkintzios@gmail.com> writes:
> Hi All,
>
> If any of you guys has a working sendmail configuration with Comcast I would
> be grateful if you could share off list. Although I have followed the
> instructions detailed here (except for the masquerade options) I cannot get
> it to work:
>
> http://www.linuxha.com/other/sendmail/
>
> After a long day trying to get it to run I have now grown blind to it. The
> error I get is:
I'm including this on the list since I think there will be others who
may find it useful.
Mine is setup like this:
(I'm going to assume you know to use m4 to compile sendmail.cf)
1) In sendmail.mc
( Some of this may not be necessary... I've placed asterisks around
those I think are critical )
(I masquerade as the host that supplies my email pop service
(newsguy), I don't use comcast email much. you may be able to ignore
masquerading)
divert(-1)
divert(0) dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc,v 1.17 2008/05/19 14:28:16 root Exp $')dnl
OSTYPE(linux)dnl
define(`confDONT_EXPAND_CNAMES'.`True')dnl
***
FEATURE(`authinfo') dnl
define(`confAUTH_MECHANISMS',`LOGIN PLAIN')dnl
define(`SMART_HOST',`smtp.comcast.net')dnl
***
dnl # [HP 05/16/08 17:22 define(`RELAY_MAILER_ARGS', `TCP $h 587') ]dnl
dnl Per H Message-ID: <g0kmsb$2ddp$1@hedeland.org> comp.mail.sendmail dnl
define(`RELAY_MAILER_ARGS', `TCP $h 587')
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
MASQUERADE_AS(`newsguy.com')dnl
MASQUERADE_DOMAIN(`local.lan')dnl
FEATURE(masquerade_entire_domain)dnl
FEATURE(masquerade_envelope)dnl
FEATURE(relay_hosts_only) dnl relay exact hosts in /etc/mail/relay-hosts dnl
FEATURE(`always_add_domain') dnl
GENERICS_DOMAIN(`local.lan')dnl
define(`confTRUSTED_USERS',`reader defang apache bacula mysql')dnl
MAILER(procmail)dnl
MAILER(smtp)dnl
2) using authinfo is somewhat explained in the README at
/usr/share/sendmail-cf/
Mine looks like this [with some things disguised with MYUSER, MYPASSWD]
(Should be all on one line... in case mail formatting breaks the line)
cat /etc/mail/authinfo
# [HP 02/04/06 23:14 NOTE make sure to makemap hash authinfo < authinfo]
AuthInfo:smtp.comcast.net "U:MYUSER" "I:MYUSER@comcast.net" "P:MYPASSWD" "M: LOGIN PLAIN"
# end authinfo
Heed the comment about makemap or authinfo won't work.
I'm not sure this is necessary anymore but you should probably restart
sendmail after using makemap.. and definitely restart anytime you
recompile sendmail.cf
With those asterisked things in place my mail works fine.
I can relay mail from any of my home machines thru my gentoo host with
the sendmail.mc shown as well. So the other machines are pointed as
my gentoo box as smart host.
next prev parent reply other threads:[~2009-02-08 21:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-08 19:54 [gentoo-user] [OT] Sendmail and Comcast Mick
2009-02-08 21:23 ` Harry Putnam [this message]
2009-02-09 8:35 ` [gentoo-user] " Mick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87prhsipwn.fsf@newsguy.com \
--to=reader@newsguy.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox