Gentoo Archives: gentoo-user

From: Harry Putnam <reader@×××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: [OT] Sendmail and Comcast
Date: Sun, 08 Feb 2009 21:24:10
Message-Id: 87prhsipwn.fsf@newsguy.com
In Reply to: [gentoo-user] [OT] Sendmail and Comcast by Mick
1 Mick <michaelkintzios@×××××.com> writes:
2
3 > Hi All,
4 >
5 > If any of you guys has a working sendmail configuration with Comcast I would
6 > be grateful if you could share off list. Although I have followed the
7 > instructions detailed here (except for the masquerade options) I cannot get
8 > it to work:
9 >
10 > http://www.linuxha.com/other/sendmail/
11 >
12 > After a long day trying to get it to run I have now grown blind to it. The
13 > error I get is:
14
15 I'm including this on the list since I think there will be others who
16 may find it useful.
17 Mine is setup like this:
18 (I'm going to assume you know to use m4 to compile sendmail.cf)
19
20 1) In sendmail.mc
21
22 ( Some of this may not be necessary... I've placed asterisks around
23 those I think are critical )
24
25 (I masquerade as the host that supplies my email pop service
26 (newsguy), I don't use comcast email much. you may be able to ignore
27 masquerading)
28
29
30 divert(-1)
31 divert(0) dnl
32 include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
33 VERSIONID(`$Id: sendmail.mc,v 1.17 2008/05/19 14:28:16 root Exp $')dnl
34 OSTYPE(linux)dnl
35 define(`confDONT_EXPAND_CNAMES'.`True')dnl
36
37 ***
38 FEATURE(`authinfo') dnl
39 define(`confAUTH_MECHANISMS',`LOGIN PLAIN')dnl
40 define(`SMART_HOST',`smtp.comcast.net')dnl
41 ***
42
43 dnl # [HP 05/16/08 17:22 define(`RELAY_MAILER_ARGS', `TCP $h 587') ]dnl
44 dnl Per H Message-ID: <g0kmsb$2ddp$1@××××××××.org> comp.mail.sendmail dnl
45 define(`RELAY_MAILER_ARGS', `TCP $h 587')
46 define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
47 MASQUERADE_AS(`newsguy.com')dnl
48 MASQUERADE_DOMAIN(`local.lan')dnl
49 FEATURE(masquerade_entire_domain)dnl
50 FEATURE(masquerade_envelope)dnl
51 FEATURE(relay_hosts_only) dnl relay exact hosts in /etc/mail/relay-hosts dnl
52 FEATURE(`always_add_domain') dnl
53 GENERICS_DOMAIN(`local.lan')dnl
54 define(`confTRUSTED_USERS',`reader defang apache bacula mysql')dnl
55 MAILER(procmail)dnl
56 MAILER(smtp)dnl
57
58
59 2) using authinfo is somewhat explained in the README at
60 /usr/share/sendmail-cf/
61
62 Mine looks like this [with some things disguised with MYUSER, MYPASSWD]
63 (Should be all on one line... in case mail formatting breaks the line)
64
65 cat /etc/mail/authinfo
66 # [HP 02/04/06 23:14 NOTE make sure to makemap hash authinfo < authinfo]
67 AuthInfo:smtp.comcast.net "U:MYUSER" "I:MYUSER@×××××××.net" "P:MYPASSWD" "M: LOGIN PLAIN"
68 # end authinfo
69
70 Heed the comment about makemap or authinfo won't work.
71
72 I'm not sure this is necessary anymore but you should probably restart
73 sendmail after using makemap.. and definitely restart anytime you
74 recompile sendmail.cf
75
76 With those asterisked things in place my mail works fine.
77
78 I can relay mail from any of my home machines thru my gentoo host with
79 the sendmail.mc shown as well. So the other machines are pointed as
80 my gentoo box as smart host.

Replies

Subject Author
Re: [gentoo-user] Re: [OT] Sendmail and Comcast Mick <michaelkintzios@×××××.com>